Subject: massive cleanup, restor pipe input, ANSI compliant stdio, inconsistent LDFLAGS/CFLAGS use, dd bs= error, and many other changes (#499) Index: hundreds of files Description: 1) dd incorrectly checks for combined buffer size overflow. This causes the pascal header (/usr/share/pascal/npx_header) to be installed with incorrect size. 2) obsolete executables/directories were not removed 3) DESTDIR= to specify alternate installation directory can not be be used because it's never been universally implmented. Indeed for some time DESTDIR has been removed as Makefiles have been updated. Some Makefiles used SEPFLAG for specifying split I/D, some Makefiles used LDFLAGS, a few Makefiles used both and some used LFLAGS (which is make's variable for flags to the lex program. Some Makefiles used the obsolete synonym -z rather than the newer -i option. Many Makefiles implmented their own inline version of computing dependencies (for the "depend:" target) instead of using the program "mkdep". 4) restor can not be used in a pipeline. To resize a filesystem it is desireable to pipe the output of dump into restor. dump interprets the output device "-" as "standard out". The restor program does not recognize "-". 5) A debug printf was left in savecore.c 6) vgrind uses ditroff which does not exist on 2.11BSD 7) group ownership of installed files was inconsistent. 8) disktab entries for rm03,rm05,rp04,rp06 (commonly used with SimH) had incorrectly sized root and swap partitions. 9) disklabel(8) does not allow the size and offset of a partition to be specified using a number of cylinders. 10) The stdio library is not ANSI compliant. 11) Duplicate 'grep' programs exist in the system. Which one is run depends on the order of components in $PATH. 12) /dev/fd directory, providing access to the file descriptor driver, MAY be missing. 13) msgs(1) uses ftruncate(2) on a closed file descriptor. 14) /dev/swap on some systems is group owned by 'operator' rather than 'kmem'. Repeat-By: 1) build the pascal compiler: cd /usr/src/ucb/pascal make install ... dd if=px_header.out of=/usr/share/pascal/npx_header conv=sync combined buffer sizes of 1024 too large, max 3623813120 2) Observation /usr/hosts, /usr/old, /usr/sbin/mkhosts, /usr/sbin/htable, /usr/sbin/gettable should have been removed when the sources were removed. Some programs (fp for example) do nothing except print a message saying "fp not implmented under 2.11BSD". Not worth keeping. Several OLD and PORT directories contain unusable (wrong architecture), not needed (2.11BSD has newer/updated versions), uncompilable (required system headers, etc not available) or obsolete. If files were OLD/obsolete in 1991 then they should be removed before the 35th anniversary of 2.11BSD in 2026. 3) Observation. Or specify "DESTDIR=" at a top level Makefile and see that some programs get installed into the desired directory and some into the running system. 4) dump 0f - / | restor rf - /dev/rrl0a DUMP: Date of this level 0 dump: Sun Nov 30 06:36:52 2025 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rxp0a (/) to standard output DUMP: mapping (Pass I) [regular files] -: cannot open tape DUMP: mapping (Pass II) [directories] DUMP: estimated 3402 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: Broken pipe DUMP: The ENTIRE dump is aborted. 5) Observation: printf("n: %d physmem:%u\n", n, physmem); should have been removed in patch #498 6) vgrind vtroff: Command not found. 7) Observation. Do "ls -lg" on any directory (/usr/bin, /usr/share/*, etc. You'll see the group as 'bin', 'staff' or 'wheel'. Setgid programs require a specific group name. Usage for all other programs was random. 8) Root partitions less than 7MB leave too little room for temp files and swap partitions more than 5MB are wasteful. 9) The standalone disklabel program allows disk partition sizes to be defined using a number of cylinders, a number of sectors or both. The usermode disklabel program does not have the same flexibility. 10) Observation :) 11) ls -l /bin/grep /usr/ucb/grep Usually /bin is first in the search path so the older version is run. /usr/ucb/grep is smaller and about 2 years newer. 12) ls -l /dev/fd If you get "not found" then "MAKEDEV fd" was not run during system installation. 13) have a .msgsrc file with out of bounds values (msg numbers greater than the number in /usr/msgs/bounds. Running msgs will give an error similar to: Warning: bounds have been reset (1, 0) 14) ls -lg /dev/swap brw-r----- 2 root operator 10, 1 Jun 29 2001 /dev/swap If a user is not in the operator group in /etc/group then ps and top will not work: id uid=255(sms) gid=10(staff) groups=10(staff), 0(wheel) ps or top /dev/swap: Permission denied Fix: Many changes are being made in this, #499, as cleanup and preparation for the release of a new master distribution as patch #500 in celebration of the 35th anniversary of 2.11BSD (released in 1991). 1) obs and MAXBUF need to be cast to 'unsigned long' in the combined buffer size check. Then pascal is rebuilt to get the correct npx_header installed. 2) rm the files and directories. Nothing in /usr/src/old is built or installed (sources are for reference only) so /usr/old goes away. 3) DESTDIR was removed from all Makefiles. LDFLAGS was adopted as the standard replacing both SEPFLAG and LFLAGS (which is lex's flag, not ld's). Finally -z replaced by -i. mkdep used in all Makefiles. Obsolete/unused targets (especially those targets using sccs to check files in/out of a repository) were removed. Over 300 Makefiles updated. 4) If the filename arg of 'f' is "-" then use STDIN_FILENO (0) as the input tape file descriptor. The string "/dev/stdin" is accepted as a synonym of "-". The above is NOT sufficient for implementing a dump | restor pipeline because 1) pipes do not preserve tape record boundaries and 2) pipes hold a maximum of 4KB before the writer (dump) blocks waiting for the reader (restor) to empty the pipe. The other part of the fix is to use a loop that reads data until the requested (tape block) size has been satisfied. The concept of multiple volumes (switching volumes or prompting for a specific volume of a set) is meaningless when reading from a pipe. Options 'x' and 'R' are disabled if input is stdin. 5) Remove a printf from savecore.c 6) Changes references of ditroff to troff in vgrind.sh 7) -g staff added to the changes made in the Makefiles. 8) 'a' (root) was increased slightly and 'b' (swap) reduced. Impact to the partition used for 'usr' is minimal or none. 9) The size and offset parsing logic was ported from the standalone disklabel to the usermode program. 10) Anders Magnusson 499.txt To extract the shar file: cd /usr/tmp sed -e '1,/^---*cut here---.*/d' < 499 > 499.shar sh 499.shar sh RM499.sh cd / patch -p0 < /usr/tmp/NEW499.patch patch -p0 < /usr/tmp/OLD499A.patch patch -p0 < /usr/tmp/OLD499B.patch patch -p0 < /usr/tmp/OLD499C.patch patch -p0 < /usr/tmp/OLD499D.patch patch -p0 < /usr/tmp/OLD499E.patch patch -p0 < /usr/tmp/OLD499F.patch patch -p0 < /usr/tmp/OLD499G.patch IF patches failed to apply there will be files created with '#' appended. Check for the presence of failed patches: find . -name '*#' -print and resolve the issue before proceeding to the recompilation phase. # New with patch 499 is a simple patchlog with the date a patch was applied cd / echo -n "Patch 499 applied " >> PATCH-LOG date >> PATCH-LOG The -k option of "make" has been removed from /usr/src/Makefile because errors would scroll by unnoticed resulting in corrupted libraries and executables being installed. Now if there is an the build will stop rather than blindly continuing. BEFORE starting the compilation a "make clean" is done to remove any old .o files that may be present. A .o file compiled with the old stdio.h will cause an undefined symbol ("__iob") error and halt the build. cd /usr/src make clean make build make installsrc make clean the backup copies of the C compiler, init and tcsh can be removed: rm /etc/init.old rm /bin/tcsh.old rm /lib/oc? It has been, according to my system, 17 years since /etc/autoconfig was recompiled. It is time to update the executable: cd /sys/autoconfig make make install make clean Finally create the /dev/fd directory: cd /dev ./MAKEDEV fd chgrp kmem swap The patching will have created a large number of old versions (files with ~ appended). These can be removed with: find / -name '*~' -print | xargs rm The value printed by "sysctl kern.osrevision" has been changed (in param.h) from 200005 to 202601. To get the new version the kernel should be recompiled. 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/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: # RM499.sh # NEW499.patch # OLD499A.patch # OLD499B.patch # OLD499C.patch # OLD499D.patch # OLD499E.patch # OLD499F.patch # OLD499G.patch # This archive created: Mon Jan 12 18:26:40 2026 export PATH; PATH=/bin:/usr/bin:$PATH if test -f 'RM499.sh' then echo shar: "will not over-write existing file 'RM499.sh'" else sed 's/^X//' << \SHAR_EOF > 'RM499.sh' X#!/bin/sh X Xcd / X Xrm -rf ./bin/grep Xrm -rf ./sbin/tunefs Xrm -rf ./sbin/dumpfs Xrm -rf ./sbin/swapon Xrm -rf ./sbin/XNSrouted Xrm -rf ./usr/adm/messages.0 Xrm -rf ./usr/adm/messages.1 Xrm -rf ./usr/adm/messages.2 Xrm -rf ./usr/adm/messages.3 Xrm -rf ./usr/doc/2.10/MANIFEST Xrm -rf ./usr/doc/misc/px Xrm -rf ./usr/doc/misc/gprof Xrm -rf ./usr/doc/misc/sdb Xrm -rf ./usr/doc/misc/berknet Xrm -rf ./usr/doc/ps1/11.dbx Xrm -rf ./usr/doc/ps1/09.lint Xrm -rf ./usr/doc/ps2/07.fp Xrm -rf ./usr/doc/ps2/09.lisp Xrm -rf ./usr/include/Makefile Xrm -rf ./usr/libexec/lint Xrm -rf ./usr/local/lib/kermit5.sr Xrm -rf ./usr/local/man/cat8/popper.0 Xrm -rf ./usr/man/cat5/dbx.0 Xrm -rf ./usr/man/cat1/lint.0 Xrm -rf ./usr/man/cat2/swapon.0 Xrm -rf ./usr/man/cat8/rrestore.0 Xrm -rf ./usr/man/cat8/flcopy.0 Xrm -rf ./usr/man/cat8/kgmon.0 Xrm -rf ./usr/man/cat8/implog.0 Xrm -rf ./usr/man/cat8/arff.0 Xrm -rf ./usr/man/cat8/XNSrouted.0 Xrm -rf ./usr/man/cat8/implogd.0 Xrm -rf ./usr/man/cat8/swapon.0 Xrm -rf ./usr/man/cat8/tunefs.0 Xrm -rf ./usr/man/cat8/dumpfs.0 Xrm -rf ./usr/man/cat8/diskpart.0 Xrm -rf ./usr/new/kermit Xrm -rf ./usr/sbin/kgmon Xrm -rf ./usr/sbin/config Xrm -rf ./usr/sbin/diskpart Xrm -rf ./usr/sbin/flcopy Xrm -rf ./usr/sbin/htable Xrm -rf ./usr/sbin/implog Xrm -rf ./usr/sbin/arff Xrm -rf ./usr/sbin/mkhosts Xrm -rf ./usr/sbin/gettable Xrm -rf ./usr/sbin/implogd Xrm -rf ./usr/share/misc/gprof.flat Xrm -rf ./usr/share/misc/gprof.callg Xrm -rf ./usr/share/misc/lintstrings Xrm -rf ./usr/share/lint Xrm -rf ./usr/ucb/fp Xrm -rf ./usr/ucb/dbx Xrm -rf ./usr/ucb/vlp Xrm -rf ./usr/ucb/gprof Xrm -rf ./usr/src/sys/sys/ufs_syscalls.c.CREAT Xrm -rf ./usr/src/sys/sys/init_sysent.c.CREAT Xrm -rf ./usr/src/sys/h/gprof.h Xrm -rf ./usr/src/sys/OTHERS Xrm -rf ./usr/src/sys/vaxif Xrm -rf ./usr/src/old Xrm -rf ./usr/src/bin/tcsh/MAKEDIFFS Xrm -rf ./usr/src/bin/tcsh/WishList Xrm -rf ./usr/src/bin/grep.c Xrm -rf ./usr/src/games/adventure/FILES Xrm -rf ./usr/src/games/adventure/okplay.c Xrm -rf ./usr/src/lib/libc/stdio/strout.c Xrm -rf ./usr/src/lib/libc/compat-sys5/tmpnam.c Xrm -rf ./usr/src/lib/PORT Xrm -rf ./usr/src/local/mp/MANIFEST Xrm -rf ./usr/src/man/man1/lint.1 Xrm -rf ./usr/src/man/man2/swapon.2 Xrm -rf ./usr/src/man/man5/dbx.5 Xrm -rf ./usr/src/man/man8/rrestore.8 Xrm -rf ./usr/src/man/man8/XNSrouted.8 Xrm -rf ./usr/src/man/man0 Xrm -rf ./usr/src/new/rn/Rnmail Xrm -rf ./usr/src/new/rn/newsetup Xrm -rf ./usr/src/new/rn/MANIFEST Xrm -rf ./usr/src/new/rn/config.h Xrm -rf ./usr/src/new/rn/Pnews Xrm -rf ./usr/src/new/rn/config.sh Xrm -rf ./usr/src/new/notes/MANIFEST Xrm -rf ./usr/src/new/crash Xrm -rf ./usr/src/new/OLD Xrm -rf ./usr/src/new/PORT Xrm -rf ./usr/src/sbin/swapon Xrm -rf ./usr/src/sbin/tunefs Xrm -rf ./usr/src/sbin/dumpfs Xrm -rf ./usr/src/sbin/XNSrouted Xrm -rf ./usr/src/share/misc/gprof.flat Xrm -rf ./usr/src/share/misc/gprof.callg Xrm -rf ./usr/src/share/lint Xrm -rf ./usr/src/ucb/fp Xrm -rf ./usr/src/ucb/PORT Xrm -rf ./usr/src/ucb/compress/usermem.sh Xrm -rf ./usr/src/ucb/vlp Xrm -rf ./usr/src/ucb/dbx Xrm -rf ./usr/src/ucb/MANIFEST Xrm -rf ./usr/src/ucb/lisp Xrm -rf ./usr/src/ucb/gprof.c Xrm -rf ./usr/src/usr.bin/lint Xrm -rf ./usr/src/usr.bin/efl/bigdefs Xrm -rf ./usr/src/usr.bin/patch/MANIFEST Xrm -rf ./usr/src/usr.lib/PORT Xrm -rf ./usr/src/usr.lib/libF77/mkindx Xrm -rf ./usr/src/usr.lib/libF77/mkindx.c Xrm -rf ./usr/src/usr.lib/libF77/rand_.s.vax Xrm -rf ./usr/src/usr.lib/libF77/rand_.c.other Xrm -rf ./usr/src/usr.lib/libI77/mkindx Xrm -rf ./usr/src/usr.lib/libI77/mkindx.c Xrm -rf ./usr/src/usr.lib/libU77/mkindx Xrm -rf ./usr/src/usr.lib/libU77/mkindx.c Xrm -rf ./usr/src/usr.lib/MANIFEST Xrm -rf ./usr/src/usr.sbin/sendmail/src/READ_ME Xrm -rf ./usr/src/usr.sbin/sendmail/FILES Xrm -rf ./usr/src/usr.sbin/arff Xrm -rf ./usr/src/usr.sbin/PORT Xrm -rf ./usr/src/usr.sbin/kgmon Xrm -rf ./usr/src/usr.sbin/config Xrm -rf ./usr/src/usr.sbin/flcopy Xrm -rf ./usr/src/usr.sbin/implog Xrm -rf ./usr/src/usr.sbin/implogd Xrm -rf ./usr/src/usr.sbin/diskpart Xrm -rf ./usr/hosts Xrm -rf ./usr/old Xrm -rf ./README SHAR_EOF chmod +x 'RM499.sh' fi if test -f 'NEW499.patch' then echo shar: "will not over-write existing file 'NEW499.patch'" else sed 's/^X//' << \SHAR_EOF > 'NEW499.patch' X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/etc/resolv.conf Mon Jan 12 17:30:50 2026 X*************** X*** 0 **** X--- 1,12 ---- X+ # X+ # @(#)resolv.conf 1.0 (2.11BSD) 2026/1/12 X+ # X+ # Settings in this file must match /etc/netstart and /etc/hosts X+ # X+ # Specify your domain on the following line X+ domain example.com X+ # Specify your name servers (DNS lookup) on the following line(s) X+ # The examples given are public-access nameservers from Cloudflare and Google X+ nameserver 1.1.1.1 X+ nameserver 8.8.4.4 X+ nameserver 8.8.8.8 X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/pdp/README.pdpstdio Fri Dec 26 21:53:09 2025 X*************** X*** 0 **** X--- 1,9 ---- X+ README.pdpstdio 1.0 (2.11BSD) 2025/12/26 X+ X+ The files in stdio/ were written for the old stdio but not adapted to the new X+ ANSI compliant stdio package X+ X+ The files in stdio/ are being retained for reference. X+ X+ It is not likely that rewriting the routines in stdio/ for the new stdio X+ will save much space but there might be a minor speed improvement. X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/acvt.c Thu Dec 25 19:50:02 2025 X*************** X*** 0 **** X--- 1,97 ---- X+ /* X+ * Copyright (c) 2020 Anders Magnusson. 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+ * X+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X+ */ X+ X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)acvt.c 1.0 (2.11BSD) 2025/12/25"; X+ #endif X+ X+ #include X+ X+ #include "local.h" X+ X+ union U { X+ double d; X+ short s[4]; X+ }; X+ X+ extern char _hextab[]; X+ X+ /* X+ * convert floating point number to hex format. X+ * buffer is supposed to be big enough. X+ * A dfloat has 13 + 1 significant hex digits (56 bits). X+ * if nd < 0 then all significant digits are written. X+ */ X+ char * X+ __acvt(double d, int nd, char *buf, int *sign) X+ { X+ union U U; X+ register short s, i; X+ register char *b = buf; X+ int e = 0; X+ X+ U.d = d; X+ s = U.s[0]; X+ X+ *sign = s & 0x8000; X+ *b++ = '0'; X+ *b++ = 'X'; X+ *b++ = _hextab[((s >> 4) & 7) | 8]; X+ *b++ = '.'; X+ *b++ = _hextab[s & 15]; X+ for (i = 1; i < 4; i++) X+ for (s = 12; s >= 0; s -= 4) X+ *b++ = _hextab[(U.s[i] >> s) & 15]; X+ if (nd > 13) { X+ while (nd-- > 13) X+ *b++ = '0'; X+ } else if (nd >= 0) { X+ /* XXX rounding */ X+ b = b - 13 + nd; X+ } else /* if (nd < 0) */ { /* significant digits */ X+ *b = 0; X+ while (*--b == '0') X+ ; X+ if (*b == '.') X+ b--; X+ b++; X+ } X+ *b++ = 'P'; X+ /* bias 0200, # of bits left of . is four */ X+ s = ((U.s[0] >> 7) & 0377) - 0200 - 4; X+ if (s < 0) { X+ *b++ = '-'; X+ s = -s; X+ } else X+ *b++ = '+'; X+ if (s >= 100) X+ *b++ = '1'; X+ s = s % 100; X+ if (s >= 10) X+ *b++ = _hextab[s / 10]; X+ s = s % 10; X+ *b++ = _hextab[s]; X+ *b = 0; X+ return buf; X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/fclose.c Thu Dec 25 19:50:27 2025 X*************** X*** 0 **** X--- 1,75 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)fclose.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ fclose(register FILE *fp) X+ { X+ register int r = 0; X+ register struct __sfops *sf; X+ void *c; X+ X+ if (fp->_flags == 0) { /* not open! */ X+ errno = EBADF; X+ return (EOF); X+ } X+ if (fp->_flags & __SWR) X+ r = __sflush(fp); X+ sf = fp->_fops; X+ c = COOKIE(fp); X+ if (sf->_close != NULL && (*sf->_close)(c) < 0) X+ r = EOF; X+ if (sf->_ub._base) X+ free(sf->_ub._base); X+ if (HASLB(sf)) X+ FREELB(sf); X+ if (ISFALL(fp)) X+ free(fp->_fops); X+ X+ if (fp->_flags & __SMBF) X+ free((char *)fp->_bf._base); X+ fp->_fops = &__sdefops; X+ fp->_flags = 0; /* Release this FILE for reuse. */ X+ fp->_r = fp->_w = 0; /* Mess up if reaccessed. */ X+ return (r); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/fflush.c Thu Dec 25 19:50:52 2025 X*************** X*** 0 **** X--- 1,91 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)fflush.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include "local.h" X+ X+ /* Flush a single file, or (if fp is NULL) all files. */ X+ int X+ fflush(register FILE *fp) X+ { X+ X+ if (fp == NULL) X+ return (_fwalk(__sflush)); X+ if ((fp->_flags & (__SWR | __SRW)) == 0) { X+ errno = EBADF; X+ return (EOF); X+ } X+ return (__sflush(fp)); X+ } X+ X+ int X+ __sflush(register FILE *fp) X+ { X+ register unsigned char *p; X+ register int t, n; X+ X+ t = fp->_flags; X+ if ((t & __SWR) == 0) X+ return (0); X+ X+ if ((p = fp->_bf._base) == NULL) X+ return (0); X+ X+ n = fp->_p - p; /* write this much */ X+ X+ /* X+ * Set these immediately to avoid problems with longjmp and to allow X+ * exchange buffering (via setvbuf) in user write function. X+ */ X+ fp->_p = p; X+ fp->_w = 0; X+ if ((t & (__SLBF|__SNBF)) == 0) X+ fp->_w = fp->_bf._size; X+ X+ for (; n > 0; n -= t, p += t) { X+ t = (*fp->_fops->_write)(COOKIE(fp), (char *)p, n); X+ if (t <= 0) { X+ fp->_flags |= __SERR; X+ return (EOF); X+ } X+ } X+ return (0); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/findfp.c Thu Jan 1 10:04:33 2026 X*************** X*** 0 **** X--- 1,161 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ 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+ #include X+ #include X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ /* X+ * ragge 200607 X+ * Removed glue, not useful on pdp11. X+ * Split out fileops to save data space. X+ * f_prealloc() removed. X+ */ X+ X+ int __sdidinit; X+ X+ #define std(flags, file) \ X+ {0, 0, 0, flags, file, {0}, 0, &__sdefops} X+ /* p r w flags file _bf z opsptr */ X+ X+ struct __sfops __sdefops = X+ { NULL, __sclose, __sread, __sseek, __swrite, }; X+ X+ FILE __sF[FOPEN_MAX] = { X+ std(__SRD, STDIN_FILENO), /* stdin */ X+ std(__SWR, STDOUT_FILENO), /* stdout */ X+ std(__SWR|__SNBF, STDERR_FILENO) /* stderr */ X+ }; X+ X+ static struct flink { X+ struct flink *next; X+ struct __sFILE sfile; X+ } *fpole; X+ X+ /* X+ * Find a free FILE for fopen et al. X+ */ X+ FILE * X+ __sfp() X+ { X+ register FILE *fp; X+ register int n; X+ register struct flink *g; X+ X+ for (n = 0, fp = __sF; n < FOPEN_MAX; fp++, n++) X+ if (fp->_flags == 0) X+ goto found; X+ for (g = fpole; g; g = g->next) X+ if (g->sfile._flags == 0) { X+ fp = &g->sfile; X+ goto found; X+ } X+ if ((g = malloc(sizeof(struct flink))) == NULL) X+ return NULL; X+ g->next = fpole; X+ fpole = g; X+ fp = &g->sfile; X+ X+ found: X+ fp->_flags = 1; /* reserve this slot; caller sets real flags */ X+ fp->_p = NULL; /* no current pointer */ X+ fp->_w = 0; /* nothing to read or write */ X+ fp->_r = 0; X+ fp->_bf._base = NULL; /* no buffer */ X+ fp->_bf._size = 0; X+ fp->_lbfsize = 0; /* not line buffered */ X+ fp->_file = -1; /* no file */ X+ fp->_fops = &__sdefops; /* set default fileops */ X+ return (fp); X+ } X+ X+ /* X+ * Copy the file operations struct when local changes are needed. X+ */ X+ int X+ __scopyfops(register FILE *fp) X+ { X+ register struct __sfops *nf; X+ X+ if (ISFALL(fp)) X+ return 0; /* Already copied */ X+ X+ if ((nf = malloc(sizeof(struct __sfops))) == NULL) X+ return EOF; X+ *nf = __sdefops; X+ fp->_fops = nf; X+ nf->_cookie = fp; /* default */ X+ return 0; X+ } X+ X+ int X+ _fwalk(int (*function)(FILE *)) X+ { X+ register FILE *fp; X+ register struct flink *g; X+ register int n, ret; X+ X+ ret = 0; 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+ X+ /* X+ * exit() calls _cleanup() through *__cleanup, set whenever we X+ * open or buffer a file. This chicanery is done so that programs X+ * that do not use stdio need not link it all in. X+ * X+ * The name `_cleanup' is, alas, fairly well known outside stdio. X+ */ X+ void X+ _cleanup() X+ { X+ /* (void) _fwalk(fclose); */ X+ (void) _fwalk(__sflush); /* `cheating' */ X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/flags.c Thu Dec 25 19:51:30 2025 X*************** X*** 0 **** X--- 1,88 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)flags.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include X+ X+ /* X+ * Return the (stdio) flags for a given mode. Store the flags X+ * to be passed to an open() syscall through *optr. X+ * Return 0 on error. X+ */ X+ int X+ __sflags(register char *mode, int *optr) X+ { X+ register int ret, m, o; X+ X+ switch (*mode++) { X+ X+ case 'r': /* open for reading */ X+ ret = __SRD; X+ m = O_RDONLY; X+ o = 0; X+ break; X+ X+ case 'w': /* open for writing */ X+ ret = __SWR; X+ m = O_WRONLY; X+ o = O_CREAT | O_TRUNC; X+ break; X+ X+ case 'a': /* open for appending */ X+ ret = __SWR; X+ m = O_WRONLY; X+ o = O_CREAT | O_APPEND; X+ break; X+ X+ default: /* illegal mode */ X+ errno = EINVAL; X+ return (0); X+ } X+ X+ /* [rwa]\+ or [rwa]b\+ means read and write */ X+ if (*mode == '+' || (*mode == 'b' && mode[1] == '+')) { X+ ret = __SRW; X+ m = O_RDWR; X+ } X+ *optr = m | o; X+ return (ret); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/fpfcom.c Thu Dec 25 19:52:01 2025 X*************** X*** 0 **** X--- 1,18 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)fpfcom.c 1.0 (2.11BSD) 2025/12/25"; X+ #endif X+ X+ #include X+ #include "local.h" X+ X+ /* X+ * Format floating point numbers. X+ * A formatted number is but in a buffer of size pi->nallo, ending at X+ * address pi->bend. Beginning of number buffer is returned, and end X+ * of buffer must be pi->bend. X+ */ X+ char * X+ __pfcom(int ch, struct prinfo *pi) X+ { X+ return pi->bend; X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/fpurge.c Thu Dec 25 19:52:23 2025 X*************** X*** 0 **** X--- 1,65 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)fpurge.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ /* X+ * fpurge: like fflush, but without writing anything: leave the X+ * given FILE's buffer empty. X+ */ X+ int X+ fpurge(fp) X+ register FILE *fp; X+ { X+ if (!fp->_flags) { X+ errno = EBADF; X+ return(EOF); X+ } X+ X+ if (HASUB(fp)) X+ FREEUB(fp); X+ fp->_p = fp->_bf._base; X+ fp->_r = 0; X+ fp->_w = fp->_flags & (__SLBF|__SNBF) ? 0 : fp->_bf._size; X+ return (0); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/fscanf.c Thu Dec 25 19:52:48 2025 X*************** X*** 0 **** X--- 1,68 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)fscanf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #if __STDC__ X+ #include X+ #else X+ #include X+ #endif X+ X+ #if __STDC__ X+ fscanf(FILE *fp, char const *fmt, ...) { X+ int ret; X+ va_list ap; X+ X+ va_start(ap, fmt); X+ #else X+ fscanf(fp, fmt, va_alist) X+ FILE *fp; X+ char *fmt; X+ va_dcl X+ { X+ int ret; X+ va_list ap; X+ X+ va_start(ap); X+ #endif X+ ret = __svfscanf(fp, fmt, ap); X+ va_end(ap); X+ return (ret); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/fvwrite.c Thu Dec 25 19:53:08 2025 X*************** X*** 0 **** X--- 1,192 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)fvwrite.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include "local.h" X+ #include "fvwrite.h" X+ X+ /* X+ * Write some memory regions. Return zero on success, EOF on error. X+ * X+ * This routine is large and unsightly, but most of the ugliness due X+ * to the three different kinds of output buffering is handled here. X+ */ X+ int X+ __sfvwrite(register FILE *fp, register struct __suio *uio) X+ { X+ register size_t len; X+ register char *p; X+ register struct __siov *iov; X+ register int w, s; X+ struct __sfops *sf = fp->_fops; X+ char *nl; X+ int nlknown, nldist; X+ void *c; X+ X+ if ((len = uio->uio_resid) == 0) X+ return (0); X+ /* make sure we can write */ X+ if (cantwrite(fp)) X+ return (EOF); X+ X+ #define MIN(a, b) ((a) < (b) ? (a) : (b)) X+ #define COPY(n) (void)memcpy((void *)fp->_p, (void *)p, (size_t)(n)) X+ X+ c = COOKIE(fp); X+ X+ iov = uio->uio_iov; X+ p = iov->iov_base; X+ len = iov->iov_len; X+ iov++; X+ #define GETIOV(extra_work) \ X+ while (len == 0) { \ X+ extra_work; \ X+ p = iov->iov_base; \ X+ len = iov->iov_len; \ X+ iov++; \ X+ } X+ if (fp->_flags & __SNBF) { X+ /* X+ * Unbuffered: write up to BUFSIZ bytes at a time. X+ */ X+ do { X+ GETIOV(;); X+ w = (*sf->_write)(c, p, MIN(len, BUFSIZ)); X+ if (w <= 0) X+ goto err; X+ p += w; X+ len -= w; X+ } while ((uio->uio_resid -= w) != 0); X+ } else if ((fp->_flags & __SLBF) == 0) { X+ /* X+ * Fully buffered: fill partially full buffer, if any, X+ * and then flush. If there is no partial buffer, write X+ * one _bf._size byte chunk directly (without copying). X+ * X+ * String output is a special case: write as many bytes X+ * as fit, but pretend we wrote everything. This makes X+ * snprintf() return the number of bytes needed, rather X+ * than the number used, and avoids its write function X+ * (so that the write function can be invalid). X+ */ X+ do { X+ GETIOV(;); X+ w = fp->_w; X+ if (fp->_flags & __SSTR) { X+ if (len < w) X+ w = len; X+ COPY(w); /* copy MIN(fp->_w,len), */ X+ fp->_w -= w; X+ fp->_p += w; X+ w = len; /* but pretend copied all */ X+ } else if (fp->_p > fp->_bf._base && len > w) { X+ /* fill and flush */ X+ COPY(w); X+ /* fp->_w -= w; */ /* unneeded */ X+ fp->_p += w; X+ if (fflush(fp)) X+ goto err; X+ } else if (len >= (w = fp->_bf._size)) { X+ /* write directly */ X+ w = (*sf->_write)(c, p, w); X+ if (w <= 0) X+ goto err; X+ } else { X+ /* fill and done */ X+ w = len; X+ COPY(w); X+ fp->_w -= w; X+ fp->_p += w; X+ } X+ p += w; X+ len -= w; X+ } while ((uio->uio_resid -= w) != 0); X+ } else { X+ /* X+ * Line buffered: like fully buffered, but we X+ * must check for newlines. Compute the distance X+ * to the first newline (including the newline), X+ * or `infinity' if there is none, then pretend X+ * that the amount to write is MIN(len,nldist). X+ */ X+ nlknown = 0; X+ nldist = 0; /* XXX just to keep gcc happy */ X+ do { X+ GETIOV(nlknown = 0); X+ if (!nlknown) { X+ nl = memchr((void *)p, '\n', len); X+ nldist = nl ? nl + 1 - p : len + 1; X+ nlknown = 1; X+ } X+ s = MIN(len, nldist); X+ w = fp->_w + fp->_bf._size; X+ if (fp->_p > fp->_bf._base && s > w) { X+ COPY(w); X+ /* fp->_w -= w; */ X+ fp->_p += w; X+ if (fflush(fp)) X+ goto err; X+ } else if (s >= (w = fp->_bf._size)) { X+ w = (*sf->_write)(c, p, w); X+ if (w <= 0) X+ goto err; X+ } else { X+ w = s; X+ COPY(w); X+ fp->_w -= w; X+ fp->_p += w; X+ } X+ if ((nldist -= w) == 0) { X+ /* copied the newline: flush and forget */ X+ if (fflush(fp)) X+ goto err; X+ nlknown = 0; X+ } X+ p += w; X+ len -= w; X+ } while ((uio->uio_resid -= w) != 0); X+ } X+ return (0); X+ X+ err: X+ fp->_flags |= __SERR; X+ return (EOF); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/fvwrite.h Thu Dec 25 19:53:21 2025 X*************** X*** 0 **** X--- 1,56 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ * @(#)fvwrite.h 8.2 (2.11BSD) 2025/12/25 X+ */ X+ X+ /* X+ * I/O descriptors for __sfvwrite(). X+ */ X+ struct __siov { X+ void *iov_base; X+ size_t iov_len; X+ }; X+ struct __suio { X+ struct __siov *uio_iov; X+ int uio_iovcnt; X+ int uio_resid; X+ }; X+ X+ #if __STDC__ || c_plusplus X+ extern int __sfvwrite(FILE *, struct __suio *); X+ #else X+ extern int __sfvwrite(); X+ #endif X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/getc.c Thu Dec 25 19:53:36 2025 X*************** X*** 0 **** X--- 1,52 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)getc.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ X+ /* X+ * A subroutine version of the macro getc. X+ */ X+ #undef getc X+ X+ int X+ getc(register FILE *fp) X+ { X+ return (__sgetc(fp)); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/local.h Thu Dec 25 19:53:57 2025 X*************** X*** 0 **** X--- 1,135 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ * @(#)local.h 8.4 (2.11BSD) 2025/12/25 X+ */ X+ X+ /* X+ * Information local to this implementation of stdio, X+ * in particular, macros and private variables. X+ */ X+ X+ extern int __sflush(FILE *); X+ extern FILE *__sfp(void); X+ extern int __srefill(FILE *); X+ extern int __sread(void *, char *, int); X+ extern int __swrite(void *, char const *, int); X+ extern fpos_t __sseek(void *, fpos_t, int); X+ extern int __sclose(void *); X+ extern void _cleanup(void); X+ extern void __smakebuf(FILE *); X+ extern int __swhatbuf(FILE *, size_t *, int *); X+ extern int _fwalk(int (*)(FILE *)); X+ extern int __swsetup(FILE *); X+ extern int __sflags(const char *, int *); X+ X+ extern int __sdidinit; X+ extern struct __sfops __sdefops; X+ X+ #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) X+ X+ /* X+ * The fops struct is allocated on demand. Nothing in this struct X+ * is needed for the Ansi-C requirements. X+ * If fops is the default struct then cookie is the FILE desc, X+ * otherwise it is locally set in the allocated struct. X+ */ X+ #define ISFALL(fp) ((fp)->_fops != &__sdefops) X+ #define COOKIE(fp) (ISFALL(fp) ? (fp)->_fops->_cookie : (void *)(fp)) X+ X+ /* X+ * Return true iff the given FILE cannot be written now. X+ */ X+ #define cantwrite(fp) \ X+ ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \ X+ __swsetup(fp)) X+ X+ /* X+ * Test whether the given stdio file has an active ungetc buffer; X+ * release such a buffer, without restoring ordinary unread data. X+ */ X+ #define HASUB(fp) ((fp)->_fops->_ub._base != NULL) X+ #define FREEUB(fp) __sfreeub(fp) X+ X+ /* X+ * test for an fgetln() buffer. X+ */ X+ #define HASLB(fp) ((fp)->_lb._base != NULL) X+ #define FREELB(fp) { \ X+ free((char *)(fp)->_lb._base); \ X+ (fp)->_lb._base = NULL; \ X+ } X+ X+ /* X+ * These are used when calling the cleverly broken out floating point routines. X+ */ X+ #define FLADJ 000001 /* left adjustment */ X+ #define FPLUS 000002 /* add '+' for positive numbers */ X+ #define FSPC 000004 /* add ' ' for positive numbers */ X+ #define FALT 000010 /* alternate format */ X+ #define FZERO 000020 /* pad fld width with leading '0' */ X+ X+ #define MLONG 000040 /* long format */ X+ #define MLLONG 000100 /* long long format */ X+ #define MCHAR 000200 /* short format */ X+ #define MCCHAR 000400 /* char format */ X+ X+ #define CDEC 001000 /* decimal output */ X+ #define CHEX 002000 /* hex output */ X+ #define CSGN 004000 /* output is signed */ X+ #define CUC 010000 /* uppercase digits in output */ X+ X+ #define ISNEG 020000 /* value is negative */ X+ #define NDFND 040000 /* precision digits found */ X+ X+ struct prinfo { X+ FILE *iob; X+ va_list *app; X+ int width; /* field width, 0 if no width */ X+ int ndigit; /* precision (# of digits) */ X+ int flags; X+ int nwrtn; /* # of written characters in output */ X+ X+ char *bend; /* begin/end of output buffer */ X+ int nallo; /* size of current buffer */ X+ }; X+ X+ /* floating point conversion routines specific to pdp11 floating point */ X+ char *__pfcom(int, struct prinfo *); X+ char *__acvt(double d, int nd, char *buf, int *sign); X+ /* XXX the functions below should be declared in stdlib.h */ X+ char *ecvt(double value, int ndigit, int *decpt, int *sign); X+ char *fcvt(double value, int ndigit, int *decpt, int *sign); X+ char *gcvt(double value, int ndigit, char *buf); X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/makebuf.c Thu Dec 25 19:54:13 2025 X*************** X*** 0 **** X--- 1,84 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)makebuf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ /* X+ * ragge 200607 X+ * Remove optimal buffer selection based on filesystem block size, X+ * makes little sense on pdp11. X+ */ X+ X+ /* X+ * Allocate a file buffer, or switch to unbuffered I/O. X+ * Per the ANSI C standard, ALL tty devices default to line buffered. X+ * X+ * As a side effect, we set __SOPT or __SNPT (en/dis-able fseek X+ * optimisation) right after the fstat() that finds the buffer size. X+ */ X+ void X+ __smakebuf(register FILE *fp) X+ { X+ register void *p; X+ register size_t size; X+ X+ fp->_bf._size = 1; X+ fp->_bf._base = fp->_p = fp->_nbuf; X+ size = BUFSIZ; X+ X+ if ((fp->_flags & __SNBF) || (p = malloc(size)) == NULL) { X+ fp->_flags |= __SNBF; X+ return; X+ } X+ X+ #if 0 X+ __cleanup = _cleanup; X+ #endif X+ fp->_flags |= (__SMBF|__SNPT); X+ fp->_bf._base = fp->_p = p; X+ fp->_bf._size = size; X+ if (isatty(fp->_file)) X+ fp->_flags |= __SLBF; X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/pfcom.c Thu Dec 25 19:54:32 2025 X*************** X*** 0 **** X--- 1,194 ---- 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+ #include X+ #include X+ X+ #include "local.h" X+ X+ #undef NEWORG X+ X+ /* XXX should be in some header file */ X+ char *ecvt(), *fcvt(), *gcvt(), *acvt(); X+ char *divput(register char *dbeg, register int *decpt); X+ X+ /* X+ * Format floating point numbers. X+ * A formatted number is but in a buffer of size pi->nallo, ending at X+ * address pi->bend. Beginning of number buffer is returned, and end X+ * of buffer must be pi->bend. X+ */ X+ char * X+ __pfcom(int ch, struct prinfo *pi) X+ { X+ double d; X+ char *fbeg; X+ register char *fend, *dbeg; X+ register int nd, decpt, sign, m, falt; X+ X+ /* hack to ensure pfcom only get included if floating point used */ X+ asm(".globl fltused ; fltused:"); X+ X+ d = va_arg(*pi->app, double); X+ X+ dbeg = pi->bend; X+ sign = 0; X+ X+ nd = 6; X+ if (pi->flags & NDFND) X+ nd = pi->ndigit; X+ falt = pi->flags & FALT; X+ X+ switch (ch | ' ') { X+ case 'f': X+ #ifdef NEWORG X+ dbeg -= pi->nallo; X+ fbeg = dbeg; X+ fend = fcvt(d, nd, &decpt, &sign); X+ if (decpt <= 0) X+ *dbeg++ = '0'; X+ else X+ while (decpt-- > 0) X+ *dbeg++ = *fend++; X+ *dbeg++ = '.'; X+ while (++decpt <= 0) X+ *dbeg++ = '0'; X+ while (*fend) X+ *dbeg++ = *fend++; X+ fend = pi->bend; X+ while (dbeg > fbeg) X+ *--fend = *--dbeg; X+ #else X+ fend = fbeg = fcvt(d, nd, &decpt, &sign); X+ while (*fend++); fend--; X+ X+ if (nd | falt) { X+ while (fend > fbeg && nd) X+ *--dbeg = *--fend, nd--; X+ while (nd-- > 0) X+ *--dbeg = '0'; X+ *--dbeg = '.'; X+ } X+ while (fend > fbeg) X+ *--dbeg = *--fend; X+ if (*dbeg == '.') X+ *--dbeg = '0'; X+ #endif X+ break; X+ case 'e': X+ #ifdef NEWORG X+ dbeg -= pi->nallo; X+ fbeg = dbeg; X+ fend = ecvt(d, ++nd, &decpt, &sign); X+ if (*fend == '0') X+ decpt++; X+ *dbeg++ = *fend++; X+ if (--nd | falt) { X+ *dbeg++ = '.'; X+ while (--nd >= 0) X+ *dbeg++ = *fend++; X+ } X+ *dbeg++ = ch; X+ nd = '+'; X+ if (--decpt < 0) X+ nd = '-', decpt = -decpt; X+ *dbeg++ = nd; X+ *dbeg++ = (decpt/10) + '0'; X+ *dbeg++ = (decpt%10) + '0'; X+ fend = pi->bend; X+ while (dbeg > fbeg) X+ *--fend = *--dbeg; X+ X+ #else X+ fend = fbeg = ecvt(d, nd+1, &decpt, &sign); X+ while (*fend++); fend--; X+ X+ if (*fbeg != '0') X+ decpt--; X+ dbeg = divput(dbeg, &decpt); X+ *--dbeg = ch; X+ if (nd | falt) { X+ while (nd-- > 0) X+ *--dbeg = *--fend; X+ *--dbeg = '.'; X+ } X+ *--dbeg = *--fend; X+ #endif X+ break; X+ case 'g': X+ /* X+ * F style should be used if (prec > exp >= -4), X+ * otherwise e style. Difference is that no trailing X+ * zeroes are added (unless # flag given). X+ */ X+ if (nd == 0) X+ nd = 1; X+ fend = fbeg = ecvt(d, nd, &decpt, &sign); X+ while (*fend++); fend--; X+ X+ if (*fbeg != '0') X+ decpt--; X+ if (nd > decpt && decpt >= -4) { X+ /* f style */ X+ nd = nd - (decpt + 1); X+ if (!falt) X+ while (fend[-1] == '0' && nd) X+ fend--, nd--; X+ X+ while (fend > fbeg && nd) X+ *--dbeg = *--fend, nd--; X+ while (nd-- > 0) X+ *--dbeg = '0'; X+ if (dbeg != pi->bend || falt) X+ *--dbeg = '.'; X+ while (fend > fbeg) X+ *--dbeg = *--fend; X+ if (*dbeg == '.') X+ *--dbeg = '0'; X+ } else { X+ /* g style */ X+ dbeg = divput(dbeg, &decpt); X+ *--dbeg = ch - ('g' - 'e'); X+ nd--; X+ if (!falt) X+ while (fend[-1] == '0' && nd) X+ fend--, nd--; X+ X+ while (nd-- > 0) X+ *--dbeg = *--fend; X+ if (dbeg != pi->bend-4 || falt) X+ *--dbeg = '.'; X+ *--dbeg = *--fend; X+ } X+ break; X+ default: X+ if ((pi->flags & NDFND) == 0) X+ nd = -1; /* full precision */ X+ fend = fbeg = __acvt(d, nd, pi->bend - pi->nallo, &sign); X+ while (*fend++); fend--; X+ X+ while (fend > fbeg) X+ *--dbeg = *--fend | (ch & ' '); X+ } X+ if (sign) X+ pi->flags |= ISNEG; X+ pi->flags &= ~(NDFND|FALT); X+ X+ return dbeg; X+ } X+ X+ static char * X+ divput(register char *dbeg, register int *decpt) X+ { X+ register int m = '+'; X+ X+ if (*decpt < 0) X+ m = '-', *decpt = -*decpt; X+ X+ *--dbeg = (*decpt % 10) + '0'; X+ *--dbeg = (*decpt/10) + '0'; X+ *--dbeg = m; X+ return dbeg; X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/putc.c Thu Dec 25 19:54:52 2025 X*************** X*** 0 **** X--- 1,52 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)putc.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ X+ /* X+ * A subroutine version of the macro putc. X+ */ X+ #undef putc X+ X+ int X+ putc(int c, register FILE *fp) X+ { X+ return (__sputc(c, fp)); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/refill.c Thu Dec 25 19:55:04 2025 X*************** X*** 0 **** X--- 1,126 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)refill.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ static X+ lflush(FILE *fp) X+ { X+ X+ if ((fp->_flags & (__SLBF|__SWR)) == __SLBF|__SWR) X+ return (__sflush(fp)); X+ return (0); X+ } X+ X+ /* X+ * Refill a stdio buffer. X+ * Return EOF on eof or error, 0 otherwise. X+ */ X+ int X+ __srefill(register FILE *fp) X+ { X+ register struct __sfops *sf; X+ X+ fp->_r = 0; /* largely a convenience for callers */ X+ X+ /* SysV does not make this test; take it out for compatibility */ X+ if (fp->_flags & __SEOF) X+ return (EOF); X+ X+ /* if not already reading, have to be reading and writing */ X+ if ((fp->_flags & __SRD) == 0) { X+ if ((fp->_flags & __SRW) == 0) { X+ errno = EBADF; X+ return (EOF); X+ } X+ /* switch to reading */ X+ if (fp->_flags & __SWR) { X+ if (__sflush(fp)) X+ return (EOF); X+ fp->_flags &= ~__SWR; X+ fp->_w = 0; X+ fp->_lbfsize = 0; X+ } X+ fp->_flags |= __SRD; X+ } else { X+ /* X+ * We were reading. If there is an ungetc buffer, X+ * we must have been reading from that. Drop it, X+ * restoring the previous buffer (if any). If there X+ * is anything in that buffer, return. X+ */ X+ if (HASUB(fp) || (fp->_flags &__SUNC)) { X+ FREEUB(fp); X+ fp->_flags &= ~__SUNC; X+ if ((fp->_r = fp->_ur) != 0) { X+ fp->_p = fp->_up; X+ return (0); X+ } X+ } X+ } X+ X+ if (fp->_bf._base == NULL) X+ __smakebuf(fp); X+ X+ /* X+ * Before reading from a line buffered or unbuffered file, X+ * flush all line buffered output files, per the ANSI C X+ * standard. X+ */ X+ if (fp->_flags & (__SLBF|__SNBF)) X+ (void) _fwalk(lflush); X+ fp->_p = fp->_bf._base; X+ sf = fp->_fops; X+ fp->_r = (*sf->_read)(COOKIE(fp), (char *)fp->_p, fp->_bf._size); X+ fp->_flags &= ~__SMOD; /* buffer contents are again pristine */ X+ if (fp->_r <= 0) { X+ if (fp->_r == 0) X+ fp->_flags |= __SEOF; X+ else { X+ fp->_r = 0; X+ fp->_flags |= __SERR; X+ } X+ return (EOF); X+ } X+ return (0); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/rewind.c Thu Dec 25 19:55:17 2025 X*************** X*** 0 **** X--- 1,50 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)rewind.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ X+ void X+ rewind(register FILE *fp) X+ { X+ (void) fseek(fp, 0L, SEEK_SET); X+ __sclearerr(fp); X+ errno = 0; /* not required, but seems reasonable */ X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/rget.c Thu Dec 25 19:55:29 2025 X*************** X*** 0 **** X--- 1,56 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)rget.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ X+ /* X+ * Handle getc() when the buffer ran out: X+ * Refill, then return the first character X+ * in the newly-filled buffer. X+ */ X+ int X+ __srget(register FILE *fp) X+ { X+ if (__srefill(fp) == 0) { X+ fp->_r--; X+ return (*fp->_p++); X+ } X+ return (EOF); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/snprintf.c Thu Dec 25 19:55:43 2025 X*************** X*** 0 **** X--- 1,61 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)snprintf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ X+ int X+ snprintf(char *str, size_t n, char const *fmt, ...) X+ { X+ int ret; X+ va_list ap; X+ FILE f; X+ X+ if ((int)n < 1) X+ return (EOF); X+ va_start(ap, fmt); X+ f._flags = __SWR | __SSTR; X+ f._bf._base = f._p = (unsigned char *)str; X+ f._bf._size = f._w = n - 1; X+ ret = __svfprintf(&f, fmt, ap); X+ *f._p = 0; X+ va_end(ap); X+ return (ret); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/sscanf.c Thu Dec 25 19:55:56 2025 X*************** X*** 0 **** X--- 1,72 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)sscanf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ /* ARGSUSED */ X+ static int X+ eofread(void *cookie, char *buf, int len) X+ { X+ X+ return (0); X+ } X+ X+ static struct __sfops strops = X+ { NULL, NULL, eofread, NULL, NULL }; X+ X+ int X+ sscanf(const char *str, char const *fmt, ...) X+ { X+ int ret; X+ va_list ap; X+ FILE f; X+ X+ f._flags = __SRD; X+ f._bf._base = f._p = (unsigned char *)str; X+ f._bf._size = f._r = strlen(str); X+ f._fops = &strops; X+ va_start(ap, fmt); X+ ret = __svfscanf(&f, fmt, ap); X+ va_end(ap); X+ return (ret); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/stdio.c Thu Dec 25 19:56:08 2025 X*************** X*** 0 **** X--- 1,116 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)stdio.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ /* X+ * Small standard I/O/seek/close functions. X+ * These maintain the `known seek offset' for seek optimisation. X+ */ X+ int X+ __sread(void *cookie, char *buf, int n) X+ { X+ register FILE *fp = cookie; X+ register int ret; X+ X+ ret = read(fp->_file, buf, n); X+ /* if the read succeeded, update the current offset */ X+ if (ret >= 0) X+ fp->_offset += ret; X+ else X+ fp->_flags &= ~__SOFF; /* paranoia */ X+ return (ret); X+ } X+ X+ __swrite(cookie, buf, n) X+ void *cookie; X+ char const *buf; X+ int n; X+ { X+ register FILE *fp = cookie; X+ X+ if (fp->_flags & __SAPP) X+ (void) lseek(fp->_file, (off_t)0, SEEK_END); X+ fp->_flags &= ~__SOFF; /* in case FAPPEND mode is set */ X+ return (write(fp->_file, buf, n)); X+ } X+ X+ fpos_t X+ __sseek(cookie, offset, whence) X+ void *cookie; X+ fpos_t offset; X+ int whence; X+ { X+ register FILE *fp = cookie; X+ register off_t ret; X+ X+ ret = lseek(fp->_file, (off_t)offset, whence); X+ fp->_flags &= ~__SOFF; X+ if (ret != -1L) { X+ fp->_flags |= __SOFF; X+ fp->_offset = ret; X+ } X+ return (ret); X+ } X+ X+ __sclose(cookie) X+ void *cookie; X+ { X+ X+ return (close(((FILE *)cookie)->_file)); X+ } X+ X+ __shasub(register FILE *fp) X+ { X+ return HASUB(fp); X+ } X+ X+ __sfreeub(register FILE *fp) X+ { X+ register struct __sfops *fops = fp->_fops; X+ X+ if (fops->_ub._base == NULL) X+ return; X+ free(fops->_ub._base); X+ fops->_ub._base = NULL; X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/tempnam.c Thu Dec 25 19:56:20 2025 X*************** X*** 0 **** X--- 1,87 ---- X+ /* X+ * Copyright (c) 1988, 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)tempnam.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include X+ #include X+ #include X+ X+ extern char *mktemp(char *); /* XXX unistd.h */ X+ X+ char * X+ tempnam(const char *dir, const char *pfx) X+ { X+ int sverrno; X+ char *f, *name; X+ X+ if (!(name = malloc(MAXPATHLEN))) X+ return(NULL); X+ X+ if (!pfx) X+ pfx = "tmp."; X+ X+ if (f = getenv("TMPDIR")) { X+ (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f, X+ *(f + strlen(f) - 1) == '/'? "": "/", pfx); X+ if (f = mktemp(name)) X+ return(f); X+ } X+ X+ if (f = (char *)dir) { X+ (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f, X+ *(f + strlen(f) - 1) == '/'? "": "/", pfx); X+ if (f = mktemp(name)) X+ return(f); X+ } X+ X+ f = P_tmpdir; X+ (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); X+ if (f = mktemp(name)) X+ return(f); X+ X+ f = _PATH_TMP; X+ (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); X+ if (f = mktemp(name)) X+ return(f); X+ X+ sverrno = errno; X+ free(name); X+ errno = sverrno; X+ return(NULL); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/tmpfile.c Thu Dec 25 19:56:33 2025 X*************** X*** 0 **** X--- 1,79 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)tmpfile.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include X+ #include X+ #include X+ X+ FILE * X+ tmpfile() X+ { X+ sigset_t set, oset; X+ FILE *fp; X+ int fd, sverrno; X+ #define TRAILER "tmp.XXXXXX" X+ char buf[sizeof(_PATH_TMP) + sizeof(TRAILER)]; X+ X+ (void)memcpy(buf, _PATH_TMP, sizeof(_PATH_TMP) - 1); X+ (void)memcpy(buf + sizeof(_PATH_TMP) - 1, TRAILER, sizeof(TRAILER)); X+ X+ sigfillset(&set); X+ (void)sigprocmask(SIG_BLOCK, &set, &oset); X+ X+ fd = mkstemp(buf); X+ if (fd != -1) X+ (void)unlink(buf); X+ X+ (void)sigprocmask(SIG_SETMASK, &oset, NULL); X+ X+ if (fd == -1) X+ return (NULL); X+ X+ if ((fp = fdopen(fd, "w+")) == NULL) { X+ sverrno = errno; X+ (void)close(fd); X+ errno = sverrno; X+ return (NULL); X+ } X+ return (fp); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/tmpnam.c Thu Dec 25 19:56:46 2025 X*************** X*** 0 **** X--- 1,59 ---- X+ /*- X+ * Copyright (c) 1990, 1993, 1994 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)tmpnam.c 8.4 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ X+ #include X+ #include X+ X+ extern char *mktemp(char *); /* XXX unistd.h */ X+ X+ char * X+ tmpnam(char *s) X+ { X+ static u_long tmpcount; X+ static char buf[L_tmpnam]; X+ X+ if (s == NULL) X+ s = buf; X+ (void)snprintf(s, L_tmpnam, "%stmp.%lu.XXXXXX", P_tmpdir, tmpcount); X+ ++tmpcount; X+ return (mktemp(s)); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/vfscanf.c Thu Dec 25 19:57:01 2025 X*************** X*** 0 **** X--- 1,748 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)vfscanf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include X+ #include X+ #include "local.h" X+ X+ #define FLOATING_POINT X+ X+ double atof(char *); X+ #define strtod(x,y) atof(x) X+ X+ X+ #define BUF 513 /* Maximum length of numeric string. */ X+ X+ /* X+ * Flags used during conversion. X+ */ X+ #define LONG 0x01 /* l: long or double */ X+ #define LONGDBL 0x02 /* L: long double; unimplemented */ X+ #define SHORT 0x04 /* h: short */ X+ #define SUPPRESS 0x08 /* suppress assignment */ X+ #define POINTER 0x10 /* weird %p pointer (`fake hex') */ X+ #define NOSKIP 0x20 /* do not skip blanks */ X+ X+ /* X+ * The following are used in numeric conversions only: X+ * SIGNOK, NDIGITS, DPTOK, and EXPOK are for floating point; X+ * SIGNOK, NDIGITS, PFXOK, and NZDIGITS are for integral. X+ */ X+ #define SIGNOK 0x40 /* +/- is (still) legal */ X+ #define NDIGITS 0x80 /* no digits detected */ X+ X+ #define DPTOK 0x100 /* (float) decimal point is still legal */ X+ #define EXPOK 0x200 /* (float) exponent (e+3, etc) still legal */ X+ X+ #define PFXOK 0x100 /* 0x prefix is (still) legal */ X+ #define NZDIGITS 0x200 /* no zero digits detected */ X+ X+ /* X+ * Conversion types. X+ */ X+ #define CT_CHAR 0 /* %c conversion */ X+ #define CT_CCL 1 /* %[...] conversion */ X+ #define CT_STRING 2 /* %s conversion */ X+ #define CT_INT 3 /* integer, i.e., strtol or strtoul */ X+ #define CT_FLOAT 4 /* floating, i.e., strtod */ X+ X+ #define u_char unsigned char X+ #define u_long unsigned long X+ X+ static u_char *__sccl(); X+ X+ /* X+ * vfscanf X+ */ X+ int X+ __svfscanf(register FILE *fp, char const *fmt0, va_list ap) X+ { X+ register u_char *fmt = (u_char *)fmt0; X+ register int c; /* character from format, or conversion */ X+ register size_t width; /* field width, or 0 */ X+ register char *p; /* points into all kinds of strings */ X+ register int n; /* handy integer */ X+ register int flags; /* flags as defined above */ X+ register char *p0; /* saves original value of p when necessary */ X+ int nassigned; /* number of fields assigned */ X+ int nread; /* number of characters consumed from fp */ X+ int base; /* base argument to strtol/strtoul */ X+ u_long (*ccfn)(); /* conversion function (strtol/strtoul) */ X+ char ccltab[256]; /* character class table for %[...] */ X+ char buf[BUF]; /* buffer for numeric conversions */ X+ X+ /* `basefix' is used to avoid `if' tests in the integer scanner */ X+ static short basefix[17] = X+ { 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; X+ X+ nassigned = 0; X+ nread = 0; X+ base = 0; /* XXX just to keep gcc happy */ X+ ccfn = NULL; /* XXX just to keep gcc happy */ X+ for (;;) { X+ c = *fmt++; X+ if (c == 0) X+ return (nassigned); X+ if (isspace(c)) { X+ for (;;) { X+ if (fp->_r <= 0 && __srefill(fp)) X+ return (nassigned); X+ if (!isspace(*fp->_p)) X+ break; X+ nread++, fp->_r--, fp->_p++; X+ } X+ continue; X+ } X+ if (c != '%') X+ goto literal; X+ width = 0; X+ flags = 0; X+ /* X+ * switch on the format. continue if done; X+ * break once format type is derived. X+ */ X+ again: c = *fmt++; X+ switch (c) { X+ case '%': X+ while ((fp->_r > 0 || __srefill(fp) == 0) && X+ isspace(*fp->_p)) X+ nread++, fp->_r--, fp->_p++; X+ literal: X+ if (fp->_r <= 0 && __srefill(fp)) X+ goto input_failure; X+ if (*fp->_p != c) X+ goto match_failure; X+ fp->_r--, fp->_p++; X+ nread++; X+ continue; X+ X+ case '*': X+ flags |= SUPPRESS; X+ goto again; X+ case 'l': X+ flags |= LONG; X+ goto again; X+ case 'L': X+ flags |= LONGDBL; X+ goto again; X+ case 'h': X+ flags |= SHORT; X+ goto again; X+ X+ case '0': case '1': case '2': case '3': case '4': X+ case '5': case '6': case '7': case '8': case '9': X+ width = width * 10 + c - '0'; X+ goto again; X+ X+ /* X+ * Conversions. X+ * Those marked `compat' are for 4.[123]BSD compatibility. X+ * X+ * (According to ANSI, E and X formats are supposed X+ * to the same as e and x. Sorry about that.) X+ */ X+ case 'D': /* compat */ X+ flags |= LONG; X+ /* FALLTHROUGH */ X+ case 'd': X+ c = CT_INT; X+ ccfn = (u_long (*)())strtol; X+ base = 10; X+ break; X+ X+ case 'i': X+ c = CT_INT; X+ ccfn = (u_long (*)())strtol; X+ base = 0; X+ break; X+ X+ case 'O': /* compat */ X+ flags |= LONG; X+ /* FALLTHROUGH */ X+ case 'o': X+ c = CT_INT; X+ ccfn = strtoul; X+ base = 8; X+ break; X+ X+ case 'u': X+ c = CT_INT; X+ ccfn = strtoul; X+ base = 10; X+ break; X+ X+ case 'X': /* compat XXX */ X+ flags |= LONG; X+ /* FALLTHROUGH */ X+ case 'x': X+ flags |= PFXOK; /* enable 0x prefixing */ X+ c = CT_INT; X+ ccfn = strtoul; X+ base = 16; X+ break; X+ X+ #ifdef FLOATING_POINT X+ case 'E': /* compat XXX */ X+ case 'F': /* compat */ X+ flags |= LONG; X+ /* FALLTHROUGH */ X+ case 'e': case 'f': case 'g': X+ c = CT_FLOAT; X+ break; X+ #endif X+ X+ case 's': X+ c = CT_STRING; X+ break; X+ X+ case '[': X+ fmt = __sccl(ccltab, fmt); X+ flags |= NOSKIP; X+ c = CT_CCL; X+ break; X+ X+ case 'c': X+ flags |= NOSKIP; X+ c = CT_CHAR; X+ break; X+ X+ case 'p': /* pointer format is like hex */ X+ flags |= POINTER | PFXOK; X+ c = CT_INT; X+ ccfn = strtoul; X+ base = 16; X+ break; X+ X+ case 'n': X+ if (flags & SUPPRESS) /* ??? */ X+ continue; X+ if (flags & SHORT) X+ *va_arg(ap, short *) = nread; X+ else if (flags & LONG) X+ *va_arg(ap, long *) = nread; X+ else X+ *va_arg(ap, int *) = nread; X+ continue; X+ X+ /* X+ * Disgusting backwards compatibility hacks. XXX X+ */ X+ case '\0': /* compat */ X+ return (EOF); X+ X+ default: /* compat */ X+ if (isupper(c)) X+ flags |= LONG; X+ c = CT_INT; X+ ccfn = (u_long (*)())strtol; X+ base = 10; X+ break; X+ } X+ X+ /* X+ * We have a conversion that requires input. X+ */ X+ if (fp->_r <= 0 && __srefill(fp)) X+ goto input_failure; X+ X+ /* X+ * Consume leading white space, except for formats X+ * that suppress this. X+ */ X+ if ((flags & NOSKIP) == 0) { X+ while (isspace(*fp->_p)) { X+ nread++; X+ if (--fp->_r > 0) X+ fp->_p++; X+ else if (__srefill(fp)) X+ goto input_failure; X+ } X+ /* X+ * Note that there is at least one character in X+ * the buffer, so conversions that do not set NOSKIP X+ * ca no longer result in an input failure. X+ */ X+ } X+ X+ /* X+ * Do the conversion. X+ */ X+ switch (c) { X+ X+ case CT_CHAR: X+ /* scan arbitrary characters (sets NOSKIP) */ X+ if (width == 0) X+ width = 1; X+ if (flags & SUPPRESS) { X+ size_t sum = 0; X+ for (;;) { X+ if ((n = fp->_r) < width) { X+ sum += n; X+ width -= n; X+ fp->_p += n; X+ if (__srefill(fp)) { X+ if (sum == 0) X+ goto input_failure; X+ break; X+ } X+ } else { X+ sum += width; X+ fp->_r -= width; X+ fp->_p += width; X+ break; X+ } X+ } X+ nread += sum; X+ } else { X+ size_t r = fread((void *)va_arg(ap, char *), 1, X+ width, fp); X+ X+ if (r == 0) X+ goto input_failure; X+ nread += r; X+ nassigned++; X+ } X+ break; X+ X+ case CT_CCL: X+ /* scan a (nonempty) character class (sets NOSKIP) */ X+ if (width == 0) X+ width = ~0; /* `infinity' */ X+ /* take only those things in the class */ X+ if (flags & SUPPRESS) { X+ n = 0; X+ while (ccltab[*fp->_p]) { X+ n++, fp->_r--, fp->_p++; X+ if (--width == 0) X+ break; X+ if (fp->_r <= 0 && __srefill(fp)) { X+ if (n == 0) X+ goto input_failure; X+ break; X+ } X+ } X+ if (n == 0) X+ goto match_failure; X+ } else { X+ p0 = p = va_arg(ap, char *); X+ while (ccltab[*fp->_p]) { X+ fp->_r--; X+ *p++ = *fp->_p++; X+ if (--width == 0) X+ break; X+ if (fp->_r <= 0 && __srefill(fp)) { X+ if (p == p0) X+ goto input_failure; X+ break; X+ } X+ } X+ n = p - p0; X+ if (n == 0) X+ goto match_failure; X+ *p = 0; X+ nassigned++; X+ } X+ nread += n; X+ break; X+ X+ case CT_STRING: X+ /* like CCL, but zero-length string OK, & no NOSKIP */ X+ if (width == 0) X+ width = ~0; X+ if (flags & SUPPRESS) { X+ n = 0; X+ while (!isspace(*fp->_p)) { X+ n++, fp->_r--, fp->_p++; X+ if (--width == 0) X+ break; X+ if (fp->_r <= 0 && __srefill(fp)) X+ break; X+ } X+ nread += n; X+ } else { X+ p0 = p = va_arg(ap, char *); X+ while (!isspace(*fp->_p)) { X+ fp->_r--; X+ *p++ = *fp->_p++; X+ if (--width == 0) X+ break; X+ if (fp->_r <= 0 && __srefill(fp)) X+ break; X+ } X+ *p = 0; X+ nread += p - p0; X+ nassigned++; X+ } X+ continue; X+ X+ case CT_INT: X+ /* scan an integer as if by strtol/strtoul */ X+ #ifdef hardway X+ if (width == 0 || width > sizeof(buf) - 1) X+ width = sizeof(buf) - 1; X+ #else X+ /* size_t is unsigned, hence this optimisation */ X+ if (--width > sizeof(buf) - 2) X+ width = sizeof(buf) - 2; X+ width++; X+ #endif X+ flags |= SIGNOK | NDIGITS | NZDIGITS; X+ for (p = buf; width; width--) { X+ c = *fp->_p; X+ /* X+ * Switch on the character; `goto ok' X+ * if we accept it as a part of number. X+ */ X+ switch (c) { X+ X+ /* X+ * The digit 0 is always legal, but is X+ * special. For %i conversions, if no X+ * digits (zero or nonzero) have been X+ * scanned (only signs), we will have X+ * base==0. In that case, we should set X+ * it to 8 and enable 0x prefixing. X+ * Also, if we have not scanned zero digits X+ * before this, do not turn off prefixing X+ * (someone else will turn it off if we X+ * have scanned any nonzero digits). X+ */ X+ case '0': X+ if (base == 0) { X+ base = 8; X+ flags |= PFXOK; X+ } X+ if (flags & NZDIGITS) X+ flags &= ~(SIGNOK|NZDIGITS|NDIGITS); X+ else X+ flags &= ~(SIGNOK|PFXOK|NDIGITS); X+ goto ok; X+ X+ /* 1 through 7 always legal */ X+ case '1': case '2': case '3': X+ case '4': case '5': case '6': case '7': X+ base = basefix[base]; X+ flags &= ~(SIGNOK | PFXOK | NDIGITS); X+ goto ok; X+ X+ /* digits 8 and 9 ok iff decimal or hex */ X+ case '8': case '9': X+ base = basefix[base]; X+ if (base <= 8) X+ break; /* not legal here */ X+ flags &= ~(SIGNOK | PFXOK | NDIGITS); X+ goto ok; X+ X+ /* letters ok iff hex */ X+ case 'A': case 'B': case 'C': X+ case 'D': case 'E': case 'F': X+ case 'a': case 'b': case 'c': X+ case 'd': case 'e': case 'f': X+ /* no need to fix base here */ X+ if (base <= 10) X+ break; /* not legal here */ X+ flags &= ~(SIGNOK | PFXOK | NDIGITS); X+ goto ok; X+ X+ /* sign ok only as first character */ X+ case '+': case '-': X+ if (flags & SIGNOK) { X+ flags &= ~SIGNOK; X+ goto ok; X+ } X+ break; X+ X+ /* x ok iff flag still set & 2nd char */ X+ case 'x': case 'X': X+ if (flags & PFXOK && p == buf + 1) { X+ base = 16; /* if %i */ X+ flags &= ~PFXOK; X+ goto ok; X+ } X+ break; X+ } X+ X+ /* X+ * If we got here, c is not a legal character X+ * for a number. Stop accumulating digits. X+ */ X+ break; X+ ok: X+ /* X+ * c is legal: store it and look at the next. X+ */ X+ *p++ = c; X+ if (--fp->_r > 0) X+ fp->_p++; X+ else if (__srefill(fp)) X+ break; /* EOF */ X+ } X+ /* X+ * If we had only a sign, it is no good; push X+ * back the sign. If the number ends in `x', X+ * it was [sign] '0' 'x', so push back the x X+ * and treat it as [sign] '0'. X+ */ X+ if (flags & NDIGITS) { X+ if (p > buf) X+ (void) ungetc(*(u_char *)--p, fp); X+ goto match_failure; X+ } X+ c = ((u_char *)p)[-1]; X+ if (c == 'x' || c == 'X') { X+ --p; X+ (void) ungetc(c, fp); X+ } X+ if ((flags & SUPPRESS) == 0) { X+ u_long res; X+ X+ *p = 0; X+ res = (*ccfn)(buf, (char **)NULL, base); X+ if (flags & POINTER) X+ *va_arg(ap, void **) = (void *)res; X+ else if (flags & SHORT) X+ *va_arg(ap, short *) = res; X+ else if (flags & LONG) X+ *va_arg(ap, long *) = res; X+ else X+ *va_arg(ap, int *) = res; X+ nassigned++; X+ } X+ nread += p - buf; X+ break; X+ X+ #ifdef FLOATING_POINT X+ case CT_FLOAT: X+ /* scan a floating point number as if by strtod */ X+ #ifdef hardway X+ if (width == 0 || width > sizeof(buf) - 1) X+ width = sizeof(buf) - 1; X+ #else X+ /* size_t is unsigned, hence this optimisation */ X+ if (--width > sizeof(buf) - 2) X+ width = sizeof(buf) - 2; X+ width++; X+ #endif X+ flags |= SIGNOK | NDIGITS | DPTOK | EXPOK; X+ for (p = buf; width; width--) { X+ c = *fp->_p; X+ /* X+ * This code mimicks the integer conversion X+ * code, but is much simpler. X+ */ X+ switch (c) { X+ X+ case '0': case '1': case '2': case '3': X+ case '4': case '5': case '6': case '7': X+ case '8': case '9': X+ flags &= ~(SIGNOK | NDIGITS); X+ goto fok; X+ X+ case '+': case '-': X+ if (flags & SIGNOK) { X+ flags &= ~SIGNOK; X+ goto fok; X+ } X+ break; X+ case '.': X+ if (flags & DPTOK) { X+ flags &= ~(SIGNOK | DPTOK); X+ goto fok; X+ } X+ break; X+ case 'e': case 'E': X+ /* no exponent without some digits */ X+ if ((flags&(NDIGITS|EXPOK)) == EXPOK) { X+ flags = X+ (flags & ~(EXPOK|DPTOK)) | X+ SIGNOK | NDIGITS; X+ goto fok; X+ } X+ break; X+ } X+ break; X+ fok: X+ *p++ = c; X+ if (--fp->_r > 0) X+ fp->_p++; X+ else if (__srefill(fp)) X+ break; /* EOF */ X+ } X+ /* X+ * If no digits, might be missing exponent digits X+ * (just give back the exponent) or might be missing X+ * regular digits, but had sign and/or decimal point. X+ */ X+ if (flags & NDIGITS) { X+ if (flags & EXPOK) { X+ /* no digits at all */ X+ while (p > buf) X+ ungetc(*(u_char *)--p, fp); X+ goto match_failure; X+ } X+ /* just a bad exponent (e and maybe sign) */ X+ c = *(u_char *)--p; X+ if (c != 'e' && c != 'E') { X+ (void) ungetc(c, fp);/* sign */ X+ c = *(u_char *)--p; X+ } X+ (void) ungetc(c, fp); X+ } X+ if ((flags & SUPPRESS) == 0) { X+ double res; X+ X+ *p = 0; X+ res = strtod(buf,(char **) NULL); X+ if (flags & LONG) X+ *va_arg(ap, double *) = res; X+ else X+ *va_arg(ap, float *) = res; X+ nassigned++; X+ } X+ nread += p - buf; X+ break; X+ #endif /* FLOATING_POINT */ X+ } X+ } X+ input_failure: X+ return (nassigned ? nassigned : -1); X+ match_failure: X+ return (nassigned); X+ } X+ X+ /* X+ * Fill in the given table from the scanset at the given format X+ * (just after `['). Return a pointer to the character past the X+ * closing `]'. The table has a 1 wherever characters should be X+ * considered part of the scanset. X+ */ X+ static u_char * X+ __sccl(tab, fmt) X+ register char *tab; X+ register u_char *fmt; X+ { X+ register int c, n, v; X+ X+ /* first `clear' the whole table */ X+ c = *fmt++; /* first char hat => negated scanset */ X+ if (c == '^') { X+ v = 1; /* default => accept */ X+ c = *fmt++; /* get new first char */ X+ } else X+ v = 0; /* default => reject */ X+ /* should probably use memset here */ X+ for (n = 0; n < 256; n++) X+ tab[n] = v; X+ if (c == 0) X+ return (fmt - 1);/* format ended before closing ] */ X+ X+ /* X+ * Now set the entries corresponding to the actual scanset X+ * to the opposite of the above. X+ * X+ * The first character may be ']' (or '-') without being special; X+ * the last character may be '-'. X+ */ X+ v = 1 - v; X+ for (;;) { X+ tab[c] = v; /* take character c */ X+ doswitch: X+ n = *fmt++; /* and examine the next */ X+ switch (n) { X+ X+ case 0: /* format ended too soon */ X+ return (fmt - 1); X+ X+ case '-': X+ /* X+ * A scanset of the form X+ * [01+-] X+ * is defined as `the digit 0, the digit 1, X+ * the character +, the character -', but X+ * the effect of a scanset such as X+ * [a-zA-Z0-9] X+ * is implementation defined. The V7 Unix X+ * scanf treats `a-z' as `the letters a through X+ * z', but treats `a-a' as `the letter a, the X+ * character -, and the letter a'. X+ * X+ * For compatibility, the `-' is not considerd X+ * to define a range if the character following X+ * it is either a close bracket (required by ANSI) X+ * or is not numerically greater than the character X+ * we just stored in the table (c). X+ */ X+ n = *fmt; X+ if (n == ']' || n < c) { X+ c = '-'; X+ break; /* resume the for(;;) */ X+ } X+ fmt++; X+ do { /* fill in the range */ X+ tab[++c] = v; X+ } while (c < n); X+ #if 1 /* XXX another disgusting compatibility hack */ X+ /* X+ * Alas, the V7 Unix scanf also treats formats X+ * such as [a-c-e] as `the letters a through e'. X+ * This too is permitted by the standard.... X+ */ X+ goto doswitch; X+ #else X+ c = *fmt++; X+ if (c == 0) X+ return (fmt - 1); X+ if (c == ']') X+ return (fmt); X+ #endif X+ break; X+ X+ case ']': /* end of scanset */ X+ return (fmt); X+ X+ default: /* just another character */ X+ c = n; X+ break; X+ } X+ } X+ /* NOTREACHED */ X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/vscanf.c Thu Dec 25 19:57:12 2025 X*************** X*** 0 **** X--- 1,49 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Donn Seeley at UUNET Technologies, Inc. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)vscanf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ X+ vscanf(fmt, ap) X+ const char *fmt; X+ va_list ap; X+ { X+ X+ return (__svfscanf(stdin, fmt, ap)); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/vsnprintf.c Thu Dec 25 19:57:24 2025 X*************** X*** 0 **** X--- 1,57 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)vsnprintf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ X+ int X+ vsnprintf(char *str, size_t n, const char *fmt, va_list ap) X+ { X+ int ret; X+ FILE f; X+ X+ if ((int)n < 1) X+ return (EOF); X+ f._flags = __SWR | __SSTR; X+ f._bf._base = f._p = (unsigned char *)str; X+ f._bf._size = f._w = n - 1; X+ ret = __svfprintf(&f, fmt, ap); X+ *f._p = 0; X+ return (ret); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/vsscanf.c Thu Dec 25 19:58:09 2025 X*************** X*** 0 **** X--- 1,67 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Donn Seeley at UUNET Technologies, Inc. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)vsscanf.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ X+ /* ARGSUSED */ X+ static int X+ eofread(void *cookie, char *buf, int len) X+ { X+ X+ return (0); X+ } X+ X+ int X+ vsscanf(const char *str, const char *fmt, va_list ap) X+ { X+ int ret; X+ FILE f; X+ struct __sfops sf; X+ X+ f._flags = __SRD; X+ f._bf._base = f._p = (unsigned char *)str; X+ f._bf._size = f._r = strlen(str); X+ f._fops = &sf; X+ sf._read = eofread; X+ sf._ub._base = NULL; X+ sf._lb._base = NULL; X+ return (__svfscanf(&f, fmt, ap)); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/wbuf.c Thu Dec 25 19:58:24 2025 X*************** X*** 0 **** X--- 1,87 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ 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+ #include "local.h" X+ X+ /* X+ * Write the given character into the (probably full) buffer for X+ * the given file. Flush the buffer out if it is or becomes full, X+ * or if c=='\n' and the file is line buffered. X+ */ X+ int X+ __swbuf(register int c, register FILE *fp) X+ { X+ register int n; X+ 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+ * (if line buffered) so that we will get called again. X+ * If we did not do this, a sufficient number of putc() X+ * calls might wrap _w from negative to positive. X+ */ X+ fp->_w = fp->_lbfsize; X+ if (cantwrite(fp)) X+ return (EOF); X+ c = (unsigned char)c; X+ X+ /* X+ * If it is completely full, flush it out. Then, in any case, X+ * stuff c into the buffer. If this causes the buffer to fill X+ * completely, or if c is '\n' and the file is line buffered, X+ * flush it (perhaps a second time). The second flush will always X+ * happen on unbuffered streams, where _bf._size==1; fflush() X+ * guarantees that putc() will always call wbuf() by setting _w X+ * to 0, so we need not do anything else. X+ */ X+ n = fp->_p - fp->_bf._base; X+ if (n >= fp->_bf._size) { X+ if (fflush(fp)) X+ return (EOF); X+ n = 0; X+ } X+ fp->_w--; X+ *fp->_p++ = c; X+ if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n')) X+ if (fflush(fp)) X+ return (EOF); X+ return (c); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/lib/libc/stdio/wsetup.c Thu Dec 25 19:58:36 2025 X*************** X*** 0 **** X--- 1,85 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)wsetup.c 8.2 (2.11BSD) 2025/12/25"; X+ #endif /* LIBC_SCCS and not lint */ X+ X+ #include X+ #include X+ #include "local.h" X+ X+ /* X+ * Various output routines call wsetup to be sure it is safe to write, X+ * because either _flags does not include __SWR, or _buf is NULL. X+ * _wsetup returns 0 if OK to write, nonzero otherwise. X+ */ X+ int X+ __swsetup(register FILE *fp) X+ { X+ /* X+ * If we are not writing, we had better be reading and writing. X+ */ X+ if ((fp->_flags & __SWR) == 0) { X+ if ((fp->_flags & __SRW) == 0) X+ return (EOF); X+ if (fp->_flags & __SRD) { X+ /* clobber any ungetc data */ X+ __sfreeub(fp); X+ fp->_flags &= ~(__SRD|__SEOF); X+ fp->_r = 0; X+ fp->_p = fp->_bf._base; X+ } X+ fp->_flags |= __SWR; X+ } X+ X+ /* X+ * Make a buffer if necessary, then set _w. X+ */ X+ if (fp->_bf._base == NULL) X+ __smakebuf(fp); X+ if (fp->_flags & __SLBF) { X+ /* X+ * It is line buffered, so make _lbfsize be -_bufsize X+ * for the putc() macro. We will change _lbfsize back X+ * to 0 whenever we turn off __SWR. X+ */ X+ fp->_w = 0; X+ fp->_lbfsize = -fp->_bf._size; X+ } else X+ fp->_w = fp->_flags & __SNBF ? 0 : fp->_bf._size; X+ return (0); X+ } X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/fflush.3 Thu Dec 25 19:58:49 2025 X*************** X*** 0 **** X--- 1,110 ---- X+ .\" Copyright (c) 1990, 1991, 1993 X+ .\" The Regents of the University of California. All rights reserved. X+ .\" X+ .\" This code is derived from software contributed to Berkeley by X+ .\" Chris Torek and the American National Standards Committee X3, X+ .\" on Information Processing Systems. 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+ .\" @(#)fflush.3 8.2 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd June 4, 1993 X+ .Dt FFLUSH 3 X+ .Os X+ .Sh NAME X+ .Nm fflush , X+ .Nm fpurge X+ .Nd flush a stream X+ .Sh SYNOPSIS X+ .Fd #include X+ .Ft int X+ .Fn fflush "FILE *stream" X+ .Ft int X+ .Fn fpurge "FILE *stream" X+ .Sh DESCRIPTION X+ The function X+ .Fn fflush X+ forces a write of all buffered data for the given output or update X+ .Fa stream X+ via the stream's underlying write function. X+ The open status of the stream is unaffected. X+ .Pp X+ If the X+ .Fa stream X+ argument is X+ .Dv NULL , X+ .Fn fflush X+ flushes X+ .Em all X+ open output streams. X+ .Pp X+ The function X+ .Fn fpurge X+ erases any input or output buffered in the given X+ .Fa stream . X+ For output streams this discards any unwritten output. X+ For input streams this discards any input read from the underlying object X+ but not yet obtained via X+ .Xr getc 3 ; X+ this includes any text pushed back via X+ .Xr ungetc . X+ .Sh RETURN VALUES X+ Upon successful completion 0 is returned. X+ Otherwise, X+ .Dv EOF X+ is returned and the global variable X+ .Va errno X+ is set to indicate the error. X+ .Sh ERRORS X+ .Bl -tag -width [EBADF] X+ .It Bq Er EBADF X+ .Fa Stream X+ is not an open stream, or, in the case of X+ .Fn fflush , X+ not a stream open for writing. X+ .El X+ .Pp X+ The function X+ .Fn fflush X+ may also fail and set X+ .Va errno X+ for any of the errors specified for the routine X+ .Xr write 2 . X+ .Sh SEE ALSO X+ .Xr write 2 , X+ .Xr fopen 3 , X+ .Xr fclose 3 , X+ .Xr setbuf 3 X+ .Sh STANDARDS X+ The X+ .Fn fflush X+ function X+ conforms to X+ .St -ansiC . X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/fgetln.3 Thu Dec 25 19:59:05 2025 X*************** X*** 0 **** X--- 1,123 ---- X+ .\" Copyright (c) 1990, 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+ .\" @(#)fgetln.3 8.4 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd April 19, 1994 X+ .Dt FGETLN 3 X+ .Os X+ .Sh NAME X+ .Nm fgetln X+ .Nd get a line from a stream X+ .Sh SYNOPSIS X+ .Fd #include X+ .Ft char * X+ .Fn fgetln "FILE *stream" "size_t *len" X+ .Sh DESCRIPTION X+ The X+ .Fn fgetln X+ function X+ returns a pointer to the next line from the stream referenced by X+ .Fa stream . X+ This line is X+ .Em not X+ a C string as it does not end with a terminating X+ .Dv NUL X+ character. X+ The length of the line, including the final newline, X+ is stored in the memory location to which X+ .Fa len X+ points. X+ (Note, however, that if the line is the last X+ in a file that does not end in a newline, X+ the returned text will not contain a newline.) X+ .Sh RETURN VALUES X+ Upon successful completion a pointer is returned; X+ this pointer becomes invalid after the next X+ .Tn I/O X+ operation on X+ .Fa stream X+ (whether successful or not) X+ or as soon as the stream is closed. X+ Otherwise, X+ .Dv NULL X+ is returned. X+ The X+ .Fn fgetln X+ function X+ does not distinguish between end-of-file and error; the routines X+ .Xr feof 3 X+ and X+ .Xr ferror 3 X+ must be used X+ to determine which occurred. X+ If an error occurs, the global variable X+ .Va errno X+ is set to indicate the error. X+ The end-of-file condition is remembered, even on a terminal, and all X+ subsequent attempts to read will return X+ .Dv NULL X+ until the condition is X+ cleared with X+ .Xr clearerr 3 . X+ .Pp X+ The text to which the returned pointer points may be modified, X+ provided that no changes are made beyond the returned size. X+ These changes are lost as soon as the pointer becomes invalid. X+ .Sh ERRORS X+ .Bl -tag -width [EBADF] X+ .It Bq Er EBADF X+ The argument X+ .Fa stream X+ is not a stream open for reading. X+ .El X+ .Pp X+ The X+ .Fn fgetln X+ function X+ may also fail and set X+ .Va errno X+ for any of the errors specified for the routines X+ .Xr fflush 3 , X+ .Xr malloc 3 , X+ .Xr read 2 , X+ .Xr stat 2 , X+ or X+ .Xr realloc 3 . X+ .Sh SEE ALSO X+ .Xr ferror 3 , X+ .Xr fgets 3 , X+ .Xr fopen 3 , X+ .Xr putc 3 X+ .Sh HISTORY X+ The X+ .Fn fgetln X+ function first appeared in 4.4BSD. X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/fgets.3 Thu Dec 25 19:59:16 2025 X*************** X*** 0 **** X--- 1,151 ---- X+ .\" Copyright (c) 1990, 1991, 1993 X+ .\" The Regents of the University of California. All rights reserved. X+ .\" X+ .\" This code is derived from software contributed to Berkeley by X+ .\" Chris Torek and the American National Standards Committee X3, X+ .\" on Information Processing Systems. 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+ .\" @(#)fgets.3 8.2 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd June 4, 1993 X+ .Dt FGETS 3 X+ .Os X+ .Sh NAME X+ .Nm fgets , X+ .Nm gets X+ .Nd get a line from a stream X+ .Sh SYNOPSIS X+ .Fd #include X+ .Ft char * X+ .Fn fgets "char *str" "size_t size" "FILE *stream" X+ .Ft char * X+ .Fn gets "char *str" X+ .Sh DESCRIPTION X+ The X+ .Fn fgets X+ function X+ reads at most one less than the number of characters specified by X+ .Xr size X+ from the given X+ .Fa stream X+ and stores them in the string X+ .Fa str . X+ Reading stops when a newline character is found, X+ at end-of-file or error. X+ The newline, if any, is retained. X+ In any case a X+ .Ql \e0 X+ character is appended to end the string. X+ .Pp X+ The X+ .Fn gets X+ function X+ is equivalent to X+ .Fn fgets X+ with an infinite X+ .Xr size X+ and a X+ .Fa stream X+ of X+ .Em stdin , X+ except that the newline character (if any) is not stored in the string. X+ It is the caller's responsibility to ensure that the input line, X+ if any, is sufficiently short to fit in the string. X+ .Sh RETURN VALUES X+ .Pp X+ Upon successful completion, X+ .Fn fgets X+ and X+ .Fn gets X+ return X+ a pointer to the string. X+ If end-of-file or an error occurs before any characters are read, X+ they return X+ .Dv NULL. X+ The X+ .Fn fgets X+ and X+ functions X+ .Fn gets X+ do not distinguish between end-of-file and error, and callers must use X+ .Xr feof 3 X+ and X+ .Xr ferror 3 X+ to determine which occurred. X+ .Sh ERRORS X+ .Bl -tag -width [EBADF] X+ .It Bq Er EBADF X+ The given X+ .Fa stream X+ is not a readable stream. X+ .El X+ .Pp X+ The function X+ .Fn fgets X+ may also fail and set X+ .Va errno X+ for any of the errors specified for the routines X+ .Xr fflush 3 , X+ .Xr fstat 2 , X+ .Xr read 2 , X+ or X+ .Xr malloc 3 . X+ .Pp X+ The function X+ .Fn gets X+ may also fail and set X+ .Va errno X+ for any of the errors specified for the routine X+ .Xr getchar 3 . X+ .Sh SEE ALSO X+ .Xr feof 3 , X+ .Xr ferror 3 , X+ .Xr fgetline 3 X+ .Sh STANDARDS X+ The functions X+ .Fn fgets X+ and X+ .Fn gets X+ conform to X+ .St -ansiC . X+ .Sh BUGS X+ Since it is usually impossible to ensure that the next input line X+ is less than some arbitrary length, and because overflowing the X+ input buffer is almost invariably a security violation, programs X+ should X+ .Em NEVER X+ use X+ .Fn gets . X+ The X+ .Fn gets X+ function X+ exists purely to conform to X+ .St -ansiC . X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/fputs.3 Thu Dec 25 19:59:38 2025 X*************** X*** 0 **** X--- 1,107 ---- X+ .\" Copyright (c) 1990, 1991, 1993 X+ .\" The Regents of the University of California. All rights reserved. X+ .\" X+ .\" This code is derived from software contributed to Berkeley by X+ .\" Chris Torek and the American National Standards Committee X3, X+ .\" on Information Processing Systems. 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+ .\" @(#)fputs.3 8.2 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd June 4, 1993 X+ .Dt FPUTS 3 X+ .Os X+ .Sh NAME X+ .Nm fputs , X+ .Nm puts X+ .Nd output a line to a stream X+ .Sh SYNOPSIS X+ .Fd #include X+ .Ft int X+ .Fn fputs "const char *str" "FILE *stream" X+ .Ft int X+ .Fn puts "const char *str" X+ .Sh DESCRIPTION X+ The function X+ .Fn fputs X+ writes the string pointed to by X+ .Fa str X+ to the stream pointed to by X+ .Fa stream . X+ .\" The terminating X+ .\" .Dv NUL X+ .\" character is not written. X+ .Pp X+ The function X+ .Fn puts X+ writes the string X+ .Fa str , X+ and a terminating newline character, X+ to the stream X+ .Em stdout . X+ .Sh RETURN VALUES X+ The X+ .Fn fputs X+ function X+ returns 0 on success and X+ .Dv EOF X+ on error; X+ .Fn puts X+ returns a nonnegative integer on success and X+ .Dv EOF X+ on error. X+ .Sh ERRORS X+ .Bl -tag -width [EBADF] X+ .It Bq Er EBADF X+ The X+ .Fa stream X+ supplied X+ is not a writable stream. X+ .El X+ .Pp X+ The functions X+ .Fn fputs X+ and X+ .Fn puts X+ may also fail and set X+ .Va errno X+ for any of the errors specified for the routines X+ .Xr write 2 . X+ .Sh SEE ALSO X+ .Xr putc 3 , X+ .Xr ferror 3 , X+ .Xr stdio 3 X+ .Sh STANDARDS X+ The functions X+ .Fn fputs X+ and X+ .Fn puts X+ conform to X+ .St -ansiC . X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/funopen.3 Thu Dec 25 19:59:48 2025 X*************** X*** 0 **** X--- 1,168 ---- X+ .\" Copyright (c) 1990, 1991, 1993 X+ .\" The Regents of the University of California. All rights reserved. X+ .\" X+ .\" This code is derived from software contributed to Berkeley by X+ .\" Chris Torek. 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+ .\" @(#)funopen.3 8.2 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd June 9, 1993 X+ .Dt FUNOPEN 3 X+ .Os X+ .Sh NAME X+ .Nm funopen , X+ .Nm fropen , X+ .Nm fwopen X+ .Nd open a stream X+ .Sh SYNOPSIS X+ .Fd #include X+ .Ft FILE * X+ .Fn funopen "void *cookie" "int (*readfn)(void *, char *, int)" "int (writefn*)(void *, const char *, int)" "fpos_t (seekfn*)(void *, fpos_t, int)" "int (closefn*)(void *)" X+ .Ft FILE * X+ .Fn fropen "void *cookie" "int (*readfn)(void *, char *, int)" X+ .Ft FILE * X+ .Fn fwopen "void *cookie" "int (*writefn)(void *, char *, int)" X+ .Sh DESCRIPTION X+ The X+ .Fn funopen X+ function X+ associates a stream with up to four X+ .Dq Tn I/O No functions . X+ Either X+ .Fa readfn X+ or X+ .Fa writefn X+ must be specified; X+ the others can be given as an appropriately-typed X+ .Dv NULL X+ pointer. X+ These X+ .Tn I/O X+ functions will be used to read, write, seek and X+ close the new stream. X+ .Pp X+ In general, omitting a function means that any attempt to perform the X+ associated operation on the resulting stream will fail. X+ If the close function is omitted, closing the stream will flush X+ any buffered output and then succeed. X+ .Pp X+ The calling conventions of X+ .Fa readfn , X+ .Fa writefn , X+ .Fa seekfn X+ and X+ .Fa closefn X+ must match those, respectively, of X+ .Xr read 2 , X+ .Xr write 2 , X+ .Xr seek 2 , X+ and X+ .Xr close 2 X+ with the single exception that they are passed the X+ .Fa cookie X+ argument specified to X+ .Fn funopen X+ in place of the traditional file descriptor argument. X+ .Pp X+ Read and write X+ .Tn I/O X+ functions are allowed to change the underlying buffer X+ on fully buffered or line buffered streams by calling X+ .Xr setvbuf 3 . X+ They are also not required to completely fill or empty the buffer. X+ They are not, however, allowed to change streams from unbuffered to buffered X+ or to change the state of the line buffering flag. X+ They must also be prepared to have read or write calls occur on buffers other X+ than the one most recently specified. X+ .Pp X+ All user X+ .Tn I/O X+ functions can report an error by returning \-1. X+ Additionally, all of the functions should set the external variable X+ .Va errno X+ appropriately if an error occurs. X+ .Pp X+ An error on X+ .Fn closefn X+ does not keep the stream open. X+ .Pp X+ As a convenience, the include file X+ .Aq Pa stdio.h X+ defines the macros X+ .Fn fropen X+ and X+ .Fn fwopen X+ as calls to X+ .Fn funopen X+ with only a read or write function specified. X+ .Sh RETURN VALUES X+ Upon successful completion, X+ .Fn funopen X+ returns a X+ .Dv FILE X+ pointer. X+ Otherwise, X+ .Dv NULL X+ is returned and the global variable X+ .Va errno X+ is set to indicate the error. X+ .Sh ERRORS X+ .Bl -tag -width [EINVAL] X+ .It Bq Er EINVAL X+ The X+ .Fn funopen X+ function X+ was called without either a read or write function. X+ The X+ .Fn funopen X+ function X+ may also fail and set X+ .Va errno X+ for any of the errors X+ specified for the routine X+ .Xr malloc 3 . X+ .El X+ .Sh SEE ALSO X+ .Xr fcntl 2 , X+ .Xr open 2 , X+ .Xr fclose 3 , X+ .Xr fopen 3 , X+ .Xr fseek 3 , X+ .Xr setbuf 3 X+ .Sh HISTORY X+ The X+ .Fn funopen X+ functions first appeared in 4.4BSD. X+ .Sh BUGS X+ The X+ .Fn funopen X+ function X+ may not be portable to systems other than X+ .Bx . X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/remove.3 Thu Dec 25 20:00:01 2025 X*************** X*** 0 **** X--- 1,78 ---- X+ .\" Copyright (c) 1990, 1991, 1993 X+ .\" The Regents of the University of California. All rights reserved. X+ .\" X+ .\" This code is derived from software contributed to Berkeley by X+ .\" Chris Torek and the American National Standards Committee X3, X+ .\" on Information Processing Systems. 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+ .\" @(#)remove.3 8.2 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd June 4, 1993 X+ .Dt REMOVE 3 X+ .Os X+ .Sh NAME X+ .Nm remove X+ .Nd remove directory entry X+ .Sh SYNOPSIS X+ .Fd #include X+ .Ft int X+ .Fn remove "const char *path" X+ .Sh DESCRIPTION X+ The X+ .Fn remove X+ function X+ is an alias for the X+ .Xr unlink 2 X+ system call. X+ It deletes the file referenced by X+ .Fa path . X+ .Sh RETURN VALUES X+ Upon successful completion, X+ .Fn remove X+ returns 0. X+ Otherwise, \-1 is returned and the global variable X+ .Va errno X+ is set to indicate the error. X+ .Sh ERRORS X+ The X+ .Fn remove X+ function X+ may fail and set X+ .Va errno X+ for any of the errors specified for the routine X+ .Xr unlink 2 . X+ .Sh SEE ALSO X+ .Xr unlink 2 X+ .Sh STANDARDS X+ The X+ .Fn remove X+ function conforms to X+ .St -ansiC . X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/stdarg.3 Thu Dec 25 20:00:44 2025 X*************** X*** 0 **** X--- 1,244 ---- X+ .\" Copyright (c) 1990, 1991, 1993 X+ .\" The Regents of the University of California. All rights reserved. X+ .\" X+ .\" This code is derived from software contributed to Berkeley by X+ .\" the American National Standards Committee X3, on Information X+ .\" Processing Systems. 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+ .\" @(#)stdarg.3 8.2 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd October 25, 2002 X+ .Dt STDARG 3 X+ .Os X+ .Sh NAME X+ .Nm stdarg X+ .Nd variable argument lists X+ .Sh SYNOPSIS X+ .In stdarg.h X+ .Ft void X+ .Fn va_start "va_list ap" last X+ .Ft type X+ .Fn va_arg "va_list ap" type X+ .Ft void X+ .Fn va_copy "va_list dest" "va_list src" X+ .Ft void X+ .Fn va_end "va_list ap" X+ .Sh DESCRIPTION X+ A function may be called with a varying number of arguments of varying X+ types. X+ The include file X+ .In stdarg.h X+ declares a type X+ .Pq Em va_list X+ and defines three macros for stepping X+ through a list of arguments whose number and types are not known to X+ the called function. X+ .Pp X+ The called function must declare an object of type X+ .Em va_list X+ which is used by the macros X+ .Fn va_start , X+ .Fn va_arg , X+ .Fn va_copy , X+ and X+ .Fn va_end . X+ .Pp X+ The X+ .Fn va_start X+ macro must be called first, and it initializes X+ .Fa ap , X+ which can be passed to X+ .Fn va_arg X+ for each argument to be processed. X+ Calling X+ .Fn va_end X+ signals that there are no further arguments, and causes X+ .Fa ap X+ to be invalidated. X+ Note that each call to X+ .Fn va_start X+ must be matched by a call to X+ .Fn va_end , X+ from within the same function. X+ .Pp X+ The parameter X+ .Fa last X+ is the name of the last parameter before the variable argument list, X+ i.e., the last parameter of which the calling function knows the type. X+ .Pp X+ Because the address of this parameter is used in the X+ .Fn va_start X+ macro, it should not be declared as a register variable, or as a X+ function or an array type. X+ .Pp X+ The X+ .Fn va_arg X+ macro expands to an expression that has the type and value of the next X+ argument in the call. X+ The parameter X+ .Fa ap X+ is the X+ .Em va_list Fa ap X+ initialized by X+ .Fn va_start . X+ Each call to X+ .Fn va_arg X+ modifies X+ .Fa ap X+ so that the next call returns the next argument. X+ The parameter X+ .Fa type X+ is a type name specified so that the type of a pointer to an X+ object that has the specified type can be obtained simply by X+ adding a * X+ to X+ .Fa type . X+ .Pp X+ If there is no next argument, or if X+ .Fa type X+ is not compatible with the type of the actual next argument X+ (as promoted according to the default argument promotions), X+ random errors will occur. X+ .Pp X+ The first use of the X+ .Fn va_arg X+ macro after that of the X+ .Fn va_start X+ macro returns the argument after X+ .Fa last . X+ Successive invocations return the values of the remaining X+ arguments. X+ .Pp X+ The X+ .Fn va_copy X+ macro copies the state of the variable argument list, X+ .Fa src , X+ previously initialized by X+ .Fn va_start , X+ to the variable argument list, X+ .Fa dest , X+ which must not have been previously initialized by X+ .Fn va_start , X+ without an intervening call to X+ .Fn va_end . X+ The state preserved in X+ .Fa dest X+ is equivalent to calling X+ .Fn va_start X+ and X+ .Fn va_arg X+ on X+ .Fa dest X+ in the same way as was used on X+ .Fa src . X+ The copied variable argument list can subsequently be passed to X+ .Fn va_arg , X+ and must finally be passed to X+ .Fn va_end X+ when through with it. X+ .Pp X+ After a variable argument list is invalidated by X+ .Fn va_end , X+ it can be reinitialized with X+ .Fn va_start X+ or made a copy of another variable argument list with X+ .Fn va_copy . X+ .Sh EXAMPLES X+ The function X+ .Em foo X+ takes a string of format characters and prints out the argument X+ associated with each format character based on the type. X+ .Bd -literal -offset indent X+ void foo(char *fmt, ...) X+ { X+ va_list ap, ap2; X+ int d; X+ char c, *s; X+ X+ va_start(ap, fmt); X+ va_copy(ap2, ap); X+ while (*fmt) X+ switch(*fmt++) { X+ case 's': /* string */ X+ s = va_arg(ap, char *); X+ printf("string %s\en", s); X+ break; X+ case 'd': /* int */ X+ d = va_arg(ap, int); X+ printf("int %d\en", d); X+ break; X+ case 'c': /* char */ X+ /* Note: char is promoted to int. */ X+ c = va_arg(ap, int); X+ printf("char %c\en", c); X+ break; X+ } X+ va_end(ap); X+ ... X+ /* use ap2 to iterate over the arguments again */ X+ ... X+ va_end(ap2); X+ } X+ .Ed X+ .Sh COMPATIBILITY X+ These macros are X+ .Em not X+ compatible with the historic macros they replace. X+ A backward compatible version can be found in the include X+ file X+ .In varargs.h . X+ .Sh STANDARDS X+ The X+ .Fn va_start , X+ .Fn va_arg , X+ .Fn va_copy , X+ and X+ .Fn va_end X+ macros conform to X+ .St -isoC-99 . X+ .Sh BUGS X+ Unlike the X+ .Em varargs X+ macros, the X+ .Nm X+ macros do not permit programmers to X+ code a function with no fixed arguments. X+ This problem generates work mainly when converting X+ .Em varargs X+ code to X+ .Nm X+ code, X+ but it also creates difficulties for variadic functions that X+ wish to pass all of their arguments on to a function X+ that takes a X+ .Em va_list X+ argument, such as X+ .Xr vfprintf 3 . X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/man/man3/tmpnam.3 Thu Dec 25 20:00:13 2025 X*************** X*** 0 **** X--- 1,219 ---- X+ .\" Copyright (c) 1988, 1991, 1993 X+ .\" The Regents of the University of California. All rights reserved. X+ .\" X+ .\" This code is derived from software contributed to Berkeley by X+ .\" the American National Standards Committee X3, on Information X+ .\" Processing Systems. 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+ .\" @(#)tmpnam.3 8.3 (2.11BSD) 2025/12/25 X+ .\" X+ .Dd November 17, 1993 X+ .Dt TMPFILE 3 X+ .Os X+ .Sh NAME X+ .Nm tempnam , X+ .Nm tmpfile , X+ .Nm tmpnam X+ .Nd temporary file routines X+ .Sh SYNOPSIS X+ .Fd #include X+ .Ft FILE * X+ .Fn tmpfile void X+ .Ft char * X+ .Fn tmpnam "char *str" X+ .Ft char * X+ .Fn tempnam "const char *tmpdir" "const char *prefix" X+ .Sh DESCRIPTION X+ The X+ .Fn tmpfile X+ function X+ returns a pointer to a stream associated with a file descriptor returned X+ by the routine X+ .Xr mkstemp 3 . X+ The created file is unlinked before X+ .Fn tmpfile X+ returns, causing the file to be automatically deleted when the last X+ reference to it is closed. X+ The file is opened with the access value X+ .Ql w+ . X+ .Pp X+ The X+ .Fn tmpnam X+ function X+ returns a pointer to a file name, in the X+ .Dv P_tmpdir X+ directory, which X+ did not reference an existing file at some indeterminate point in the X+ past. X+ .Dv P_tmpdir X+ is defined in the include file X+ .Aq Pa stdio.h . X+ If the argument X+ .Fa s X+ is X+ .Pf non- Dv NULL , X+ the file name is copied to the buffer it references. X+ Otherwise, the file name is copied to a static buffer. X+ In either case, X+ .Fn tmpnam X+ returns a pointer to the file name. X+ .Pp X+ The buffer referenced by X+ .Fa s X+ is expected to be at least X+ .Dv L_tmpnam X+ bytes in length. X+ .Dv L_tmpnam X+ is defined in the include file X+ .Aq Pa stdio.h . X+ .Pp X+ The X+ .Fn tempnam X+ function X+ is similar to X+ .Fn tmpnam , X+ but provides the ability to specify the directory which will X+ contain the temporary file and the file name prefix. X+ .Pp X+ The environment variable X+ .Ev TMPDIR X+ (if set), the argument X+ .Fa tmpdir X+ (if X+ .Pf non- Dv NULL ) , X+ the directory X+ .Dv P_tmpdir , X+ and the directory X+ .Pa /tmp X+ are tried, in the listed order, as directories in which to store the X+ temporary file. X+ .Pp X+ The argument X+ .Fa prefix , X+ if X+ .Pf non- Dv NULL , X+ is used to specify a file name prefix, which will be the X+ first part of the created file name. X+ .Fn Tempnam X+ allocates memory in which to store the file name; the returned pointer X+ may be used as a subsequent argument to X+ .Xr free 3 . X+ .Sh RETURN VALUES X+ The X+ .Fn tmpfile X+ function X+ returns a pointer to an open file stream on success, and a X+ .Dv NULL X+ pointer X+ on error. X+ .Pp X+ The X+ .Fn tmpnam X+ and X+ .Fn tempfile X+ functions X+ return a pointer to a file name on success, and a X+ .Dv NULL X+ pointer X+ on error. X+ .Sh ERRORS X+ The X+ .Fn tmpfile X+ function X+ may fail and set the global variable X+ .Va errno X+ for any of the errors specified for the library functions X+ .Xr fdopen 3 X+ or X+ .Xr mkstemp 3 . X+ .Pp X+ The X+ .Fn tmpnam X+ function X+ may fail and set X+ .Va errno X+ for any of the errors specified for the library function X+ .Xr mktemp 3 . X+ .Pp X+ The X+ .Fn tempnam X+ function X+ may fail and set X+ .Va errno X+ for any of the errors specified for the library functions X+ .Xr malloc 3 X+ or X+ .Xr mktemp 3 . X+ .Sh SEE ALSO X+ .Xr mkstemp 3 , X+ .Xr mktemp 3 X+ .Sh STANDARDS X+ The X+ .Fn tmpfile X+ and X+ .Fn tmpnam X+ functions X+ conform to X+ .St -ansiC . X+ .Sh BUGS X+ These interfaces are provided for System V and X+ .Tn ANSI X+ compatibility only. X+ The X+ .Xr mkstemp 3 X+ interface is strongly preferred. X+ .Pp X+ There are four important problems with these interfaces (as well as X+ with the historic X+ .Xr mktemp 3 X+ interface). X+ First, there is an obvious race between file name selection and file X+ creation and deletion. X+ Second, most historic implementations provide only a limited number X+ of possible temporary file names (usually 26) before file names will X+ start being recycled. X+ Third, the System V implementations of these functions (and of X+ .Xr mktemp ) X+ use the X+ .Xr access 2 X+ function to determine whether or not the temporary file may be created. X+ This has obvious ramifications for setuid or setgid programs, complicating X+ the portable use of these interfaces in such programs. X+ Finally, there is no specification of the permissions with which the X+ temporary files are created. X+ .Pp X+ This implementation does not have these flaws, but portable software X+ cannot depend on that. X+ In particular, the X+ .Fn tmpfile X+ interface should not be used in software expected to be used on other systems X+ if there is any possibility that the user does not wish the temporary file to X+ be publicly readable and writable. X*** /dev/null Mon Jan 12 17:37:58 2026 X--- ./usr/src/usr.bin/lint.sh Sun Dec 28 21:48:03 2025 X*************** X*** 0 **** X--- 1,15 ---- X+ #!/bin/sh X+ # X+ # @(#)lint.sh 1.0 (2.11BSD) 2025/12/28 X+ # X+ X+ cat < 'OLD499A.patch' X*** ./etc/disktab.old Fri Sep 27 19:15:30 2024 X--- ./etc/disktab Tue Dec 16 22:05:37 2025 X*************** X*** 1,4 **** X! # @(#)disktab 2.0 (2.11BSD) 2024/9/25 X # X # Disk geometry and partition layout tables. X # Key: X--- 1,4 ---- X! # @(#)disktab 2.1 (2.11BSD) 2025/12/15 X # X # Disk geometry and partition layout tables. X # Key: X*************** X*** 47,56 **** X rm02|RM02|rm03|RM03|DEC RM02/03:\ X :ty=removable:ns#32:nt#5:nc#823:sf:\ X :b0=/mdec/rm03uboot:\ X! :pa#12160:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#12160:ob#12160:bb#1024:fb#1024:tb=swap:\ X :pc#131680:oc#0:bc#1024:fc#1024:\ X! :pg#107200:og#24320:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#131520:oh#0:bh#1024:fh#1024 X X # RM05 X--- 47,56 ---- X rm02|RM02|rm03|RM03|DEC RM02/03:\ X :ty=removable:ns#32:nt#5:nc#823:sf:\ X :b0=/mdec/rm03uboot:\ X! :pa#14080:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#8960:ob#14080:bb#1024:fb#1024:tb=swap:\ X :pc#131680:oc#0:bc#1024:fc#1024:\ X! :pg#108480:og#23040:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#131520:oh#0:bh#1024:fh#1024 X X # RM05 X*************** X*** 57,64 **** X rm05|RM05|cdc9766|CDC9766:\ X :ty=removable:ns#32:nt#19:nc#823:sf:\ X :b0=/mdec/rm05uboot:\ X! :pa#12160:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#12160:ob#12160:bb#1024:fb#1024:tb=swap:\ X :pc#500384:oc#0:bc#1024:fc#1024:\ X :pg#475456:og#24320:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#499776:oh#0:bh#1024:fh#1024 X--- 57,64 ---- X rm05|RM05|cdc9766|CDC9766:\ X :ty=removable:ns#32:nt#19:nc#823:sf:\ X :b0=/mdec/rm05uboot:\ X! :pa#14592:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#9728:ob#14592:bb#1024:fb#1024:tb=swap:\ X :pc#500384:oc#0:bc#1024:fc#1024:\ X :pg#475456:og#24320:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#499776:oh#0:bh#1024:fh#1024 X*************** X*** 66,84 **** X rp04|RP04|rp05|RP05|DEC RP04/05:\ X :ty=removable:ns#22:nt#19:nc#411:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#12540:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#8778:ob#12540:bb#1024:fb#1024:tb=swap:\ X :pc#171798:oc#0:bc#1024:fc#1024:\ X! :pg#150062:og#21318:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#171380:oh#0:bh#1024:fh#1024 X X rp06|RP06|DEC RP06:\ X :ty=removable:ns#22:nt#19:nc#815:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#12540:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#8778:ob#12540:bb#1024:fb#1024:tb=swap:\ X :pc#340670:oc#0:bc#1024:fc#1024:\ X! :pg#318934:og#21318:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#340252:oh#0:bh#1024:fh#1024 X X rp07|RP07|DEC RP07:\ X--- 66,84 ---- X rp04|RP04|rp05|RP05|DEC RP04/05:\ X :ty=removable:ns#22:nt#19:nc#411:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#9196:ob#15884:bb#1024:fb#1024:tb=swap:\ X :pc#171798:oc#0:bc#1024:fc#1024:\ X! :pg#145464:og#25080:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#171380:oh#0:bh#1024:fh#1024 X X rp06|RP06|DEC RP06:\ X :ty=removable:ns#22:nt#19:nc#815:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#16720:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#10032:ob#16720:bb#1024:fb#1024:tb=swap:\ X :pc#340670:oc#0:bc#1024:fc#1024:\ X! :pg#313500:og#26752:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#340252:oh#0:bh#1024:fh#1024 X X rp07|RP07|DEC RP07:\ X*** ./usr/adm/weekly.old Tue Aug 17 01:17:48 1999 X--- ./usr/adm/weekly Sun Dec 28 21:47:51 2025 X*************** X*** 1,4 **** X--- 1,8 ---- 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*************** X*** 15,24 **** X echo "" X echo "Rotating messages:" X cd /usr/adm X! mv messages.2 messages.3 X! mv messages.1 messages.2 X! mv messages.0 messages.1 X! mv messages messages.0 X cp /dev/null messages X chmod 644 messages X X--- 19,29 ---- X echo "" X echo "Rotating messages:" X cd /usr/adm X! mv -f messages.2.Z messages.3.Z X! mv -f messages.1.Z messages.2.Z X! mv -f messages.0.Z messages.1.Z X! mv -f messages messages.0 X! compress -f messages.0 X cp /dev/null messages X chmod 644 messages X X*** ./usr/doc/2.10/setup.2.11/0.t.old Sun Jun 18 22:47:14 1995 X--- ./usr/doc/2.10/setup.2.11/0.t Wed Dec 10 09:10:52 2025 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)0.t 2.3 (GTE) 1995/06/13 X .\" X .EH 'setup.2.11 - %''Installing and Operating 2.11BSD on the PDP-11' X .OH 'Installing and Operating 2.11BSD on the PDP-11''Setup.2.11 - %' X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)0.t 2.4 (2.11BSD) 2025/12/10 X .\" X .EH 'setup.2.11 - %''Installing and Operating 2.11BSD on the PDP-11' X .OH 'Installing and Operating 2.11BSD on the PDP-11''Setup.2.11 - %' X*************** X*** 13,26 **** X .TL X Installing and Operating \*(2B on the PDP-11 X .br X! June 13, 1995 X .AU X Steven Schultz X .AI X! GTE Government Systems X! 112 Lakeview Canyon X! Thousand Oaks CA 91362 X! sms@wlv.iipo.gtegsc.com X .de IR X \\fI\\$1\|\\fP\\$2 X .. X--- 13,23 ---- X .TL X Installing and Operating \*(2B on the PDP-11 X .br X! December 10, 2025 X .AU X Steven Schultz X .AI X! sms@2bsd.com X .de IR X \\fI\\$1\|\\fP\\$2 X .. X*************** X*** 55,61 **** X The ``bugs'' address supplied with this release X will work for some unknown period of time; make sure X the ``Index:'' line of the bug report indicates that the release is X! ``\*(2B''. See the \fIsendbug\fP(8) program for more details. All X! fixes that I make, or that are sent to me, will be posted on X! \fIUSENET\fP, in the news group ``comp.bugs.2bsd''. X .AE X--- 52,66 ---- X The ``bugs'' address supplied with this release X will work for some unknown period of time; make sure X the ``Index:'' line of the bug report indicates that the release is X! ``\*(2B''. See the \fIsendbug\fP(8) program for more details. X! .PP X! Updates are available at the following locations: X! .sp X! ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD X! .sp X! https://www.tuhs.org/Archive/Distributions/UCB/2.11BSD/Patches/ X! .sp X! ftp://ftp.2bsd.com/2.11BSD X! .sp X! http://www.2bsd.com/2.11BSD X .AE X*** ./usr/doc/2.10/setup.2.11/1.t.old Sat Jan 4 20:20:58 2020 X--- ./usr/doc/2.10/setup.2.11/1.t Sat Jan 3 20:04: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! .\" @(#)1.t 2.6 (2.11BSD) 2020/1/4 X .\" X .ds lq `` X .ds rq '' X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)1.t 2.7 (2.11BSD) 2025/12/10 X .\" X .ds lq `` X .ds rq '' X*************** X*** 22,39 **** X .PP X This document explains how to install \*(2B UNIX for the PDP-11 on your X system. This document has been revised several times since the first X! release of \*(2B, most recently in July 1995 to reflect the addition of disk X! labels to the system. The format of the bootable tape has changed. X! There is now a standalone X! .B disklabel X! program present. X! While the system call interface is the same X! as that of \*(1B, X! a full bootstrap from the distribution tape is required because the X! filesystem has changed to allow file names longer than 14 characters. X! Also, the 3 byte block number packing scheme used by earlier versions X! of UNIX for the PDP-11 has been eliminated. Block numbers are always 4 byte X! \fBlongs\fP now. X .PP X The procedure for performing a full bootstrap is outlined in chapter 2. X The process includes copying a root file system from X--- 22,31 ---- X .PP X This document explains how to install \*(2B UNIX for the PDP-11 on your X system. This document has been revised several times since the first X! release of \*(2B in 1991. The last significant revision in July 1995 X! dealt with the addition of disk labels to the system. This December 2025 X! revision is in preparation for the release in 2026 of the 35th Anniversary X! Edition of \*(2B. X .PP X The procedure for performing a full bootstrap is outlined in chapter 2. X The process includes copying a root file system from X*************** X*** 50,82 **** X as there are changes and performance improvements in the standard X libraries. X .PP X- Binaries from \*(1B which do not read directories or inode structures X- may be used but should be recompiled to pick up changes in the standard X- libraries. Note too, that the portable ASCII format of \fIar\fP(1) archives X- is now in place - any local archive files will have to be converted using X- \fI/usr/old/arcv\fP. X .NH 1 X Hardware supported X .PP X! This distribution can be booted on a PDP-11 X! with 1Mb of memory or more\(ua, X! .FS X! .IP \(ua X! \*(2B would probably only require a moderate amount of squeezing to X! fit on machines with less memory, but it would also be very X! unhappy about the prospect. X! .FE X separate I&D, and with any of the following disks: X! .DS X! .TS X! lw(1.5i) l. X RK06, RK07 X! Any MSCP disk, including but not limited to: RD53, RD54, RA81, RZ2x X RM03, RM05 X RP04, RP05, RP06 X Many other SMD disks, for example: CDC 9766, Fuji 160, Fuji Eagle X- .TE X- .DE X .PP X Other disks are supported (RX23, RX33, RX50, RD51) but are not large X enough to hold a root filesystem plus a swap partition. The old restriction X--- 42,62 ---- X as there are changes and performance improvements in the standard X libraries. X .PP X .NH 1 X Hardware supported X .PP X! This distribution can be booted on a PDP-11 with 1Mb of memory or more, X separate I&D, and with any of the following disks: X! .sp X RK06, RK07 X! .sp X! Any MSCP disk X! .sp X RM03, RM05 X+ .sp X RP04, RP05, RP06 X+ .sp X Many other SMD disks, for example: CDC 9766, Fuji 160, Fuji Eagle X .PP X Other disks are supported (RX23, RX33, RX50, RD51) but are not large X enough to hold a root filesystem plus a swap partition. The old restriction X*************** X*** 100,132 **** X TK50, TU81, TU81+, TZ30 X .TE X .DE X- Although \*(2B contains a kernel level floating point simulator, it has X- never been tested. In fact it would not even compile/assemble without X- errors! That problem has been fixed but it is still not know if the X- simulator works, KDJ-11 based systems have builtin floating point so the X- simulator can not be tested. At the release of \*(Ps some thought was given X- to the possibility of lifting the separate I&D restriction, but that X- thought has languished. The work will X- never be done. As time passes more and more programs have X- become almost too large even with separate I&D. X .NH 1 X Distribution format X .PP X The basic distribution contains the following items: X .DS X! (2)\0\0 1600bpi 2400' magnetic tapes, or X! (2)\0\0 TK25 tape cartridges, or X! (1)\0\0 TK50 tape cartridge, and X! (1)\0\0 Hardcopy of this document, X! (1)\0\0 Hardcopy of the \fIChanges in \*(2B\fP document, X! (1)\0\0 Hardcopy of the \*(2B /README and /VERSION files, and X! (1)\0\0 Hardcopy of manual pages from sections 4, and 8. X .DE X- Installation on any machine requires a tape unit. X- Since certain standard PDP-11 packages X- do not include a tape drive, this means one must either X- borrow one from another PDP-11 system or one must be purchased X- separately. X .PP X \fBThe distribution does not fit on several standard PDP-11 configurations X that contain only small disks\fP. If your hardware configuration does not X--- 80,94 ---- X TK50, TU81, TU81+, TZ30 X .TE X .DE X .NH 1 X Distribution format X .PP X The basic distribution contains the following items: X .DS X! (1)\0\0 SimH magnetic tape image X! (1)\0\0 template SimH config file (simh.ini) X! (1)\0\0 Soft copy of this document X .DE X .PP X \fBThe distribution does not fit on several standard PDP-11 configurations X that contain only small disks\fP. If your hardware configuration does not X*************** X*** 140,155 **** X .B disklabel X program. X .PP X- If you have the facilities, it is a good idea to copy the X- magnetic tape(s) in the distribution kit to guard against disaster. X- The tapes are 9-track 1600 BPI, TK50 or TK25 cartridges and contain some X- 512-byte records, followed by some 1024-byte records, X- followed by many 10240-byte records. X- There are interspersed tape marks; end-of-tape is signaled X- by a double end-of-file. X- .PP X The basic bootstrap material is present in six X! short files at the beginning of the first tape. X The first file on the tape contains preliminary bootstrapping programs. X This is followed by several standalone X utilities (\fIdisklabel\fP, \fImkfs\fP\|(8), \fIrestor\fP\|(8), and X--- 102,109 ---- X .B disklabel X program. X .PP X The basic bootstrap material is present in six X! short files at the beginning of the tape. X The first file on the tape contains preliminary bootstrapping programs. X This is followed by several standalone X utilities (\fIdisklabel\fP, \fImkfs\fP\|(8), \fIrestor\fP\|(8), and X*************** X*** 160,179 **** X X in section Y of the UNIX programmer's manual. X .FE X followed by a full dump of a root file system (see \fIdump\fP\|(8)). X! Following the root file system dump is a tape archive image of \fB/usr\fP X! except for \fB/usr/src\fP (see \fItar\fP\|(1)). Finally, a tape archive X! of the kernel source ends the first tape. The X! second tape contains a tape archive image, also in \fItar\fP format, of X! the remaining source that comes with the system. X .PP X- The entire distribution (barely) fits on a single TK50 cartridge, references to X- the second tape should be treated as being the 9th file on the TK50. Many of X- the programs in /usr/src/new have been tar+compress'd in order to keep the X- distribution to a single tape. X- .PP X .KS X .DS L X! TAPE 1: X .TS X n n n l. X Tape file Record size Records\(ua Contents X--- 114,127 ---- X X in section Y of the UNIX programmer's manual. X .FE X followed by a full dump of a root file system (see \fIdump\fP\|(8)). X! Following the root file system dump is a \fItar\fP archive of \fB/usr\fP X! except for \fB/usr/src\fP. Next a \fItar\fP archive X! of the kernel source. Finally a \fItar\fP archive of X! the remaining system sources. X .PP X .KS X .DS L X! TAPE: X .TS X n n n l. X Tape file Record size Records\(ua Contents X*************** X*** 188,205 **** X 5 10240 285 \fIdump\fP of ``root'' file system X 6 10240 3368 \fItar\fP dump of /usr, excepting /usr/src X 7 10240 519 \fItar\fP dump of /usr/src/sys X .TE X- X- TAPE 2: X- .TS X- n n n l. X- Tape file Record size Records\(ua Contents X- _ X- 0 10240 4092 \fItar\fP dump of /usr/src excepting sys X- .TE X .DE X .KE X- .FS X .IP \(ua X The number of records in each tape file are approximate X and do not necessarily correspond to the actual number on the tape. X--- 136,145 ---- X 5 10240 285 \fIdump\fP of ``root'' file system X 6 10240 3368 \fItar\fP dump of /usr, excepting /usr/src X 7 10240 519 \fItar\fP dump of /usr/src/sys X+ 8 10240 4092 \fItar\fP dump of /usr/src excepting sys X .TE X .DE X .KE X .IP \(ua X The number of records in each tape file are approximate X and do not necessarily correspond to the actual number on the tape. X*************** X*** 279,308 **** X \fBreally\fP know what you are doing. The ability to load a kernel from X the swap area is planned for the future but does not presently exist. X For tapes \fIz\fP is a file number on the tape.\(ua X- .KS X- .FS X- .IP \(ua X- \fBNote:\fP that while a tape file consists of a single data stream, X- the distribution tape(s) have data structures in these files. X- Although the first tape contains only 8 tape files, they comprise X- several thousand UNIX files. X- .IP X- \fBNote:\fP The standalone tape drive unit number is specially encoded X- to specify both unit number and tape density (BPI). Most tape subsystems X- either automatically adjust to tape density or have switches on the drives to X- force the density to a particular setting, but for those which don't the X- following density select mechanisms may be necessary. The \fBts\fP only X- operates at 1600BPI, so there is no special unit density encoding. The X- \fBht\fP will operate at either 800BPI or 1600BPI. Units 0 through 3 X- corresponding to 800BPI, and Units 4 through 7 corresponding to 1600BPI X- on drives 0 through 3 respectively. The standard DEC \fBtm\fP only supports X- 800BPI (and hence can't be used with the \*(2B distribution tape), X- but several widely used \fBtm\fP emulators support 1600BPI and even X- 6250BPI. Units 0 through 3 corresponding to 800BPI, Units 4 through X- 7 corresponding to 1600BPI, and Units 8 through 11 corresponding to X- 6250BPI on drives 0 through 3 respectively. X- .FE X- .KE X .PP X In all simple cases, a drive with unit number 0 (determined either by X a unit plug on the front of the drive, or jumper settings on the drive X--- 219,224 ---- X*************** X*** 318,326 **** X files on the tape have names ``ht(0,0)'', ``ht(0,1)'', etc. X Here ``file'' means a tape file containing a single data stream X separated by a single tape mark. X- The distribution tapes have data structures in the tape X- files and though the first tape contains only 7 tape files, it contains X- several thousand UNIX files. X .PP X Each UNIX physical disk is divided into 8 logical disk partitions, X each of which may occupy any consecutive cylinder range on the X--- 234,239 ---- X*************** X*** 367,383 **** X copy of it on another. Care must be taken when using this partition not X to overwrite the last few tracks and thereby destroying the bad sector X information. X- .PP X- Unfortunately while the drivers can follow the rules above the entries X- in \fI/etc/disktab\fP (\fIdisktab\fP\|(5)) do not. The entries in X- \fI/etc/disktab\fP are translations of the old partition tables which X- used to be embedded in the device drivers and are thus probably not suitable X- for use without editing. X- In some cases it X- may be that the 8th ('h') partition is used for access to the entire X- disk rather than the third ('c') partition. X- Caution should be observed when using the \fInewfs\fP\|(8) and X- \fIdisklabel\fP\|(8) commands. X .NH 1 X UNIX devices: block and raw X .PP X--- 280,285 ---- X*** ./usr/doc/2.10/setup.2.11/2.t.old Tue Aug 30 08:49:51 2022 X--- ./usr/doc/2.10/setup.2.11/2.t Sat Jan 3 19:35:53 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)2.t 1.12 (2.11BSD) 2022/8/30 X .\" X .ds lq `` X .ds rq '' X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)2.t 1.13 (2.11BSD) 2025/12/10 X .\" X .ds lq `` X .ds rq '' X*************** X*** 23,45 **** X .PP X This section explains the bootstrap procedure that can be used X to get the kernel supplied with this distribution running on your machine. X- It is mandatory to do a full bootstrap since the filesystem has changed X- from \*(1B to \*(2B. X .PP X- The safest route is to use \fItar\fP\|(1) to dump all of your current X- file systems, do a full bootstrap of \*(2B and then restore user files X- from the backups. X- There is also an untested version of \fI512restor\fP\|(8) available for X- V7 sites that need to read old dump tapes. X- .PP X- It is also desirable to make a convenient copy of system configuration X- files for use as guides when setting up the new system; the list of files X- to save from earlier PDP-11 UNIX systems, found in chapter 3, may be used X- as a guideline. X- .PP X- \*(2B \fIrestor\fP\|(8) is able to read and automatically convert to the X- new on disk directory format X- \fIdump\fP\|(8) tapes made under 2.9BSD, \*(Ps and \*(1B. X .NH 2 X Booting from tape X .PP X--- 23,29 ---- X*************** X*** 153,159 **** X .R X .DE X where \fInn\fP is the CPU type on which it believes it is running. X! The value will be one of 23, 24, 40, 44, 45, 53, 60, 70, 73, 83, 84, 93 X or 94 depending whether X separate instruction and data (separate I/D) and/or a UNIBUS map are detected. X For KDJ-11 systems the System Maintenance Register is examined to determine X--- 137,143 ---- X .R X .DE X where \fInn\fP is the CPU type on which it believes it is running. X! The value will be one of 44, 70, 73, 83, 84, 93 X or 94 depending whether X separate instruction and data (separate I/D) and/or a UNIBUS map are detected. X For KDJ-11 systems the System Maintenance Register is examined to determine X*************** X*** 226,245 **** X .NH 3 X Step 3: creating a UNIX ``root'' file system X .PP X! Now create the root file system using the following procedure.\(ua X! .FS X! .IP \(ua X! \fBNote:\fP These instructions have changed quite a bit during the X! evolution of the system from \*(1B. Previously, X! if the disk on which you are creating a root file system was an \fBxp\fP X! disk you would have been asked to check the drive type register and possibly X! halt the processor to patch a location (hopefully before the driver X! accessed the drive). \fBThis is no longer needed\fP. X! All geometry and partition information is obtained from the disklabel X! created in step 2. X! We also used to give tables of \fBm\fP and \fBn\fP values for various X! disks, which are now purposely omitted. X! .FE X .PP X The size of the root ('a') filesystem was assigned in step 2 (creating the X disk label). \fImkfs\fP will not allow a filesystem to be created if there X--- 210,216 ---- X .NH 3 X Step 3: creating a UNIX ``root'' file system X .PP X! Now create the root file system using the following procedure. X .PP X The size of the root ('a') filesystem was assigned in step 2 (creating the X disk label). \fImkfs\fP will not allow a filesystem to be created if there X*************** X*** 323,331 **** X \fB:\fR (back at tape boot level) X .R X .TE X- .sp X- This takes about 8 minutes with a TZ30 on a 11/93 and about 15 minutes using X- a TK50 on a 11/73. X .DE X If you wish, you may use the \fIicheck\fP program on the tape, X \fItp\|\fP(0,4), to check the consistency of the file system you have just X--- 294,299 ---- X*************** X*** 343,358 **** X .TE X .DE X The standalone boot program will then load unix from X! the root file system you just created, and the system should boot: X .DS X .B X .\"CHECK X! \*(2B BSD UNIX #1: Sat Jul 4 01:33:03 PDT 1992 X! root@wlonex.iipo.gtegsc.com:/usr/src/sys/GENERIC X! phys mem = \fI???\fP X! avail mem = \fI???\fP X! user mem = \fI???\fP X X configure system X \fI\&... information about available devices ...\fP X .R X--- 311,328 ---- X .TE X .DE X The standalone boot program will then load unix from X! the root file system you just created, and the system should boot (the X! exact strings will vary of course): X .DS X .B X .\"CHECK X! 2.11 BSD UNIX #35: Sun Aug 31 13:23:06 CDT 2025 X! sms@localhost.2bsd.com:/usr/src/sys/GENERIC X X+ phys mem = 4186112 X+ avail mem = 3709504 X+ user mem = 307200 X+ X configure system X \fI\&... information about available devices ...\fP X .R X*************** X*** 399,426 **** X The disk with the new root file system on it will not be bootable X directly until the block 0 bootstrap program for your disk has been installed. X There are copies of the bootstraps in /mdec. X! Use \fIdd\fP\|(1) to copy the right boot block onto block 0 of the disk. X .DS X! \fB#\fP dd if=/mdec/\fIboot\fP of=/dev/r\fIdk\^\fP0a count=1 X .DE X Block zero bootstraps and the devices they support are: X .DS X .TS X! l l l. X! boot driver devices X _ X! hkuboot hk RK06/07 X! rauboot ra All RA, RD, RZ, RX (except RX01,02) and RC25 drives X! rkuboot rk RK05 X! rluboot rl RL01/02 X! si95uboot si SI 9500, CDC 9766 X! dvhpuboot xp Diva Comp V, Ampex 9300 X! hpuboot xp RP04/05/06 X! rp07uboot xp RP07 X! rm03uboot xp RM03 X! rm05uboot xp RM05 or SI 9500, CDC 9766 X! si51uboot xp SI 6100, Fujitsu Eagle 2351A X! si94uboot xp Emulex SC01B/SC03B or SI 9400, Fujitsu 160 X .TE X .DE X .B NOTE: X--- 369,405 ---- X The disk with the new root file system on it will not be bootable X directly until the block 0 bootstrap program for your disk has been installed. X There are copies of the bootstraps in /mdec. X! Use \fIdisklabel\fP\|(1) to install the boot block onto the disk. X .DS X! \fB#\fP disklabel -r -B \fIdk\^\fP0 device X! .sp X! For example: X! .sp X! disklabel -r -B xp0 rp06 X! .sp X! will install /mdec/hpuboot into sector 0 of xp0 X! .sp X! disklabel -r -B ra0 X! .sp X .DE X Block zero bootstraps and the devices they support are: X .DS X .TS X! l l. X! boot disk_type X _ X! hkuboot rk06/rk07 X! rauboot MSCP drives X! rkuboot rk05 X! rluboot rl01/rl02 X! si95uboot si_eagle X! dvhpuboot diva X! hpuboot rp04/rp05/rp06 X! rp07uboot rp07 X! rm03uboot rm03 X! rm05uboot rm05/cdc9766 X! si51uboot si_eagle/2351A X! si94uboot rm2x/fuji160 X .TE X .DE X .B NOTE: X*************** X*** 594,612 **** X \fB#\fP mount /dev/${name} /usr X .DE X .NH 3 X! Step 7: extracting remaining source from the second tape X .PP X- You can then extract the source code for the commands from the X- second distribution tape\(ua X- .FS X- .IP \(ua X- On the TK50 the remaining source is the 9th file on the cartridge. X- .FE X- (with the exception of RK07's, RM03's, and RD52's and other small disks X- this will fit in the /usr file system): X .DS X \fB#\fP cd /usr/src X! \fB#\fP tar xpb 20 X .DE X If you get an error at this point, most likely it was X a problem with tape positioning. Rewind the tape and X--- 573,583 ---- X \fB#\fP mount /dev/${name} /usr X .DE X .NH 3 X! Step 7: extracting remaining sources X .PP X .DS X \fB#\fP cd /usr/src X! \fB#\fP tar xp X .DE X If you get an error at this point, most likely it was X a problem with tape positioning. Rewind the tape and X*** ./usr/doc/2.10/setup.2.11/3.t.old Wed Nov 27 23:00:11 1996 X--- ./usr/doc/2.10/setup.2.11/3.t Sat Jan 3 19:38: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! .\" @(#)3.t 1.6 (2.11BSD GTE) 1996/11/16 X .\" X .ds lq `` X .ds rq '' X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)3.t 1.7 (2.11BSD) 2025/12/10 X .\" X .ds lq `` X .ds rq '' X*************** X*** 21,43 **** X .R X .NL X .PP X- Begin by reading the document X- ``Changes to the System in \*(2B'' to get an idea of how X- the system changes will affect your local modifications. X- If you have local device drivers, see the file \fI/sys/OTHERS/README\fP X- for hints on how to integrate your drivers into \*(2B. X- .PP X- The only upgrade path to \*(2B is to do a full bootstrap as described X- in Chapter 2. As always, full backups of the existing system should X- be made to guard against errors or failures. X- \fBNOTE:\fP The old filesystems can not be mounted by the new X- kernel. If you must access old discs or filesystems, there is a X- version of \fIdump\fP\|(8) in /usr/src/old/dump which can be used X- with the \fBraw\fP disc to dump old filesystems. X- .PP X- The archive file format has changed, the 4.3BSD \fIar\fP(5) format is X- now used. Local archives will have to be converted by the \fI/usr/old/arcv\fP X- program. X .NH 2 X Files to save X .PP X--- 21,26 ---- X*************** X*** 153,162 **** X \fB#\fP cd /usr/convert X \fB#\fP tar x X .DE X- .PP X- For sites running \*(1B, converting local configuration files should be X- very simple. In general very little has changed between \*(1B and \*(2B X- with regard to these files. X .PP X For sites running a pre-\*(Ps UNIX, there is very little that can be X said here as the variety of previous versions of PDP-11 UNIX systems and how X--- 136,141 ---- X*** ./usr/doc/2.10/setup.2.11/4.t.old Wed Nov 27 22:00:04 1996 X--- ./usr/doc/2.10/setup.2.11/4.t Wed Dec 10 11:47:15 2025 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)4.t 2.3 (2.11BSD GTE) 1996/11/27 X .\" X .de IR X \fI\\$1\fP\|\\$2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)4.t 2.4 (2.11BSD) 2025/12/10 X .\" X .de IR X \fI\\$1\fP\|\\$2 X*************** X*** 262,268 **** X .PP X The generic distribution kernel does not do bad block forwarding. There is X unfortunately no way to run bad144 style bad block forwarding on some of your X! disks, but not others. As a final bug, the hk and xp drivers do not reread X the bad sector forwarding information when disk packs are changed and so X will erroneously use bad block forwarding information from the wrong packs! X .RE X--- 262,268 ---- X .PP X The generic distribution kernel does not do bad block forwarding. There is X unfortunately no way to run bad144 style bad block forwarding on some of your X! disks but not others. As a final bug the hk and xp drivers do not reread X the bad sector forwarding information when disk packs are changed and so X will erroneously use bad block forwarding information from the wrong packs! X .RE X*************** X*** 271,283 **** X The space available on a disk varies, not surprisingly, per device. X Disklabels make a table giving sizes meaningless since there are no X predefined partition sizes embedded in the kernel any longer. The root X! filesystem (\fBa\fP) must be at least 4Mb, preferably 6 to 7Mb if possible. X! The swap area (almost always the \fBb\fP partition) should be about 3Mb or X! so. If your system has a small amount (less than 2Mb) of memory you will X! need more swap space, perhaps 4 or 5Mb. It is a rare case where more than X! 5 or 6Mb of swap space is required. The system will run out of other X! resources by the time enough activity is generated to need that much swap X! space. X .PP X The system (boot) disk has a swapping area and X a root file system. Other drives may use those partitions for data. X--- 271,280 ---- X The space available on a disk varies, not surprisingly, per device. X Disklabels make a table giving sizes meaningless since there are no X predefined partition sizes embedded in the kernel any longer. The root X! filesystem (\fBa\fP) must be at least 4MB, preferably 6 to 7MB if possible. X! The swap area (almost always the \fBb\fP partition) should be 4MB or a little X! more. It is a rare case where more than X! 5 or 6MB of swap space is required. X .PP X The system (boot) disk has a swapping area and X a root file system. Other drives may use those partitions for data. X*************** X*** 291,299 **** X a complete system to about 90 Megabytes. X This overflows RK07, RL02 and RM03 systems, X but fits easily on most other hardware configurations. \*(2B is quite X! happy on RD54 or larger. Simply fitting the distribution isn't enough, X! there must still be space left for user files, objects when compiling X! programs, spooling directories, usw. X .PP X Be aware that the disks have their sizes measured in disk sectors (512 X bytes), while the UNIX file system blocks are 1024 bytes each. Thus if a X--- 288,294 ---- X a complete system to about 90 Megabytes. X This overflows RK07, RL02 and RM03 systems, X but fits easily on most other hardware configurations. \*(2B is quite X! happy on RD54 or larger. X .PP X Be aware that the disks have their sizes measured in disk sectors (512 X bytes), while the UNIX file system blocks are 1024 bytes each. Thus if a X*************** X*** 338,349 **** X The directory should be examined every so often and the old X files deleted. X .PP X- The efficiency with which UNIX is able to use the CPU X- is often strongly affected by the configuration of disk controllers. X- For general time-sharing applications, X- the best strategy is to try to split the most actively-used sections X- among several disk arms. X- .PP X It is critical for good performance to balance disk load. X There are at least five components of the disk load that you can X divide between the available disks: X--- 333,338 ---- X*************** X*** 370,404 **** X users 0 0+2 0+2 X archive x x 3 X .TE X- .FS X- .IP \(ua X- Note also, that only a single swapping area is supported. The X- \fIswapon\fP\|(2) system call and multiple swapping areas have \fBnot\fP X- been implemented under \*(2B (yet. no real need since enough other resources X- are exhausted by the time a 4mb 11/73 needs additional swap space). X- .FE X- .PP X- The most important things to consider are to X- even out the disk load as much as possible, and to do this by X- decoupling file systems (on separate arms) between which heavy copying occurs. X- Note that a long term average balanced load is not important; it is X- much more important to have an instantaneously balanced X- load when the system is busy. X- When placing several busy file systems on the same disk, X- it is helpful to group them together to minimize arm movement, X- with less active file systems off to the side. X- .PP X- Intelligent experimentation with a few file system arrangements can X- pay off in much improved performance. It is particularly easy to X- move the root, the X- /tmp X- file system and the swapping area. Note, though, that the disks X- containing the root and swapping area can never be removed while UNIX is X- running. Place the X- user files and the X- /usr X- directory as space needs dictate and experiment X- with the other, more easily moved file systems. X .NH 3 X Implementing a layout X .PP X--- 359,364 ---- X*************** X*** 570,582 **** X You should add accounts for the initial user community, giving X each a directory and a password, and putting users who will wish X to share software in the same groups. X- .PP X- Several guest accounts have been provided on the distribution X- system; these accounts are for people at Berkeley, X- Bell Laboratories, and others X- who have done major work on UNIX in the past. You can delete these accounts, X- or leave them on the system if you expect that these people would have X- occasion to login as guests on your system. X .NH 2 X Site tailoring X .PP X--- 530,535 ---- X*************** X*** 646,653 **** X To set up the mail facility you should read the instructions in the X file READ_ME in the directory /usr/src/usr.lib/sendmail and then adjust X the necessary configuration files. X! You should also set up the file /etc/aliases for your installation, X! creating mail groups as appropriate. Documents describing X .IR sendmail 's X operation and installation are also included on the distribution tape. X .NH 3 X--- 599,605 ---- X To set up the mail facility you should read the instructions in the X file READ_ME in the directory /usr/src/usr.lib/sendmail and then adjust X the necessary configuration files. X! Documents describing X .IR sendmail 's X operation and installation are also included on the distribution tape. X .NH 3 X*************** X*** 783,798 **** X specified in the L-devices file. X Listing only ACU causes the \fIuucp\fP daemon, \fIuucico\fP, X to search for any available auto-call unit in L-devices. X- Our L-dialcodes file is of the form: X- .DS X- ny 1-315- X- nj 1-201- X- bostn 1-617- X- .DE X- while our L-devices file is: X- .DS X- ACU cul0 unused 1200 ventel X- .DE X Refer to the README file in the \fIuucp\fP source directory X for more information about installation. X .PP X--- 735,740 ---- X*** ./usr/doc/2.10/setup.2.11/5.t.old Sat Nov 16 19:27:02 1996 X--- ./usr/doc/2.10/setup.2.11/5.t Wed Dec 10 12:06:07 2025 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)5.t 2.5 (2.11BSD GTE) 1996/11/16 X .\" X .ds lq `` X .ds rq '' X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)5.t 2.6 (2.11BSD) 2025/12/10 X .\" X .ds lq `` X .ds rq '' X*************** X*** 21,82 **** X .R X .NL X .PP X- The following section has been lightly edited to correspond to X- the current \*(2B networking. Several parts of it do not really apply to X- \*(2B, for example, it is unlikely that anyone will connect a PDP-11 to X- an IMP but it is possible as the LH/DH-11 networking interface and X- the IMP modules have been ported and lightly tested, or that anyone will X- run the nameserver. X The ``correct'' X use of the networking in \*(2B is probably with a list of the local net X! addresses in the \fI/etc/hosts\fP file and with one default gateway for X all network traffic. In particular, do not run X .IR routed (8) X unless you're extremely sure that you know what you're doing. This is X doubly true if SL/IP is being used as the primary connection to the X outside world. X- The IMP and PRONET drivers are known to work, but X- long term robustness is unknown. X- Sites that wish to hook \*(2B into more than a simple X- local ethernet may have some work ahead of them. If any additional X- drivers are ported, I would really like a copy. X .PP X The networking in \*(2B, runs in supervisor X! mode, separate from the mainstream kernel. There is room without overlaying X! to hold both a SL/IP and ethernet driver. This is a major win, as X! it allows the networking to maintain its mbufs in normal data space, X! among other things. The networking portion of the kernel resides in X! ``/netnix'', and is X loaded after the kernel is running. Since the kernel only looks for the X! file ``/netnix'', it will not run if it is unable to load ``/netnix'' X! , sites should build and keep a non-networking kernel in ``/'' at all times, X! as a backup. \fBNOTE\fP: The ``/unix'' and ``/netnix'' imagines must X have been created at the same time, do not attempt to use mismatched X! images. The ability to have \fBboot\fP tell the kernel which network image X! to load is on the wish list (had to have something take the place of X! wishing for disklabels ;-)). X .PP X \*(2B provides support for the DARPA standard Internet X! protocols IP, ICMP, TCP, and UDP. These protocols may be used X! on top of a variety of hardware devices ranging from the X! IMP's (PSN's) used in the Internet to local area network controllers X! for the Ethernet. Network services are split between the X kernel (communication protocols) and user programs (user X services such as TELNET and FTP). This section describes X how to configure your system to use the Internet networking support. X- \*(2B also includes code to support the Xerox Network Systems (NS) X- protocols; the basic porting work has been done, but it is completely X- untested. X .NH 2 X System configuration X .PP X To configure the kernel to include the Internet communication X protocols, define the INET option. This automatically defines X! the NLOOP option. TCP_COMPAT_42 is always defined. Xerox NS support is X! enabled with the NS option. X! In either case, include the pseudo-device X! ``pty'' in your machine's configuration X! file, using the NPTY options. X The ``pty'' pseudo-device forces the pseudo terminal device driver X to be configured into the system, see \fIpty\fP\|(4). The NLOOP X option forces inclusion of the software loopback interface driver. X--- 21,59 ---- X .R X .NL X .PP X The ``correct'' X use of the networking in \*(2B is probably with a list of the local net X! addresses in the \fI/etc/hosts\fP file and a default route to a gateway for X all network traffic. In particular, do not run X .IR routed (8) X unless you're extremely sure that you know what you're doing. This is X doubly true if SL/IP is being used as the primary connection to the X outside world. X .PP X The networking in \*(2B, runs in supervisor X! mode separate from the mainstream kernel. There is room without overlaying X! to hold both a SL/IP and ethernet driver. X! The networking portion of the kernel resides in ``/netnix'', and is X loaded after the kernel is running. Since the kernel only looks for the X! file ``/netnix'', it will not run if it is unable to load ``/netnix''. X! \fBNOTE\fP: The ``/unix'' and ``/netnix'' imagines must X have been created at the same time, do not attempt to use mismatched X! images. X .PP X \*(2B provides support for the DARPA standard Internet X! protocols IP, ICMP, TCP, and UDP. X! Network services are split between the X kernel (communication protocols) and user programs (user X services such as TELNET and FTP). This section describes X how to configure your system to use the Internet networking support. X .NH 2 X System configuration X .PP X To configure the kernel to include the Internet communication X protocols, define the INET option. This automatically defines X! the NLOOP option. X! Include the pseudo-device ``pty'' in your machine's configuration X! file using the NPTY options. X The ``pty'' pseudo-device forces the pseudo terminal device driver X to be configured into the system, see \fIpty\fP\|(4). The NLOOP X option forces inclusion of the software loopback interface driver. X*************** X*** 87,109 **** X Ethernet, the pseudo-device ``ether'' should also be included X in the configuration using the NETHER option; this forces inclusion of X the Address Resolution Protocol module used in mapping between 48-bit X! Ethernet and 32-bit Internet addresses. Also, if you have an IMP X! connection, you will need to include the pseudo-device ``imp'', using X! the option NIMP. The IMP software is ported and is in use at at least X! one site. X .PP X Before configuring the appropriate networking hardware, you should X consult the manual pages in section 4 of the Programmer's Manual. X! The following table lists the devices for which software support X! exists. Again, much of this software is unported and untested; only X! the basic networking has been stressed at all. Many other devices X! are available, but unported. Porting should simply be a matter of X! making the hardware device work. The directories ``/sys/pdpif'' and X! ``/sys/vaxif'' contain many drivers. The ones in ``pdpif'' are X! either the current, working drivers, or drivers that, at some time, X! worked on PDP-11's. The ones in ``vaxif'' are the current VAX drivers, X! and, as such, will have to have their memory usage changed, but serve X! as an excellent example of how the hardware works. X .DS X .TS X l l. X--- 64,74 ---- X Ethernet, the pseudo-device ``ether'' should also be included X in the configuration using the NETHER option; this forces inclusion of X the Address Resolution Protocol module used in mapping between 48-bit X! Ethernet and 32-bit Internet addresses. X .PP X Before configuring the appropriate networking hardware, you should X consult the manual pages in section 4 of the Programmer's Manual. X! The following table lists the devices for which software support exists. X .DS X .TS X l l. X*************** X*** 121,127 **** X .PP X SL/IP is also available. It is surprisingly efficient. Over a 9600 baud X line it is not unusual to see \fBftp\fP rates in the 800 bytes per second X! range (depending how busy the system is). X .PP X All network interface drivers including the loopback interface, X require that their host address(es) be defined at boot time. X--- 86,92 ---- X .PP X SL/IP is also available. It is surprisingly efficient. Over a 9600 baud X line it is not unusual to see \fBftp\fP rates in the 800 bytes per second X! range. X .PP X All network interface drivers including the loopback interface, X require that their host address(es) be defined at boot time. X*************** X*** 142,155 **** X Alternatively, translations for such hosts may be set in advance X or ``published'' by a \*(2B host by use of the X .IR arp (8) X! command. Note that the use of trailer link-level is now negotiated X! between \*(2B hosts using ARP, and it is thus no longer necessary to X! disable the use of trailers with \fIifconfig\fP. It is \fBSTRONGLY\fP X! recommended, however, that \*(2B networking be run without trailers, X! as the trailer code in most of the drivers has either been removed, X! commented out, is untested or is \fBknown\fP not to work. This is a problem X! with certain releases of \fIUltrix\fP, which has to be explicitly configured X! not to send trailers if it and \*(2B are to coexist. X .PP X To use the pseudo terminals just configured, device X entries must be created in the ``/dev'' directory. To create 32 X--- 107,113 ---- X Alternatively, translations for such hosts may be set in advance X or ``published'' by a \*(2B host by use of the X .IR arp (8) X! command. X .PP X To use the pseudo terminals just configured, device X entries must be created in the ``/dev'' directory. To create 32 X*************** X*** 193,205 **** X Sites with a class A network X number have a 24-bit address space with which to work, X sites with a class B network number have a 16-bit address space, X! while sites with a class C network number have an 8-bit address space\(ua. X! .FS X! .IP \(ua X! If you are unfamiliar with the Internet addressing structure, consult X! ``Address Mappings'', Internet RFC-796, J. Postel; available from X! the Internet Network Information Center at SRI. X! .FE X To define local subnets you must steal some bits X from the local host address space for use in extending the network X portion of the Internet address. This reinterpretation of Internet X--- 151,157 ---- X Sites with a class A network X number have a 24-bit address space with which to work, X sites with a class B network number have a 16-bit address space, X! while sites with a class C network number have an 8-bit address space. X To define local subnets you must steal some bits X from the local host address space for use in extending the network X portion of the Internet address. This reinterpretation of Internet X*************** X*** 228,246 **** X that has been assigned to subnets. X If no mask is specified when the address is set, X it will be set according to the class of the network. X- For example, at Berkeley (class B network 128.32) 8 bits X- of the local part have been reserved for defining subnetworks; X- consequently the /etc/rc.local file contains lines of the form X- .DS X- ifconfig en0 netmask 0xffffff00 128.32.1.7 X- .DE X- This specifies that for interface ``en0'', the upper 24 bits of X- the Internet address should be used in calculating network numbers X- (netmask 0xffffff00), and the interface's Internet address is X- ``128.32.1.7'' (host 7 on network 128.32.1). Hosts \fIm\fP on X- sub-network \fIn\fP of this network would then have addresses of X- the form ``128.32.\fIn\fP.\fIm\fP''; for example, host X- 99 on network 129 would have an address ``128.32.129.99''. X For hosts with multiple interfaces, the network mask should X be set for each interface, X although in practice only the mask of the first interface on each network X--- 180,185 ---- X*************** X*** 267,301 **** X Routing X .PP X If your environment allows access to networks not directly X! attached to your host you will need to set up routing information X! to allow packets to be properly routed. Two schemes are X! supported by the system. The first scheme X! employs the routing table management daemon \fIrouted\fP X! to maintain the system routing tables. The routing daemon X! uses a variant of the Xerox Routing Information Protocol X! to maintain up to date routing tables in a cluster of local X! area networks. By using the \fI/etc/gateways\fP X! file created by X! .IR htable (8), X! the routing daemon can also be used to initialize static routes X! to distant networks (see the next section for further discussion). X! When the routing daemon is started up X! (usually from \fI/etc/rc.local\fP) it reads \fI/etc/gateways\fP if it exists X! and installs those routes defined there, then broadcasts on each local network X! to which the host is attached to find other instances of the routing X! daemon. If any responses are received, the routing daemons X! cooperate in maintaining a globally consistent view of routing X! in the local environment. This view can be extended to include X! remote sites also running the routing daemon by setting up suitable X! entries in \fI/etc/gateways\fP; consult X! .IR routed (8) X! for a more thorough discussion. X! .PP X! The second approach is to define a default or wildcard X! route to a smart X gateway and depend on the gateway to provide ICMP routing X! redirect information to dynamically create a routing data X! base. This is done by adding an entry of the form X .DS X route add default \fIsmart-gateway\fP 1 X .DE X--- 206,216 ---- X Routing X .PP X If your environment allows access to networks not directly X! attached to your host you will need to set a default route to a gateway. X! Do \fBNOT\fP attempt to run \fIrouted\fP on a \*(2B system. X! Define a default or wildcard route to a smart X gateway and depend on the gateway to provide ICMP routing X! redirect information. This is done by adding an entry of the form X .DS X route add default \fIsmart-gateway\fP 1 X .DE X*************** X*** 303,325 **** X .IR route (8) X for more information. The default route X will be used by the system as a ``last resort'' X! in routing packets to their destination. Assuming the gateway X! to which packets are directed is able to generate the proper X! routing redirect messages, the system will then add routing X! table entries based on the information supplied. This approach X! has certain advantages over the routing daemon, but is X! unsuitable in an environment where there are only bridges (i.e. X! pseudo gateways that, for instance, do not generate routing X! redirect messages). Further, if the X! smart gateway goes down there is no alternative, save manual X! alteration of the routing table entry, to maintaining service. X .PP X The system always listens, and processes, routing redirect X! information, so it is possible to combine both of the above X! facilities. For example, the routing table management process X! might be used to maintain up to date information about routes X! to geographically local networks, while employing the wildcard X! routing techniques for ``distant'' networks. The X .IR netstat (1) X program may be used to display routing table contents as well X as various routing oriented statistics. For example, X--- 218,228 ---- X .IR route (8) X for more information. The default route X will be used by the system as a ``last resort'' X! in routing packets to their destination. X .PP X The system always listens, and processes, routing redirect X! information. X! The X .IR netstat (1) X program may be used to display routing table contents as well X as various routing oriented statistics. For example, X*************** X*** 339,352 **** X If you \fBreally\fP want to do this then the best recourse is to X prowl the sources and see what has to be done. The code is all there, X and the "ipforwarding" variable is present. X- .PP X- Local area routing within a group of interconnected Ethernets X- and other such networks may be handled by X- .IR routed (8). X- Gateways between the Internet and one or more local networks X- require an additional routing protocol, the Exterior Gateway Protocol (EGP), X- to inform the core gateways of their presence X- and to acquire routing information from the core. X .NH 2 X Network servers X .PP X--- 242,247 ---- X*************** X*** 410,464 **** X otherwise the normal channels should be used for allocation of network X numbers. X .NH 3 X! Regenerating /etc/hosts and /etc/networks X .PP X When using the host address routines that use the Internet name server, X the file \fI/etc/hosts\fP is only used for setting interface addresses X and at other times that the server is not running, X and therefore it need only contain addresses for local hosts. X- There is no equivalent service for network names yet. X- The days of retrieving a host file containing all systems on the Internet X- are over. Besides, you would grow very old and run out of disk space X- while waiting for \fImkhosts\fP\|(8) to process a hosts file containing X- the several million entries. X- Therefore the details of retrieving a master hosts file using X- .IR htable (8) X- and X- .IR gettable (8) X- have been removed from this document. However if you do use local hosts X- files you will still need to run X- .IR mkhosts (8) X- and this is described below. X .PP X- If you are using the host table for host name and address X- mapping, you should run \fImkhosts\fP\|(8) after installing X- \fI/etc/hosts\fP. X- The \fImkhosts\fP\|(8) program has been enhanced for \*(2B to allow X- multiple addresses per host. The order in which the addresses are X- given in \fI/etc/hosts\fP is preserved, so the entries for a given X- host should be in order of importance. X- If you are using the name server for the host name and address mapping, X- you only need to install \fInetworks\fP and a small copy of \fIhosts\fP X- describing your local machines. The full host table in this case might X- be placed somewhere else for reference by users. X- The gateways file may be installed in \fI/etc/gateways\fP if you use X- .IR routed (8) X- for local routing and wish to have static external routes installed X- when \fIrouted\fP is started. X- This procedure is essentially obsolete, however, except for individual hosts X- that are on the Milnet and do not forward packets from a local X- network. X- Other situations require the use of \fBgated\fP. X- That program can never be made to run on a PDP-11 due to address space X- considerations. Also, the networking code X- could not even begin to handle the number of routes which would be received. X- .PP X If you are connected to the Internet, it is highly recommended that X you use the name server resolver routines for your host name and address X mapping, as this provides access to a much larger set of hosts than are X! provided in the host table. Many large organization on the network, X! currently have only a small percentage of their hosts listed in the host X! table retrieved from NIC. X .NH 3 X /etc/hosts.equiv X .PP X--- 305,321 ---- X otherwise the normal channels should be used for allocation of network X numbers. X .NH 3 X! Use of /etc/hosts X .PP X When using the host address routines that use the Internet name server, X the file \fI/etc/hosts\fP is only used for setting interface addresses X and at other times that the server is not running, X and therefore it need only contain addresses for local hosts. X .PP X If you are connected to the Internet, it is highly recommended that X you use the name server resolver routines for your host name and address X mapping, as this provides access to a much larger set of hosts than are X! provided in the host table. X .NH 3 X /etc/hosts.equiv X .PP X*************** X*** 481,495 **** X file should contain the \fIofficial\fP names for those machines. X If you are running the name server, you may omit the domain part X of the host name for machines in your local domain. X- For example, several machines on my local X- network are considered trusted, so the \fIhosts.equiv\fP file is X- of the form: X- .DS X- wlv X- wlonex X- wlonex0 X- wlbr X- .DE X .NH 3 X /etc/rc.local X .PP X--- 338,343 ---- X*************** X*** 532,540 **** X /etc/ftpusers X .PP X The FTP server included in the system provides support for an X! anonymous FTP account. Because of the inherent security problems X! with such a facility you should read this section carefully if X! you consider providing such a service. X .PP X An anonymous account is enabled by creating a user \fIftp\fP. X When a client uses the anonymous account a \fIchroot\fP\|(2) X--- 380,386 ---- X /etc/ftpusers X .PP X The FTP server included in the system provides support for an X! anonymous FTP account. X .PP X An anonymous account is enabled by creating a user \fIftp\fP. X When a client uses the anonymous account a \fIchroot\fP\|(2) X*** ./usr/doc/2.10/setup.2.11/6.t.old Sat Nov 16 19:29:07 1996 X--- ./usr/doc/2.10/setup.2.11/6.t Thu Dec 11 07:00:03 2025 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)6.t 2.4 (2.11BSD GTE) 1996/11/16 X .\" X .de IR X \fI\\$1\fP\|\\$2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)6.t 2.5 (2.11BSD) 2025/12/10 X .\" X .de IR X \fI\\$1\fP\|\\$2 X*************** X*** 125,175 **** X become complacent. X Complete and incremental dumps are easily done with X \fIdump\fP\|(8). X- You should arrange to do a towers-of-hanoi dump sequence; we tune X- ours so that almost all files are dumped on two tapes and kept for at X- least a week in most every case. We take full dumps every month (and keep X- these indefinitely). X .PP X- More precisely, we have three sets of dump tapes: 10 daily tapes, X- 5 weekly sets of 2 tapes, and fresh sets of three tapes monthly. X- We do daily dumps circularly on the daily tapes with sequence X- `3 2 5 4 7 6 9 8 9 9 9 ...'. X- Each weekly is a level 1 and the daily dump sequence level X- restarts after each weekly dump. X- Full dumps are level 0 and the daily sequence restarts after each full dump X- also. X- .PP X- Thus a typical dump sequence would be: X- .br X- .ne 6 X- .KS X- .TS X- center; X- c c c c c X- n n n l l. X- tape name level number date opr size X- _ X- FULL 0 Nov 24, 1979 jkf 137MB X- D1 3 Nov 28, 1979 jkf 29MB X- D2 2 Nov 29, 1979 rrh 34MB X- D3 5 Nov 30, 1979 rrh 19MB X- D4 4 Dec 1, 1979 rrh 22MB X- W1 1 Dec 2, 1979 etc 40MB X- D5 3 Dec 4, 1979 rrh 15MB X- D6 2 Dec 5, 1979 jkf 25MB X- D7 5 Dec 6, 1979 jkf 15MB X- D8 4 Dec 7, 1979 rrh 19MB X- W2 1 Dec 9, 1979 etc 118MB X- D9 3 Dec 11, 1979 rrh 15MB X- D10 2 Dec 12, 1979 rrh 26MB X- D1 5 Dec 15, 1979 rrh 14MB X- W3 1 Dec 17, 1979 etc 71MB X- D2 3 Dec 18, 1979 etc 13MB X- FULL 0 Dec 22, 1979 etc 135MB X- .TE X- .KE X- Weekly dumps are done often enough that daily dumps always fit on one tape. X- .PP X Dumping of files by name is best done by X \fItar\fP\|(1) X but the amount of data that can be moved in this way is limited X--- 125,131 ---- X*************** X*** 181,199 **** X blocking factor; the number of sectors per track is usually X a good value to use, consult \fI/etc/disktab\fP. X .PP X! It is desirable that full dumps of the root file system be X! made regularly. These dumps should be made in ``bootable`` format, X including the standalone programs mentioned back in chapter 2 (boot, X! mkfs, restor and icheck). This can easily be done by going to X! /sys/pdpstand and doing: X .DS X make all X ./maketape /dev/nrmtXX maketape.data X dump 0u / X .DE X! This is especially true when only one disk is available. X! Then, if the X! root file system is damaged by a hardware or software failure, you X can rebuild a workable disk doing a restore in the X same way that the initial root file system was created. X .PP X--- 137,153 ---- X blocking factor; the number of sectors per track is usually X a good value to use, consult \fI/etc/disktab\fP. X .PP X! A full dump of the root filesystem in ``bootable`` format, X including the standalone programs mentioned back in chapter 2 (boot, X! mkfs, restor and icheck) can be made by going to X! /sys/pdpstand and: X .DS X make all X ./maketape /dev/nrmtXX maketape.data X dump 0u / X .DE X! If the X! root file system is damaged by a hardware or software failure you X can rebuild a workable disk doing a restore in the X same way that the initial root file system was created. X .PP X*************** X*** 205,255 **** X .NH 2 X Moving file system data X .PP X! If you have the equipment, X! the best way to move a file system X is to dump it to magtape using X \fIdump\fP\|(8), X use X \fInewfs\fP\|(8) X to create the new file system, X! and restore the tape, using \fIrestor\fP\|(8). X! If for some reason you don't want to use magtape, X! dump accepts an argument telling where to put the dump; X! you might use another disk. X Filesystems may also be moved by piping the output of a \fItar\fP\|(1) X! to another \fItar\fP. X The \fIrestor\fP program accesses the raw device, laying down X inodes and blocks in the same place they came from as recorded by dump. X Care must therefore be taken when restoring a dump into X a file system smaller than the original file system. X- .PP X- If you have to shrink a file system or merge a file system into another, X- existing one, the best bet is to use \fItar\fP\|(1). X- If you X- are playing with the root file system and only have one drive, X- the procedure is more complicated. X- If the only drive is a Winchester disk, this procedure may not be used X- without overwriting the existing root or another partition. X- What you do is the following: X- .IP 1. X- GET A SECOND PACK!!!! X- .IP 2. X- Dump the root file system to tape using X- \fIdump\fP\|(8). X- .IP 3. X- Bring the system down and mount the new pack. X- .IP 4. X- Load the distribution tape and install the new X- root file system as you did when first installing the system. X- .IP 5. X- Boot normally X- using the newly created disk file system. X- .PP X- Note that if you add new disk X- drivers they should also be added to the standalone system in X- \fI/sys/pdpstand\fP. X- If you change the disk partition tables the default disk partition tables X- in \fI/etc/disktab\fP should be modified. X .NH 2 X Recompiling and reinstalling system software X .PP X--- 159,186 ---- X .NH 2 X Moving file system data X .PP X! If you have the equipment one way to move a file system X is to dump it to magtape using X \fIdump\fP\|(8), X use X \fInewfs\fP\|(8) X to create the new file system, X! and restore the tape using \fIrestor\fP\|(8). X! If you don't want to use magtape \fIdump\fP accepts an argument telling X! where to put the dump. The argument may be a filename or the special X! name ''-'' meaning standard output. A filesystem can be migrated using a X! pipeline. For example: X! .sp X! newfs /dev/rXXXa X! dump 0f - / | restor rf /dev/rXXXa X! .PP X Filesystems may also be moved by piping the output of a \fItar\fP\|(1) X! to another \fItar\fP: X! .PP X The \fIrestor\fP program accesses the raw device, laying down X inodes and blocks in the same place they came from as recorded by dump. X Care must therefore be taken when restoring a dump into X a file system smaller than the original file system. X .NH 2 X Recompiling and reinstalling system software X .PP X*** ./usr/doc/2.10/setup.2.11/Makefile.old Tue Jun 13 21:46:05 1995 X--- ./usr/doc/2.10/setup.2.11/Makefile Sat Jan 3 19:01:48 2026 X*************** X*** 3,29 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.2.1 (2.11BSD) 1995/06/12 X # X- PRINTER=-Plz001 X- LPR= lpr -h -n -Plz001 X X SRC= 0.t 1.t 2.t 3.t 4.t 5.t 6.t a.t b.t X X all: X! @echo pick one of troff, nroff, groff or ditroff X X troff: ${SRC} X! eqn ${SRC} | tbl | troff ${PAGES} -ms > setup.out X X nroff: ${SRC} X! eqn ${SRC} | tbl | nroff ${PAGES} -ms > setup.out X! X! groff: ${SRC} X! groff -e -t -ms -Tps ${SRC} > setup.out X! X! ditroff: ${SRC} X! dieqn ${SRC} | ditbl | ditroff ${PAGES} -ms > setup.out X X clean: X rm -f setup.out ?.t.spell X--- 3,21 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.2.2 (2.11BSD) 2025/12/10 X # X X SRC= 0.t 1.t 2.t 3.t 4.t 5.t 6.t a.t b.t X X all: X! @echo pick one of troff or nroff X X troff: ${SRC} X! eqn ${SRC} | tbl | troff -t ${PAGES} -ms > setup.out X X nroff: ${SRC} X! eqn ${SRC} | tbl | nroff -Tlpr ${PAGES} -ms > setup.out X X clean: X rm -f setup.out ?.t.spell X*** ./usr/doc/2.10/setup.2.11/a.t.old Tue Jul 11 22:50:16 1995 X--- ./usr/doc/2.10/setup.2.11/a.t Wed Dec 10 12:34:18 2025 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)a.t 2.1 (GTE) 1995/06/16 X .\" X .de IR X \fI\\$1\fP\|\\$2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)a.t 2.2 (2.11BSD) 2025/12/10 X .\" X .de IR X \fI\\$1\fP\|\\$2 X*************** X*** 72,81 **** X l n. X Device Number X - X RK06/07 2 X MSCP (RA) Controllers 2 X MSCP (RA) Disks 3 X! RL01/02 Drives 2 X SMD (XP) Controllers 1 X SMD (XP) Disks 2 X TE16, TU45, TU77 (HT) Tape drives 2 X--- 72,83 ---- X l n. X Device Number X - X+ RK05 8 X RK06/07 2 X+ RX02 2 X MSCP (RA) Controllers 2 X MSCP (RA) Disks 3 X! RL01/02 Drives 4 X SMD (XP) Controllers 1 X SMD (XP) Disks 2 X TE16, TU45, TU77 (HT) Tape drives 2 X*************** X*** 245,255 **** X NRAC 1 # NRAD controllers X NRAD 2 # RX50, RC25, RD51/52/53, RA60/80/81 X X! NRK 0 # RK05 X X NRL 2 # RL01/02 X X! NRX 0 # RX02 X X NSI 0 # SI 9500 driver for CDC 9766 disks X X--- 247,257 ---- X NRAC 1 # NRAD controllers X NRAD 2 # RX50, RC25, RD51/52/53, RA60/80/81 X X! NRK 8 # RK05 X X NRL 2 # RL01/02 X X! NRX 2 # RX02 X X NSI 0 # SI 9500 driver for CDC 9766 disks X X*** ./usr/doc/2.10/setup.2.11/spell.ok.old Sun Jun 18 22:58:45 1995 X--- ./usr/doc/2.10/setup.2.11/spell.ok Wed Dec 10 08:01:33 2025 X*************** X*** 1,6 **** X 2.10.1BSD X- 2.10.2SMS X 2.10BSD X 4.3BSD X ACC X ACU X--- 1,6 ---- X 2.10.1BSD X 2.10BSD X+ 2.11BSD X 4.3BSD X ACC X ACU X*** ./usr/doc/ps1/00.contents.old Sat May 10 15:53:37 1986 X--- ./usr/doc/ps1/00.contents Fri Dec 26 21:00:05 2025 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.2 (Berkeley) 5/10/86 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.3 (2.11BSD) 2025/12/26 X .\" X .OH '''PS1 Contents' X .EH 'PS1 Contents''' X*************** X*** 79,90 **** X .SH X Programming Tools X .IP X- .tl 'Lint, A C Program Checker''PS1:9' X- .QP X- Checks C programs for syntax errors, type violations, portability problems, X- and a variety of probable errors. X- X- .IP X .tl 'A Tutorial Introduction to ADB''PS1:10' X .QP X How to debug programs using the \fIadb\fP debugger. X--- 79,84 ---- X*************** X*** 91,101 **** X For hints on the use of ADB for debugging the X .UX X kernel, see ``Using ADB to Debug the Kernel'', SMM:3 X- X- .IP X- .tl 'Debugging with dbx''PS1:11' X- .QP X- How to debug programs without having to know much about machine language. X X .IP X .tl 'Make \- A Program for Maintaining Computer Programs''PS1:12' X--- 85,90 ---- X*** ./usr/doc/ps2/00.contents.old Sat May 10 17:48:52 1986 X--- ./usr/doc/ps2/00.contents Fri Dec 26 21:00:36 2025 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.2 (Berkeley) 5/10/86 X .\" X .OH '''PS2 Contents' X .EH 'PS2 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.3 (2.11BSD) 2025/12/26 X .\" X .OH '''PS2 Contents' X .EH 'PS2 Contents''' X*************** X*** 62,82 **** X to a language with structures much like C. X X .IP X- .tl 'Berkeley FP User\'s Manual''PS2:7' X- .QP X- A description of the Berkeley implementation of Backus' X- Functional Programming Language, FP. X- X- .IP X .tl 'Ratfor \- A Preprocessor for a Rational FORTRAN''PS2:8' X .QP X Converts a FORTRAN with C\-like control structures and cosmetics into real, X ugly, compilable FORTRAN. X- X- .IP X- .tl 'The F\s-2RANZ\s0 L\s-2ISP\s0 Manual''PS2:9' X- .QP X- A dialect of \s-2LISP\s0, largely compatible with \s-2MACLISP\s0. X X .SH X Database Management X--- 62,71 ---- X*** ./usr/include/stdio.h.old Tue Jul 29 22:03:32 1997 X--- ./usr/include/stdio.h Thu Dec 25 22:13:51 2025 X*************** X*** 1,75 **** 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! * @(#)stdio.h 5.3.2 (2.11BSD) 1997/7/29 X */ X X! # ifndef FILE X! #define BUFSIZ 1024 X! extern struct _iobuf { X! int _cnt; X! char *_ptr; /* should be unsigned char */ X! char *_base; /* ditto */ X! int _bufsiz; X! short _flag; X! char _file; /* should be short */ X! } _iob[]; X X! #define _IOREAD 01 X! #define _IOWRT 02 X! #define _IONBF 04 X! #define _IOMYBUF 010 X! #define _IOEOF 020 X! #define _IOERR 040 X! #define _IOSTRG 0100 X! #define _IOLBF 0200 X! #define _IORW 0400 X X /* X! * The following definition is for ANSI C, which took them X * from System V, which brilliantly took internal interface macros and X * made them official arguments to setvbuf(), without renaming them. X * Hence, these ugly _IOxxx names are *supposed* to appear in user code. X! */ X! #define _IOFBF 0 /* setvbuf should set fully buffered */ X! /* _IONBF and _IOLBF are used from the flags above */ X X! #ifndef NULL X! #define NULL 0 X #endif X X! #define FILE struct _iobuf X! #define EOF (-1) X X! #define stdin (&_iob[0]) X! #define stdout (&_iob[1]) X! #define stderr (&_iob[2]) X! #ifndef lint X! #define getc(p) (--(p)->_cnt>=0? (int)(*(unsigned char *)(p)->_ptr++):_filbuf(p)) X! #endif not lint X! #define getchar() getc(stdin) X! #ifndef lint X! #define putc(x, p) (--(p)->_cnt >= 0 ?\ X! (int)(*(unsigned char *)(p)->_ptr++ = (x)) :\ X! (((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\ X! ((*(p)->_ptr = (x)) != '\n' ?\ X! (int)(*(unsigned char *)(p)->_ptr++) :\ X! _flsbuf(*(unsigned char *)(p)->_ptr, p)) :\ X! _flsbuf((unsigned char)(x), p))) X! #endif not lint X! #define putchar(x) putc(x,stdout) X! #define feof(p) (((p)->_flag&_IOEOF)!=0) X! #define ferror(p) (((p)->_flag&_IOERR)!=0) X! #define fileno(p) ((p)->_file) X! #define clearerr(p) ((p)->_flag &= ~(_IOERR|_IOEOF)) X X! FILE *fopen(); X! FILE *fdopen(); X! FILE *freopen(); X! FILE *popen(); X! long ftell(); X! char *fgets(); X! char *gets(); X! # endif /* _FILE */ X--- 1,334 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ * @(#)stdio.h 8.6 (2.11BSD) 2025/12/25 X+ */ X+ X+ #ifndef _STDIO_H_ X+ #define _STDIO_H_ X+ X+ #include X+ #include X+ X+ /* C99 7.19.1 clause 2 */ X+ #define NULL 0 X+ typedef off_t fpos_t; X+ X /* X! * NB: to fit things in six character monocase externals, the stdio X! * code uses the prefix `__s' for stdio objects, typically followed X! * by a three-character attempt at a mnemonic. X! */ X! X! /* stdio buffers */ X! struct __sbuf { X! unsigned char *_base; X! int _size; X! }; X! X! /* X! * Break out some parts of the FILE structure to keep the static allocated X! * structure small. ANSI C requires us to be able to open FOPEN_MAX without X! * failing, but everything here is an extension to the ANSI C X! * standard, so it is OK for us to fail. X! */ X! struct __sfops { X! /* operations */ X! void *_cookie; /* cookie passed to io functions */ X! int (*_close) (void *); X! int (*_read) (void *, char *, int); X! fpos_t (*_seek) (void *, fpos_t, int); X! int (*_write) (void *, const char *, int); X! X! /* separate buffer for long sequences of ungetc() */ X! struct __sbuf _ub; /* ungetc buffer */ X! X! /* separate buffer for fgetln() when line crosses buffer boundary */ X! struct __sbuf _lb; /* buffer for fgetln() */ X! X! }; X! X! /* X! * stdio state variables. X * X! * The following always hold: X! * X! * if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), X! * _lbfsize is -_bf._size, else _lbfsize is 0 X! * if _flags&__SRD, _w is 0 X! * if _flags&__SWR, _r is 0 X! * X! * This ensures that the getc and putc macros (or inline functions) never X! * try to write or read from a file that is in `read' or `write' mode. X! * (Moreover, they can, and do, automatically switch from read mode to X! * write mode, and back, on "r+" and "w+" files.) X! * X! * _lbfsize is used only to make the inline line-buffered output stream X! * code as compact as possible. X! * X! * _ub, _up, and _ur are used when ungetc() pushes back more characters X! * than fit in the current _bf, or when ungetc() pushes back a character X! * that does not match the previous one in _bf. When this happens, X! * _ub._base becomes non-nil (i.e., a stream has ungetc() data iff X! * _ub._base!=NULL) and _up and _ur save the current values of _p and _r. X */ X+ typedef struct __sFILE { X+ unsigned char *_p; /* current position in (some) buffer */ X+ int _r; /* read space left for getc() */ X+ int _w; /* write space left for putc() */ X+ short _flags; /* flags, below; this FILE is free if 0 */ X+ short _file; /* fileno, if Unix descriptor, else -1 */ X+ struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */ X+ int _lbfsize; /* 0 or -_bf._size, for inline putc */ X X! struct __sfops *_fops; X X! unsigned char *_up; /* saved _p when _p is doing ungetc data */ X! int _ur; /* saved _r when _r is counting ungetc data */ X X+ /* tricks to meet minimum requirements even when malloc() fails */ X+ unsigned char _ubuf[1]; /* guarantee an ungetc() buffer */ X+ unsigned char _nbuf[1]; /* guarantee a getc() buffer */ X+ X+ /* Unix stdio files get aligned to block boundaries on fseek() */ X+ fpos_t _offset; /* current lseek offset (see WARNING) */ X+ } FILE; X+ X+ extern FILE __sF[]; X+ X+ #define __SLBF 0x0001 /* line buffered */ X+ #define __SNBF 0x0002 /* unbuffered */ X+ #define __SRD 0x0004 /* OK to read */ X+ #define __SWR 0x0008 /* OK to write */ X+ /* RD and WR are never simultaneously asserted */ X+ #define __SRW 0x0010 /* open for reading & writing */ X+ #define __SEOF 0x0020 /* found EOF */ X+ #define __SERR 0x0040 /* found error */ X+ #define __SMBF 0x0080 /* _buf is from malloc */ X+ #define __SAPP 0x0100 /* fdopen()ed in append mode */ X+ #define __SSTR 0x0200 /* this is an sprintf/snprintf string */ X+ #define __SOPT 0x0400 /* do fseek() optimisation */ X+ #define __SNPT 0x0800 /* do not do fseek() optimisation */ X+ #define __SOFF 0x1000 /* set iff _offset is in fact correct */ X+ #define __SMOD 0x2000 /* true => fgetln modified _p text */ X+ #define __SUNC 0x4000 /* ungetc()'d char without fops alloc */ X+ X /* X! * The following three definitions are for ANSI C, which took them X * from System V, which brilliantly took internal interface macros and X * made them official arguments to setvbuf(), without renaming them. X * Hence, these ugly _IOxxx names are *supposed* to appear in user code. X! * X! * Although numbered as their counterparts above, the implementation X! * does not rely on this. X! */ X! #define _IOFBF 0 /* setvbuf should set fully buffered */ X! #define _IOLBF 1 /* setvbuf should set line buffered */ X! #define _IONBF 2 /* setvbuf should set unbuffered */ X X! #define BUFSIZ 1024 /* size of buffer used by setbuf */ X! #define EOF (-1) X! X! /* X! * FOPEN_MAX is a minimum maximum, and is the number of streams that X! * stdio can provide without attempting to allocate further resources X! * (which could fail). Do not use this for anything. X! */ X! /* must be == _POSIX_STREAM_MAX */ X! #define FOPEN_MAX 8 /* Min requirement by ANSI C */ X! #define FILENAME_MAX 256 /* must be <= PATH_MAX */ X! X! /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ X! #ifndef _ANSI_SOURCE X! #define P_tmpdir "/var/tmp/" X #endif X+ #define L_tmpnam 256 /* XXX must be == PATH_MAX */ X+ #define TMP_MAX 308915776 X X! #define SEEK_SET 0 /* set file offset to offset */ X! #define SEEK_CUR 1 /* set file offset to current plus offset */ X! #define SEEK_END 2 /* set file offset to EOF plus offset */ X X! #define stdin (&__sF[0]) X! #define stdout (&__sF[1]) X! #define stderr (&__sF[2]) X! X! /* X! * Functions defined in ANSI C standard. X! */ X! void clearerr(FILE *); X! int fclose(FILE *); X! int feof(FILE *); X! int ferror(FILE *); X! int fflush(FILE *); X! int fgetc(FILE *); X! int fgetpos(FILE *, fpos_t *); X! char *fgets(char *, int, FILE *); X! FILE *fopen(const char *, const char *); X! int fprintf(FILE *, const char *, ...); X! int fputc(int, FILE *); X! int fputs(const char *, FILE *); X! size_t fread(void *, size_t, size_t, FILE *); X! FILE *freopen(const char *, const char *, FILE *); X! int fscanf(FILE *, const char *, ...); X! int fseek(FILE *, long, int); X! int fsetpos(FILE *, const fpos_t *); X! long ftell(FILE *); X! size_t fwrite(const void *, size_t, size_t, FILE *); X! int getc(FILE *); X! int getchar(void); X! char *gets(char *); X! #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) X! extern int sys_nerr; /* perror(3) external variables */ X! extern const char *const sys_errlist[]; X! #endif X! void perror(const char *); X! int printf(const char *, ...); X! int putc(int, FILE *); X! int putchar(int); X! int puts(const char *); X! int remove(const char *); X! int rename (const char *, const char *); X! void rewind(FILE *); X! int scanf(const char *, ...); X! void setbuf(FILE *, char *); X! int setvbuf(FILE *, char *, int, size_t); X! int sprintf(char *, const char *, ...); X! int sscanf(const char *, const char *, ...); X! FILE *tmpfile(void); X! char *tmpnam(char *); X! int ungetc(int, FILE *); X! int vfprintf(FILE *, const char *, va_list); X! int vprintf(const char *, va_list); X! int vsprintf(char *, const char *, va_list); X! X! /* X! * Functions defined in POSIX 1003.1. X! */ X! #ifndef _ANSI_SOURCE X! #define L_cuserid 9 /* size for cuserid(); UT_NAMESIZE + 1 */ X! #define L_ctermid 1024 /* size for ctermid(); PATH_MAX */ X! X! char *ctermid(char *); X! FILE *fdopen(int, const char *); X! int fileno(FILE *); X! #endif /* not ANSI */ X! X! /* X! * Routines that are purely local. X! */ X! #if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE) X! char *fgetln(FILE *, size_t *); X! int fpurge(FILE *); X! int getw(FILE *); X! int pclose(FILE *); X! FILE *popen(const char *, const char *); X! int putw(int, FILE *); X! void setbuffer(FILE *, char *, int); X! int setlinebuf(FILE *); X! char *tempnam(const char *, const char *); X! int snprintf(char *, size_t, const char *, ...); X! int vsnprintf(char *, size_t, const char *, va_list); X! int vscanf(const char *, va_list); X! int vsscanf(const char *, const char *, va_list); X! FILE *zopen(const char *, const char *, int); X! X! /* X! * This is a #define because the function is used internally and X! * (unlike vfscanf) the name __svfscanf is guaranteed not to collide X! * with a user function when _ANSI_SOURCE or _POSIX_SOURCE is defined. X! * This also applies to vfprintf. X! */ X! #define vfscanf __svfscanf X! #define vfprintf __svfprintf X! X! /* X! * Stdio function-access interface. X! */ X! FILE *funopen(const void *, X! int (*)(void *, char *, int), X! int (*)(void *, const char *, int), X! fpos_t (*)(void *, fpos_t, int), X! int (*)(void *)); X! #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) X! #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) X! #endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */ X! X! /* X! * Functions internal to the implementation. X! */ X! int __srget(FILE *); X! int __svfscanf(FILE *, const char *, va_list); X! int __svfprintf(FILE *, const char *, va_list); X! int __swbuf(int, FILE *); X! X! /* X! * The __sfoo macros are here so that we can X! * define function versions in the C library. X! */ X! #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) X! /* X! * This has been tuned to generate reasonable code on the vax using pcc. X! */ X! #define __sputc(c, p) \ X! (--(p)->_w < 0 ? \ X! (p)->_w >= (p)->_lbfsize ? \ X! ((*(p)->_p = (c)), *(p)->_p != '\n') ? \ X! (int)*(p)->_p++ : \ X! __swbuf('\n', p) : \ X! __swbuf((int)(c), p) : \ X! (*(p)->_p = (c), (int)*(p)->_p++)) X! X! #define __sfeof(p) (((p)->_flags & __SEOF) != 0) X! #define __sferror(p) (((p)->_flags & __SERR) != 0) X! #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) X! #define __sfileno(p) ((p)->_file) X X! #define feof(p) __sfeof(p) X! #define ferror(p) __sferror(p) X! #define clearerr(p) __sclearerr(p) X! X! #ifndef _ANSI_SOURCE X! #define fileno(p) __sfileno(p) X! #endif X! X! #ifndef lint X! #define getc(fp) __sgetc(fp) X! #define putc(x, fp) __sputc(x, fp) X! #endif /* lint */ X! X! #define getchar() getc(stdin) X! #define putchar(x) putc(x, stdout) X! #endif /* _STDIO_H_ */ X*** ./usr/include/limits.h.old Fri Jan 12 01:36:18 1996 X--- ./usr/include/limits.h Wed Dec 24 10:06:22 2025 X*************** X*** 30,36 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)limits.h 8.2.1 (2.11BSD) 1996/1/11 X */ X X #ifndef _LIMITS_H_ X--- 30,36 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)limits.h 8.2.2 (2.11BSD) 2025/12/24 X */ X X #ifndef _LIMITS_H_ X*************** X*** 62,71 **** X #define _POSIX2_EXPR_NEST_MAX 32 X #define _POSIX2_LINE_MAX 2048 X #define _POSIX2_RE_DUP_MAX 255 X- X */ X X #include X- /* #include */ X X #endif /* !_LIMITS_H_ */ X--- 62,69 ---- X*** ./usr/ingres/source/Makefile.old Sun Feb 19 02:23:35 1995 X--- ./usr/ingres/source/Makefile Sat Nov 29 06:25:37 2025 X*************** X*** 1,10 **** X INGRES=.. X BIN=$(INGRES)/bin X DEMO=$(INGRES)/demo X LIB=$(INGRES)/lib X! DESTDIR=/usr X! DESTBIN=$(DESTDIR)/bin X! DESTLIB=$(DESTDIR)/lib X INSTALL=install X INSTALLQ=installq X SYSALL = creatdb ingres destroydb sysmod purge printr helpr restore equel X--- 1,11 ---- X+ # Makefile 2.0 (2.11BSD) 2025/11/29 X+ X INGRES=.. X BIN=$(INGRES)/bin X DEMO=$(INGRES)/demo X LIB=$(INGRES)/lib X! DESTBIN=/usr/bin X! DESTLIB=/usr/lib X INSTALL=install X INSTALLQ=installq X SYSALL = creatdb ingres destroydb sysmod purge printr helpr restore equel X*** ./usr/src/sys/pdpuba/xp.c.old Sat Sep 28 16:35:39 2024 X--- ./usr/src/sys/pdpuba/xp.c Tue Dec 16 12:34:56 2025 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.7 (2.11BSD) 2024/9/29 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 2.8 (2.11BSD) 2025/12/16 X */ X X /* X*************** X*** 470,478 **** X xpaddr->hpcs1.c[0] = HP_IE | HP_PRESET | HP_GO; X xpaddr->hpof = HPOF_FMT22; X xd->xp_flags |= DKF_ONLINE; X- #ifdef XPDEBUG X- log(LOG_NOTICE, "xp%d preset done\n", unit); X- #endif X X /* X * XXX - The 'c' partition is used below to access the bad block area. This X--- 470,475 ---- X*** ./usr/src/sys/pdpuba/dhv.c.old Tue Aug 12 18:38:33 2025 X--- ./usr/src/sys/pdpuba/dhv.c Thu Jan 1 17:20:46 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.5 (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! * @(#)dhv.c 2.6 (2.11BSD) 2026/1/1 X */ X X /* X*************** X*** 519,525 **** X ubadr_t base; X X ui = &dhvinfo[dhv]; X! tp0 = &dhv_tty[dhv<<4]; X addr = (struct dhvdevice *)ui->ui_addr; X while ((t = addr->dhvcsrh) & DHV_CSH_TI) X { X--- 519,525 ---- X ubadr_t base; X X ui = &dhvinfo[dhv]; X! tp0 = &dhv_tty[dhv<<3]; X addr = (struct dhvdevice *)ui->ui_addr; X while ((t = addr->dhvcsrh) & DHV_CSH_TI) X { X*** ./usr/src/sys/conf/README.old Fri Feb 14 23:10:43 1997 X--- ./usr/src/sys/conf/README Fri Dec 26 21:20:30 2025 X*************** X*** 1,4 **** X! Updated 1997/2/14 X X This directory contains prototypes of the files necessary to remaking X the kernel. The kernel is not compiled or loaded in this directory, but in X--- 1,4 ---- X! README 1.1 (2.11BSD) 2025/12/18 X X This directory contains prototypes of the files necessary to remaking X the kernel. The kernel is not compiled or loaded in this directory, but in X*************** X*** 50,60 **** X standard. The few remaining options have been moved into the kernel Makefile X as "-Dxxx" flags to the compiler. If EXTERNALITIMES changes you will need X to recompile anything which looks at the kernel's incore inode table. X- X- The directory VAX.compile contains a C preprocessor that defines X- "pdp11" and a C compiler that knows where to find said preprocessor. If you X- compile and install VAX.compile/cpp as VAX.compile/CPP and VAX.compile/cc.c X- as VAX.compile/CC, then do "./config VAX", you can compile the entire kernel X- on a larger machine; obviously, this is more of a test for syntax/load errors X- than anything else. If you're interested, it usually took me about 5 minutes X- to compile the entire networking kernel on a VAX 8600. X--- 50,52 ---- X*** ./usr/src/sys/conf/Make.nsunix.old Fri Nov 28 18:27:26 1997 X--- ./usr/src/sys/conf/Make.nsunix Tue Nov 25 18:29:21 2025 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 GTE) 1997/11/28 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.11 (2.11BSD) 2025/11/25 X # X ######################################################### X # Networking, separate I/D kernel # X*************** X*** 172,179 **** X rm -f netnix netbind d.unix.s d.netnix.s X X install: X! install -c -o root -g kmem -m 744 unix ${DESTDIR}/unix X! install -c -o root -g kmem -m 744 netnix ${DESTDIR}/netnix X X depend: FRC X for i in ${SUB}; do \ X--- 172,179 ---- X rm -f netnix netbind d.unix.s d.netnix.s X X install: X! install -c -o root -g kmem -m 744 unix /unix X! install -c -o root -g kmem -m 744 netnix /netnix X X depend: FRC X for i in ${SUB}; do \ X*** ./usr/src/sys/conf/Make.sunix.old Sat Aug 4 12:42:03 2001 X--- ./usr/src/sys/conf/Make.sunix Tue Nov 25 18:29:42 2025 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.14 (2.11BSD) 2001/8/3 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.15 (2.11BSD) 2025/11/25 X # X ######################################################### X # Non-network, but separate I/D kernel # X*************** X*** 119,125 **** X rm -f unix core mklog *.o assym.h genassym checksys X X install: X! install -c -o root -g kmem -m 744 unix ${DESTDIR}/unix X X depend: FRC X for i in ${SUB}; do \ X--- 119,125 ---- X rm -f unix core mklog *.o assym.h genassym checksys X X install: X! install -c -o root -g kmem -m 744 unix /unix X X depend: FRC X for i in ${SUB}; do \ X*** ./usr/src/sys/conf/Make.unix.old Fri Nov 28 18:28:11 1997 X--- ./usr/src/sys/conf/Make.unix Tue Nov 25 18:30:08 2025 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.9 (2.11BSD GTE) 1997/11/28 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.10 (2.11BSD) 2025/11/25 X # X ######################################################### X # Non-networking, non-separate I/D kernel # X*************** X*** 121,127 **** X rm -f unix core mklog *.o assym.h genassym checksys X X install: X! install -c -o root -g kmem -m 744 unix ${DESTDIR}/unix X X depend: FRC X for i in ${SUB}; do \ X--- 121,127 ---- X rm -f unix core mklog *.o assym.h genassym checksys X X install: X! install -c -o root -g kmem -m 744 unix /unix X X depend: FRC X for i in ${SUB}; do \ X*** ./usr/src/sys/conf/checksys.c.old Sun Jul 25 23:19:13 1999 X--- ./usr/src/sys/conf/checksys.c Wed Dec 24 12:47:37 2025 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.6 (2.11BSD) 1998/12/5 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.7 (2.11BSD) 2025/12/24 X */ X X /* X*************** X*** 40,46 **** X #define N_NLOG 20 X #define N_NUMSYMS 21 X X! struct nlist nl[N_NUMSYMS]; X X char *names[] = { X "_end", /* 0 */ X--- 40,46 ---- 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 char *names[] = { X "_end", /* 0 */ X*** ./usr/src/sys/conf/newvers.sh.old Thu Mar 3 19:39:15 2016 X--- ./usr/src/sys/conf/newvers.sh Fri Dec 26 00:26:45 2025 X*************** X*** 4,10 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)newvers.sh 1.6 (2.11BSD GTE) 11/26/94 X # X if [ ! -r version ]; then echo 0 > version; fi X touch version X--- 4,10 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)newvers.sh 1.7 (2.11BSD) 2025/12/26 X # X if [ ! -r version ]; then echo 0 > version; fi X touch version X*** ./usr/src/sys/h/param.h.old Fri Oct 13 23:54:52 2000 X--- ./usr/src/sys/h/param.h Thu Jan 1 21:23:52 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.7 (2.11BSD) 2000/5/17 X */ X X! #define BSD 200005 /* 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/1/1 X */ X X! #define BSD 202601 /* System version (year and month) */ X X #include X #include /* for 'offsetof' */ X*** ./usr/src/sys/autoconfig/Makefile.old Sun Dec 22 17:58:54 1991 X--- ./usr/src/sys/autoconfig/Makefile Sat Nov 29 08:42:47 2025 X*************** X*** 1,7 **** X! # X! # Makefile for the system autoconfiguration program X! # X! DESTDIR= X X OBJS= attach.o do_config.o main.o read_dtab.o read_nlist.o uprobe.o \ X brauto.o cnauto.o dhauto.o dhuauto.o drauto.o dzauto.o \ X--- 1,4 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X OBJS= attach.o do_config.o main.o read_dtab.o read_nlist.o uprobe.o \ X brauto.o cnauto.o dhauto.o dhuauto.o drauto.o dzauto.o \ X*************** X*** 21,42 **** X ${CC} ${OBJS} -o $@ X X install: X! install -s -m 700 autoconfig ${DESTDIR}/etc X X! depend: X! ${CC} -M ${CFLAGS} ${SRCS} | \ X! sed -e ':loop' \ X! -e 's/\.\.\/[^ /]*\/\.\./../' \ X! -e 't loop' | \ X! awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' > makedep X! echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! ex - Makefile < eddep X! rm eddep makedep X X tags: FRC X rm -f tags X--- 18,27 ---- X ${CC} ${OBJS} -o $@ X X install: X! install -s -m 700 autoconfig /etc X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X X tags: FRC X rm -f tags X*************** X*** 46,51 **** X rm -f autoconfig *.o X X FRC: X- X- # DO NOT DELETE THIS LINE X- X--- 31,33 ---- X*** ./usr/src/sys/pdp/machparam.h.old Sun Jul 25 23:18:16 1999 X--- ./usr/src/sys/pdp/machparam.h Fri Dec 26 15:24:30 2025 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)machparam.h 1.4 (2.11BSD GTE) 1998/9/15 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! * @(#)machparam.h 1.5 (2.11BSD) 2025/12/26 X */ X X /* X*************** X*** 33,54 **** X u_long ntohl(), htonl(); X #endif X X! #define CHAR_BIT NBBY X! #define CHAR_MAX 0x7f X! #define CHAR_MIN 0x80 X! #define CLK_TCK 60 /* for times() */ X! #define INT_MAX 0x7fff X! #define INT_MIN 0x8000 X! #define LONG_MAX 0x7fffffff X! #define LONG_MIN 0x80000000 X! #define SCHAR_MAX 0x7f X! #define SCHAR_MIN 0x80 X! #define SHRT_MAX 0x7fff X! #define SHRT_MIN 0x8000 X! #define UCHAR_MAX 0xff X! #define UINT_MAX ((unsigned int)0xffff) X! #define ULONG_MAX 0x7fffffff X! #define USHRT_MAX ((unsigned short)0xffff) X X #define NBPG 512 /* bytes/page */ X #define PGOFSET (NBPG-1) /* byte offset into page */ X--- 33,39 ---- X u_long ntohl(), htonl(); X #endif X X! #include X X #define NBPG 512 /* bytes/page */ X #define PGOFSET (NBPG-1) /* byte offset into page */ X*** ./usr/src/sys/mdec/Makefile.old Thu Sep 1 06:23:09 2022 X--- ./usr/src/sys/mdec/Makefile Tue Nov 25 18:26:43 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 2.0 (2.11BSD) 2022/8/30 X # X ALL= bruboot hkuboot rauboot rkuboot rluboot si95uboot rx02uboot \ X rx01uboot X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 2.1 (2.11BSD) 2025/11/25 X # X ALL= bruboot hkuboot rauboot rkuboot rluboot si95uboot rx02uboot \ X rx01uboot X*************** X*** 41,44 **** X rm -f x.s a.out b.out ${ALL} ${MBDISK} X X install: all X! cp *boot ${DESTDIR}/mdec X--- 41,44 ---- X rm -f x.s a.out b.out ${ALL} ${MBDISK} X X install: all X! cp *boot /mdec X*** ./usr/src/Makefile.old Sat Jan 4 07:50:44 2020 X--- ./usr/src/Makefile Wed Dec 24 21:16:09 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.16 (2.11BSD) 2020/1/4 X # X # This makefile is designed to be run as: X # make build X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.17 (2.11BSD) 2025/12/24 X # X # This makefile is designed to be run as: X # make build X*************** X*** 19,49 **** X # The `make install' will then install everything. Note however X # that all the binaries will have been loaded with the old libraries. X # X- # C library options: passed to libc makefile. X- # See lib/libc/Makefile for explanation. X # NOTE: The method of hostname lookup (hosts file or nameserver) is no X # longer selected here. Make sure to edit lib/libc/Makefile to set X # HOSTLOOKUP X- # DFLMON must be either mon.o or gmon.o. X- # DEFS may include -DLIBC_SCCS, -DSYSLIBC_SCCS, both, or neither. X- # X- DFLMON=mon.o X- DEFS= X- LIBCDEFS= DFLMON=${DFLMON} DEFS="${DEFS}" X X- # global flags X- # SRC_MFLAGS are used on makes in command source directories, X- # but not in library or compiler directories that will be installed X- # for use in compiling everything else. X- # X- DESTDIR= X CFLAGS= -O X- SRC_MFLAGS = -k X X! # Programs that live in subdirectories, and have makefiles of their own. X # X! # 'share' has to be towards the front of the list because programs such as X! # lint(1) need their data files, etc installed first. X X LIBDIR= lib usr.lib X SRCDIR= share bin sbin etc games libexec local new ucb usr.bin usr.sbin man X--- 19,34 ---- X # The `make install' will then install everything. Note however X # that all the binaries will have been loaded with the old libraries. X # X # NOTE: The method of hostname lookup (hosts file or nameserver) is no X # longer selected here. Make sure to edit lib/libc/Makefile to set X # HOSTLOOKUP X X CFLAGS= -O X X! # Programs that live in subdirectories and have makefiles of their own. X # X! # 'share' has to be towards the front of the list because some programs X! # need their data files installed first. X X LIBDIR= lib usr.lib X SRCDIR= share bin sbin etc games libexec local new ucb usr.bin usr.sbin man X*************** X*** 51,94 **** X all: ${LIBDIR} ${SRCDIR} X X lib: FRC X! cd lib/libc; make ${MFLAGS} ${LIBCDEFS} X! cd lib; make ${MFLAGS} ccom cpp c2 X X usr.lib ${SRCDIR}: FRC X! cd $@; make ${MFLAGS} ${SRC_MFLAGS} X X build: buildlib ${SRCDIR} X X buildlib: FRC X @echo compiling libc.a X! cd lib/libc; make ${MFLAGS} ${LIBCDEFS} X @echo installing /lib/libc.a X! cd lib/libc; make ${MFLAGS} DESTDIR=${DESTDIR} install X @echo X @echo compiling C compiler X! cd lib; make ${MFLAGS} ccom cpp c2 X @echo installing C compiler X! cd lib/ccom; make ${MFLAGS} DESTDIR=${DESTDIR} install X! cd lib/cpp; make ${MFLAGS} DESTDIR=${DESTDIR} install X! cd lib/c2; make ${MFLAGS} DESTDIR=${DESTDIR} install X! cd lib; make ${MFLAGS} clean X @echo X @echo re-compiling libc.a X! cd lib/libc; make ${MFLAGS} ${LIBCDEFS} X @echo re-installing /lib/libc.a X! cd lib/libc; make ${MFLAGS} DESTDIR=${DESTDIR} install X @echo X @echo re-compiling C compiler X! cd lib; make ${MFLAGS} ccom cpp c2 X @echo re-installing C compiler X! cd lib/ccom; make ${MFLAGS} DESTDIR=${DESTDIR} install X! cd lib/cpp; make ${MFLAGS} DESTDIR=${DESTDIR} install X! cd lib/c2; make ${MFLAGS} DESTDIR=${DESTDIR} install X @echo X @echo compiling usr.lib X! cd usr.lib; make ${MFLAGS} ${SRC_MFLAGS} X @echo installing /usr/lib X! cd usr.lib; make ${MFLAGS} ${SRC_MFLAGS} DESTDIR=${DESTDIR} install X X FRC: X X--- 36,90 ---- X all: ${LIBDIR} ${SRCDIR} X X lib: FRC X! cd lib/libc; make X! cd lib; make ccom cpp c2 X X usr.lib ${SRCDIR}: FRC X! cd $@; make X X build: buildlib ${SRCDIR} X X+ # 'cpp' depends on libvmf so build libvmf after libc and before cpp X+ X buildlib: FRC X @echo compiling libc.a X! cd lib/libc; make X @echo installing /lib/libc.a X! cd lib/libc; make install X! @echo compiling usr.lib/libvmf.a X! cd usr.lib/libvmf; make X! @echo installing /usr/lib/libvmf.a X! cd usr.lib/libvmf; make install X! cd usr.lib/libvmf; make clean X @echo X @echo compiling C compiler X! cd lib; make ccom cpp c2 X @echo installing C compiler X! cd lib/ccom; make install X! cd lib/cpp; make install X! cd lib/c2; make install X! cd lib; make clean X @echo X @echo re-compiling libc.a X! cd lib/libc; make X @echo re-installing /lib/libc.a X! cd lib/libc; make install X @echo X @echo re-compiling C compiler X! cd lib; make ccom cpp c2 X @echo re-installing C compiler X! cd lib/ccom; make install X! cd lib/cpp; make install X! cd lib/c2; make install X! @echo installing libkern X! cd lib/libkern; make install X @echo X+ cd lib; make clean X @echo compiling usr.lib X! cd usr.lib; make X @echo installing /usr/lib X! cd usr.lib; make install X! cd usr.lib; make clean X X FRC: X X*************** X*** 95,115 **** X install: X -for i in ${LIBDIR} ${SRCDIR}; do \ X (cd $$i; \ X! make ${MFLAGS} ${SRC_MFLAGS} DESTDIR=${DESTDIR} install); \ X done X X installsrc: X -for i in ${SRCDIR}; do \ X (cd $$i; \ X! make ${MFLAGS} ${SRC_MFLAGS} DESTDIR=${DESTDIR} install); \ X done X X tags: X for i in lib usr.lib; do \ X! (cd $$i; make ${MFLAGS} TAGSFILE=../tags tags); \ X done X sort -u +0 -1 -o tags tags X X clean: X rm -f a.out core *.s *.o X! for i in ${LIBDIR} ${SRCDIR}; do (cd $$i; make -k ${MFLAGS} clean); done X--- 91,111 ---- X install: X -for i in ${LIBDIR} ${SRCDIR}; do \ X (cd $$i; \ X! make install); \ X done X X installsrc: X -for i in ${SRCDIR}; do \ X (cd $$i; \ X! make install); \ X done X X tags: X for i in lib usr.lib; do \ X! (cd $$i; make TAGSFILE=../tags tags); \ X done X sort -u +0 -1 -o tags tags X X clean: X rm -f a.out core *.s *.o X! for i in ${LIBDIR} ${SRCDIR}; do (cd $$i; make -k clean); done X*** ./usr/src/bin/adb/Makefile.old Sun Jul 25 23:10:45 1999 X--- ./usr/src/bin/adb/Makefile Thu Dec 25 22:44:34 2025 X*************** X*** 1,7 **** X! DESTDIR= X CFLAGS= -O -DNUM_SYMS_CACHE=50 X! LDFLAGS= X! SEPFLAG= -i X CFILES= access.c command.c expr.c findfn.c format.c input.c main.c message.c \ X opset.c output.c pcs.c print.c runpcs.c setup.c sym.c X X--- 1,7 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! # X CFLAGS= -O -DNUM_SYMS_CACHE=50 X! LDFLAGS= -i X CFILES= access.c command.c expr.c findfn.c format.c input.c main.c message.c \ X opset.c output.c pcs.c print.c runpcs.c setup.c sym.c X X*************** X*** 9,25 **** X opset.o output.o pcs.o print.o runpcs.o setup.o sym.o X X adb: ${OFILES} X! ${CC} ${SEPFLAG} ${LDFLAGS} -o adb ${OFILES} X X install: adb X! install -m 755 -s adb ${DESTDIR}/bin X X clean: X -rm -f adb ${OFILES} X- X- print: X- @ls -l | pr X- @pr -f Makefile *.h ${CFILES} X X lint: X lint -haxc -I. ${CFILES} X--- 9,21 ---- X opset.o output.o pcs.o print.o runpcs.o setup.o sym.o X X adb: ${OFILES} X! ${CC} ${LDFLAGS} -o adb ${OFILES} X X install: adb X! install -c -s -m 755 adb /bin X X clean: X -rm -f adb ${OFILES} X X lint: X lint -haxc -I. ${CFILES} X*** ./usr/src/bin/awk/Makefile.old Mon Jan 18 10:45:18 1993 X--- ./usr/src/bin/awk/Makefile Thu Dec 25 22:48:35 2025 X*************** X*** 1,8 **** X! # Makefile 4.3 86/05/15 X # X CFLAGS=-O X YFLAGS=-d X! SEPFLAG=-i X FILES=awk.lx.o b.o main.o token.o tran.o lib.o run.o parse.o proctab.o freeze.o X SOURCE=awk.def awk.g.y awk.lx.l b.c lib.c main.c parse.c \ X proc.c freeze.c\ X--- 1,8 ---- X! # Makefile 4.4 (2.11BSD) 2025/11/26 X # X CFLAGS=-O X YFLAGS=-d X! LDFLAGS=-i X FILES=awk.lx.o b.o main.o token.o tran.o lib.o run.o parse.o proctab.o freeze.o X SOURCE=awk.def awk.g.y awk.lx.l b.c lib.c main.c parse.c \ X proc.c freeze.c\ X*************** X*** 9,15 **** X run.c token.c tran.c X X awk: $(FILES) awk.g.o X! cc $(CFLAGS) $(SEPFLAG) awk.g.o $(FILES) -lm -o awk X X y.tab.h: awk.g.o X X--- 9,15 ---- X run.c token.c tran.c X X awk: $(FILES) awk.g.o X! cc $(CFLAGS) $(LDFLAGS) awk.g.o $(FILES) -lm -o awk X X y.tab.h: awk.g.o X X*************** X*** 21,43 **** X token.c: awk.h X ex - grind/$$i.t; done X- for i in *.c; do ${VGRIND} -t -h "C Shell" $$i >grind/$$i.t; done X- ${VGRIND} -t -x -h Index index >grind/index.t 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 X! ${RM} -f *.o X! ${RM} -rf vgrind X X tags: *.h sh*.c X ${CTAGS} -t *.h sh*.c X- X- sh.o: sh.h sh.local.h sh.char.h X- sh.char.o: sh.char.h X- sh.dir.o: sh.h sh.local.h sh.dir.h X- sh.dol.o: sh.h sh.local.h sh.char.h X- sh.err.o: sh.h sh.local.h sh.char.h X- sh.exec.o: sh.h sh.local.h sh.char.h X- sh.exec2.o: sh.h sh.local.h sh.char.h X- sh.exp.o: sh.h sh.local.h sh.char.h X- sh.file.o: sh.h sh.local.h sh.char.h X- sh.func.o: sh.h sh.local.h sh.char.h X- sh.glob.o: sh.h sh.local.h sh.char.h X- sh.hist.o: sh.h sh.local.h sh.char.h X- sh.init.o: sh.local.h X- sh.lex.o: sh.h sh.local.h sh.char.h X- sh.misc.o: sh.h sh.local.h sh.char.h X- sh.parse.o: sh.h sh.local.h sh.char.h X- sh.print.o: sh.h sh.local.h sh.char.h X- sh.proc.o: sh.h sh.local.h sh.dir.h sh.proc.h sh.char.h X- sh.sem.o: sh.h sh.local.h sh.proc.h sh.char.h X- sh.set.o: sh.h sh.local.h sh.char.h X- sh.time.o: sh.h sh.local.h sh.char.h X--- 57,67 ---- 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 X tags: *.h sh*.c X ${CTAGS} -t *.h sh*.c X*** ./usr/src/bin/sed/Makefile.old Sat Feb 14 05:08:30 1987 X--- ./usr/src/bin/sed/Makefile Sat Nov 29 06:26:48 2025 X*************** X*** 1,15 **** X! # Makefile 4.1 85/04/05 X # X CFLAGS=-O -w X! SEPFLAG=-i X X sed: sed0.o sed1.o X! cc ${SEPFLAG} -o sed *.o X X sed0.o: sed0.c sed.h X sed1.o: sed1.c sed.h X X install: sed X! install -s sed $(DESTDIR)/bin X clean: X rm -f *.o sed X--- 1,15 ---- X! # Makefile 4.2 (2.11BSD) 2025/11/29 X # X CFLAGS=-O -w X! LDFLAGS=-i X X sed: sed0.o sed1.o X! cc ${LDFLAGS} -o sed *.o X X sed0.o: sed0.c sed.h X sed1.o: sed1.c sed.h X X install: sed X! install -c -s -m 755 -o root sed /bin X clean: X rm -f *.o sed X*** ./usr/src/bin/make/Makefile.old Thu Jan 6 22:22:23 1994 X--- ./usr/src/bin/make/Makefile Wed Nov 26 08:23:05 2025 X*************** X*** 1,5 **** X! # Description file for the Make command X! # Makefile 4.5 94/1/3 X X OBJECTS=ident.o main.o doname.o misc.o files.o dosys.o gram.o X LIBES= X--- 1,4 ---- X! # @(#)Makefile 4.6 (2.11BSD) 2025/11/26 X X OBJECTS=ident.o main.o doname.o misc.o files.o dosys.o gram.o X LIBES= X*************** X*** 6,12 **** X LINT= lint -ps X XSTR= /usr/ucb/xstr X CFLAGS= -O -I. -I../ar X! SEPFLAG= -i X X # Special massaging of C files for sharing of strings X .c.o: X--- 5,11 ---- X LINT= lint -ps X XSTR= /usr/ucb/xstr X CFLAGS= -O -I. -I../ar X! LDFLAGS= -i X X # Special massaging of C files for sharing of strings X .c.o: X*************** X*** 18,24 **** X all: make X X make: ${OBJECTS} strings.o X! ${CC} -o make ${CFLAGS} ${SEPFLAG} ${OBJECTS} strings.o ${LIBES} X X ${OBJECTS}: defs X X--- 17,23 ---- X all: make X X make: ${OBJECTS} strings.o X! ${CC} -o make ${LDFLAGS} ${OBJECTS} strings.o ${LIBES} X X ${OBJECTS}: defs X X*************** X*** 26,32 **** X -rm -f *.o gram.c make a.out errs x.c xs.c strings X X install: make X! install -s make ${DESTDIR}/bin/make X X lint : dosys.c doname.c files.c main.c misc.c ident.c gram.c X ${LINT} dosys.c doname.c files.c main.c misc.c ident.c gram.c X--- 25,31 ---- X -rm -f *.o gram.c make a.out errs x.c xs.c strings X X install: make X! install -c -s -m 755 -o root make /bin/make X X lint : dosys.c doname.c files.c main.c misc.c ident.c gram.c X ${LINT} dosys.c doname.c files.c main.c misc.c ident.c gram.c X*** ./usr/src/bin/diff/Makefile.old Mon Oct 21 23:29:46 1996 X--- ./usr/src/bin/diff/Makefile Fri Dec 26 21:01:59 2025 X*************** X*** 1,11 **** X! # @(#)Makefile 4.1.1 1996/10/21 X # X DIFF= /bin/diff X DIFFH= /usr/libexec/diffh X PR= /bin/pr X CFLAGS= -O -DDIFF='"${DIFF}"' -DDIFFH='"${DIFFH}"' -DPR='"${PR}"' X! SEPFLAG=-i X! DESTDIR= X X SRCS= diff.c diffdir.c diffreg.c X HDRS= diff.h X--- 1,10 ---- X! # @(#)Makefile 4.2 (2.11BSD) 2025/11/25 X # X DIFF= /bin/diff X DIFFH= /usr/libexec/diffh X PR= /bin/pr X CFLAGS= -O -DDIFF='"${DIFF}"' -DDIFFH='"${DIFFH}"' -DPR='"${PR}"' X! LDFLAGS=-i X X SRCS= diff.c diffdir.c diffreg.c X HDRS= diff.h X*************** X*** 14,27 **** X all: diff diffh X X diff: ${OBJS} X! cc ${CFLAGS} -o diff ${OBJS} ${SEPFLAG} ${LDFLAGS} X X diffh: diffh.o X! cc -o diffh diffh.o ${SEPFLAG} ${LDFLAGS} X X clean: X rm -f diff diffh ${OBJS} diffh.o X X install: all X! install -s diff ${DESTDIR}/bin/diff X! install -s diffh ${DESTDIR}/usr/libexec/diffh X--- 13,26 ---- X all: diff diffh X X diff: ${OBJS} X! cc ${CFLAGS} -o diff ${OBJS} ${LDFLAGS} X X diffh: diffh.o X! cc -o diffh diffh.o ${LDFLAGS} X X clean: X rm -f diff diffh ${OBJS} diffh.o X X install: all X! install -c -s -m 755 -o root -g staff diff /bin/diff X! install -c -s -m 755 -o root -g staff diffh /usr/libexec/diffh X*** ./usr/src/bin/as/Makefile.old Wed Sep 1 21:27:05 1993 X--- ./usr/src/bin/as/Makefile Wed Nov 26 07:59:20 2025 X*************** X*** 1,17 **** X! # X! # makefile for as X! # X X AS= /bin/as X! SEPFLAG= -i -X X X all: as X X as: as0.o as2.o X! ld ${SEPFLAG} -o $@ /lib/crt0.o as0.o as2.o -lc X X install: all X! install -s as ${DESTDIR}/bin X X clean: X rm -f *.o a.out as core errs X--- 1,15 ---- X! # @(#)Makefile 2.0 (2.11BSD) 2025/11/26 X X AS= /bin/as X! LDFLAGS= -i -X X X all: as X X as: as0.o as2.o X! ld ${LDFLAGS} -o $@ /lib/crt0.o as0.o as2.o -lc X X install: all X! install -c -s -m 755 -o root as /bin X X clean: X rm -f *.o a.out as core errs X*** ./usr/src/bin/stty/Makefile.old Thu Mar 27 21:33:20 1997 X--- ./usr/src/bin/stty/Makefile Mon Dec 8 12:51:15 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1997/3/27 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1997/3/27 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= stty.c X OBJS= stty.o X MAN= stty.0 X--- 1,10 ---- X # X # Public Domain. 1997/3/27 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/26 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= stty.c X OBJS= stty.o X MAN= stty.0 X*************** X*** 13,19 **** X all: stty stty.0 X X stty: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X stty.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: stty stty.0 X X stty: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X stty.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: stty X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 stty ${DESTDIR}/bin/stty X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: stty X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 755 stty /bin/stty X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/bin/ld/Makefile.old Sat Jan 24 23:41:21 1998 X--- ./usr/src/bin/ld/Makefile Mon Dec 8 12:47:03 2025 X*************** X*** 1,4 **** X! # Version 2.2 January 24, 1998 X X SRCS= ld.c X OBJS= ld.o X--- 1,4 ---- X! # @(#)Makefile 2.3 (2.11BSD) 2025/11/26 X X SRCS= ld.c X OBJS= ld.o X*************** X*** 12,19 **** X cc -i -o ld ${OBJS} -lvmf X X install: all X! install -c -s -o bin -g bin -m 755 ld ${DESTDIR}/bin/ld X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X X lint: X lint -havx -I../ar ${SRCS} X--- 12,19 ---- X cc -i -o ld ${OBJS} -lvmf X X install: all X! install -c -s -o root -g staff -m 755 ld /bin/ld X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X X lint: X lint -havx -I../ar ${SRCS} X*** ./usr/src/bin/login/Makefile.old Fri Mar 21 18:53:02 2025 X--- ./usr/src/bin/login/Makefile Mon Dec 8 12:53:27 2025 X*************** X*** 14,23 **** X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.3.2 (2.11BSD) 1996/12/1 X # X X! CFLAGS= -O -i X SRCS= login.c X OBJS= login.o gettytab.o subr.o init.o X MAN= X--- 14,23 ---- X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.3.3 (2.11BSD) 2025/11/26 X # X X! CFLAGS= -O X SRCS= login.c X OBJS= login.o gettytab.o subr.o init.o X MAN= X*************** X*** 26,32 **** X all: login X X login: ${OBJS} X! ${CC} -o $@ ${CFLAGS} ${OBJS} -lutil X X ${OBJS}: ../../libexec/getty/gettytab.h X X--- 26,32 ---- X all: login X X login: ${OBJS} X! ${CC} -i -o $@ ${CFLAGS} ${OBJS} -lutil X X ${OBJS}: ../../libexec/getty/gettytab.h X X*************** X*** 40,46 **** X mkdep ${CFLAGS} ${SRCS} X X install: login X! install -s -o root -g bin -m 4755 login ${DESTDIR}/bin/login X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X--- 40,46 ---- X mkdep ${CFLAGS} ${SRCS} X X install: login X! install -c -s -o root -g staff -m 4755 login /bin/login X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X*** ./usr/src/bin/ar/Makefile.old Fri Dec 31 21:43:26 1993 X--- ./usr/src/bin/ar/Makefile Mon Dec 8 13:39:02 2025 X*************** X*** 1,7 **** X! # @(#)Makefile 5.8 (Berkeley) 3/10/91 X X CFLAGS= -I. -O X! LFLAGS= -z X X SRCS= append.c ar.c archive.c contents.c delete.c extract.c misc.c \ X move.c print.c replace.c X--- 1,7 ---- X! # @(#)Makefile 5.9 (2.11BSD) 2025/11/25 X X CFLAGS= -I. -O X! LDFLAGS= -i X X SRCS= append.c ar.c archive.c contents.c delete.c extract.c misc.c \ X move.c print.c replace.c X*************** X*** 11,22 **** X OBJS= append.o ar.o archive.o contents.o delete.o extract.o misc.o \ X move.o print.o replace.o X X! EXTRAOBJ= strmode.o # strftime.o ctime.o X X all: ar ar.1.0 ar.5.0 X X ar: ${OBJS} ${EXTRAOBJ} X! cc ${LFLAGS} -o ar ${OBJS} ${EXTRAOBJ} X X ar.1.0: ar.1 X nroff -man ar.1 > ar.1.0 X--- 11,22 ---- X OBJS= append.o ar.o archive.o contents.o delete.o extract.o misc.o \ X move.o print.o replace.o X X! EXTRAOBJ= strmode.o X X all: ar ar.1.0 ar.5.0 X X ar: ${OBJS} ${EXTRAOBJ} X! cc ${LDFLAGS} -o ar ${OBJS} ${EXTRAOBJ} X X ar.1.0: ar.1 X nroff -man ar.1 > ar.1.0 X*************** X*** 25,33 **** X nroff -man ar.5.5 > ar.5.0 X X install: X! install -s -m 755 ar ${DESTDIR}/bin/ar X! install -c -o bin -g bin -m 444 ar.1.0 ${DESTDIR}/usr/man/cat1/ar.0 X! install -c -o bin -g bin -m 444 ar.5.0 ${DESTDIR}/usr/man/cat5/ar.0 X X lint: X lint -havx -I. ${SRCS} ${EXTRASRCS} X--- 25,33 ---- X nroff -man ar.5.5 > ar.5.0 X X install: X! install -c -s -m 755 -o root ar /bin/ar X! install -c -o root -g staff -m 444 ar.1.0 /usr/man/cat1/ar.0 X! install -c -o root -g staff -m 444 ar.5.0 /usr/man/cat5/ar.0 X X lint: X lint -havx -I. ${SRCS} ${EXTRASRCS} X*** ./usr/src/bin/passwd/Makefile.old Sun Dec 1 16:46:20 1996 X--- ./usr/src/bin/passwd/Makefile Mon Dec 8 12:52:41 2025 X*************** X*** 14,23 **** 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) 1996/12/1 X # X CFLAGS= -I. -O X! SEPFLAG= -i X SRCS= passwd.c X OBJS= passwd.o X MAN= passwd.0 X--- 14,23 ---- 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) 2025/11/26 X # X CFLAGS= -I. -O X! LDFLAGS= -i X SRCS= passwd.c X OBJS= passwd.o X MAN= passwd.0 X*************** X*** 26,32 **** X all: passwd ${MAN} X X passwd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X ${MAN}: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 26,32 ---- X all: passwd ${MAN} X X passwd: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X ${MAN}: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 41,48 **** X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} passwd X! install -s -o root -g bin -m 4755 passwd ${DESTDIR}/bin/passwd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X--- 41,48 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} passwd X! install -c -s -o root -g staff -m 4755 passwd /bin/passwd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X*** ./usr/src/bin/disklabel/Makefile.old Tue Apr 11 01:03:31 1995 X--- ./usr/src/bin/disklabel/Makefile Thu Dec 25 22:57:59 2025 X*************** X*** 1,22 **** X! # @(#)Makefile 1.0 (2.11BSD) 1995/04/10 X X- DESTDIR= X CFLAGS=-O X! SEPFLAG=-i X MANDIR=/usr/man/cat X X all: disklabel disklabel.5.0 disklabel.0 X X disklabel: disklabel.o X! cc ${CFLAGS} ${SEPFLAG} -o $@ $@.o -lutil X X install: all X! install -s -c -o bin -g operator -m 2550 disklabel \ X! ${DESTDIR}/bin/disklabel X! install -c -o bin -g bin -m 444 disklabel.5.0 \ X! ${DESTDIR}${MANDIR}5/disklabel.0 X! install -c -o bin -g bin -m 444 disklabel.0 \ X! ${DESTDIR}/${MANDIR}8/disklabel.0 X X clean: X rm -f *.o *.0 *.core disklabel X--- 1,21 ---- X! # @(#)Makefile 1.1 (2.11BSD) 2025/12/25 X X CFLAGS=-O X! LDFLAGS=-i X MANDIR=/usr/man/cat X X all: disklabel disklabel.5.0 disklabel.0 X X disklabel: disklabel.o X! cc ${CFLAGS} ${LDFLAGS} -o $@ $@.o -lutil X X install: all X! install -s -c -o root -g operator -m 2755 disklabel \ X! /bin/disklabel X! install -c -o root -g staff -m 444 disklabel.5.0 \ X! ${MANDIR}5/disklabel.0 X! install -c -o root -g staff -m 444 disklabel.0 \ X! ${MANDIR}8/disklabel.0 X X clean: X rm -f *.o *.0 *.core disklabel X*** ./usr/src/bin/disklabel/disklabel.c.old Sun Feb 13 12:45:45 2000 X--- ./usr/src/bin/disklabel/disklabel.c Sat Dec 20 22:09:32 2025 X*************** X*** 39,46 **** 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.3 (2.11BSD) 1999/10/25"; X! /* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */ X #endif X X #include X--- 39,45 ---- 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*************** X*** 56,61 **** X--- 55,61 ---- X #include X #include X #include X+ #include X #include "pathnames.h" X X /* X*************** X*** 110,115 **** X--- 110,117 ---- X #define OPTIONS "BNRWb:erw" X #endif X X+ int parse_sec_cyl(struct disklabel *, char *, long *); X+ X main(argc, argv) X int argc; X char *argv[]; X*************** X*** 181,187 **** X X dkname = argv[0]; X if (dkname[0] != '/') { X! (void)sprintf(np, "%s/r%s%c", _PATH_DEV, dkname, RAWPARTITION); X specname = np; X np += strlen(specname) + 1; X } else X--- 183,189 ---- X X dkname = argv[0]; X if (dkname[0] != '/') { X! (void)sprintf(np, "%sr%s%c", _PATH_DEV, dkname, RAWPARTITION); X specname = np; X np += strlen(specname) + 1; X } else X*************** X*** 188,194 **** X specname = dkname; X f = open(specname, op == READ ? O_RDONLY : O_RDWR); X if (f < 0 && errno == ENOENT && dkname[0] != '/') { X! (void)sprintf(specname, "%s/r%s", _PATH_DEV, dkname); X np = namebuf + strlen(specname) + 1; X f = open(specname, op == READ ? O_RDONLY : O_RDWR); X } X--- 190,196 ---- X specname = dkname; X f = open(specname, op == READ ? O_RDONLY : O_RDWR); X if (f < 0 && errno == ENOENT && dkname[0] != '/') { X! (void)sprintf(specname, "%sr%s", _PATH_DEV, dkname); X np = namebuf + strlen(specname) + 1; X f = open(specname, op == READ ? O_RDONLY : O_RDWR); X } X*************** X*** 280,286 **** X register struct disklabel *lp; X { X register struct disklabel *dp; X- char *strcpy(); X X dp = getdiskbyname(type); X if (dp == NULL) { X--- 282,287 ---- X*************** X*** 620,626 **** X register int c; X struct disklabel label; X FILE *fd; X- char *mktemp(); X X (void) mktemp(tmpfil); X fd = fopen(tmpfil, "w"); X--- 621,626 ---- X*************** X*** 739,745 **** X FILE *f; X register struct disklabel *lp; X { X! register char **cpp, *cp; X register struct partition *pp; X char *tp, *s, line[BUFSIZ]; X int lineno = 0, errors = 0; X--- 739,746 ---- X FILE *f; X register struct disklabel *lp; X { X! char **cpp; X! register char *cp; X register struct partition *pp; X char *tp, *s, line[BUFSIZ]; X int lineno = 0, errors = 0; X*************** X*** 951,965 **** X continue; X } X pp = &lp->d_partitions[part]; X! #define NXTNUM(n) { \ X cp = tp, tp = word(cp); \ X if (tp == NULL) \ X tp = cp; \ X- (n) = atol(cp); \ X } X X! NXTNUM(v); X! if (v < 0) { X fprintf(stderr, X "line %d: %s: bad partition size\n", X lineno, cp); X--- 952,965 ---- X continue; X } X pp = &lp->d_partitions[part]; X! #define NXTNUM() { \ X cp = tp, tp = word(cp); \ X if (tp == NULL) \ X tp = cp; \ X } X X! NXTNUM(); X! if (parse_sec_cyl(lp, cp, &v) < 0) { X fprintf(stderr, X "line %d: %s: bad partition size\n", X lineno, cp); X*************** X*** 966,973 **** X errors++; X } else X pp->p_size = v; X! NXTNUM(v); X! if (v < 0) { X fprintf(stderr, X "line %d: %s: bad partition offset\n", X lineno, cp); X--- 966,973 ---- X errors++; X } else X pp->p_size = v; X! NXTNUM(); X! if (parse_sec_cyl(lp, cp, &v) < 0) { X fprintf(stderr, X "line %d: %s: bad partition offset\n", X lineno, cp); X*************** X*** 997,1006 **** X X case FS_UNUSED: /* XXX */ X case FS_V71K: X! NXTNUM(pp->p_fsize); X if (pp->p_fsize == 0) X break; X! NXTNUM(v); X pp->p_frag = v / pp->p_fsize; X break; X X--- 997,1008 ---- X X case FS_UNUSED: /* XXX */ X case FS_V71K: X! NXTNUM(); X! pp->p_fsize = atol(cp); X if (pp->p_fsize == 0) X break; X! NXTNUM(); X! v = atol(cp); X pp->p_frag = v / pp->p_fsize; X break; X X*************** X*** 1015,1021 **** X next: X ; X } X! errors += checklabel(lp); X return (errors == 0); X } X X--- 1017,1030 ---- X next: X ; X } X! X! /* X! * If error(s) have already been logged then don't call checklabel on a bogus X! * label. The meaningful error message has already been printed and checklabel X! * will emit additional messages based on an incomplete or zero filled label. X! */ X! if (errors == 0) X! errors = checklabel(lp); X return (errors == 0); X } X X*************** X*** 1141,1143 **** X--- 1150,1264 ---- X "(to write disable/enable label)"); X exit(1); X } X+ X+ /* X+ * Sizes and offsets can be specified in four ways: X+ * X+ * Number of sectors: 32678 X+ * Number of cylinders: 110c X+ * Number of cylinders and sectors: 29c14s X+ * Number of sectors and cylinders: 22s134c X+ * X+ * The trailing 's' or 'c' can be left off in the last two cases. X+ * X+ * The geometry section of the label must have been filled in previously. X+ * A warning is issued if the cylinder or cylinder+sector forms are used X+ * and the necessary geometry information is not present. X+ */ X+ X+ int parse_sec_cyl(lp, line, numsec) X+ struct disklabel *lp; X+ char *line; X+ long *numsec; X+ { X+ register char *cp; X+ int error = 0; X+ long tmp, tmpcyl = 0, tmpsec = 0; X+ X+ for (tmp = 0, cp = line; *cp; cp++) X+ { X+ if (*cp >= '0' && *cp <= '9') X+ { X+ tmp *= 10; X+ tmp += (*cp - '0'); X+ } X+ else if (*cp == 'c') X+ { X+ if (tmpcyl) X+ { X+ fputs("duplicate 'c'ylinder used\n", stderr); X+ error = 1; X+ break; X+ } X+ tmpcyl = tmp; X+ tmp = 0; X+ } X+ else if (*cp == 's') X+ { X+ if (tmpsec) X+ { X+ fputs("duplicate 's'ector used\n", stderr); X+ error = 1; X+ break; X+ } X+ tmpsec = tmp; X+ tmp = 0; X+ } X+ else X+ { X+ fprintf(stderr, "illegal character '%c'\n", *cp); X+ error = 1; X+ break; X+ } X+ } X+ if (error) X+ return(-1); X+ X+ /* X+ * At this point if either a 's' or 'c' was encountered in the string then X+ * one or both of 'tmpsec' and 'tmpcyl' will be non-zero. If the trailing X+ * character was omitted we need to figure out which variable gets the X+ * contents left in 'tmp' when the terminating null character was seen. This X+ * is because "15c8" and "18s3" are both valid and indicate "15 cylinders + X+ * 8 sectors" and "18 sectors + 3 cylinders" respectively. X+ * X+ * If neither 'tmpsec' or 'tmpcyl' are nonzero then we have a simple sector X+ * number in 'tmp'. X+ */ X+ if (tmpsec || tmpcyl) X+ { X+ if (tmpsec) X+ tmpcyl = tmp; X+ else X+ tmpsec = tmp; X+ } X+ else X+ { X+ tmpsec = tmp; X+ tmpcyl = 0; X+ } X+ /* X+ * It is an error condition to specify a number of cylinders and not X+ * have previously defined the geometry - it is impossible to calculate X+ * the number of sectors in the partition without geometry. X+ */ X+ if (tmpcyl && lp->d_secpercyl == 0) X+ { X+ fputs("# cylinders given but no geometry defined!\n", stderr); X+ return(-1); X+ } X+ X+ /* X+ * Sanity check to make sure erroneous number of cylinders is not believed X+ * due to truncation (number of cylinders is really a 'u_int') X+ */ X+ X+ if (tmpcyl > 65535L) X+ { X+ fprintf(stderr, "Number of cylinders (%D) is ridiculous!\n", X+ tmpcyl); X+ return(-1); X+ } X+ *numsec = (lp->d_secpercyl * tmpcyl) + tmpsec; X+ return(0); X+ } X*** ./usr/src/bin/disklabel/disklabel.8.old Tue Aug 30 08:40:55 2022 X--- ./usr/src/bin/disklabel/disklabel.8 Sat Dec 20 22:13:07 2025 X*************** X*** 32,40 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)disklabel.8 8.3 (2.11BSD) 2022/8/30 X .\" X! .TH DISKLABEL 8 "August 30, 2022" X .UC 2 X .SH NAME X disklabel \- read and write disk pack label X--- 32,40 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)disklabel.8 8.4 (2.11BSD) 2025/12/11 X .\" X! .TH DISKLABEL 8 "December 11, 2025" X .UC 2 X .SH NAME X disklabel \- read and write disk pack label X*************** X*** 322,327 **** X--- 322,343 ---- X installed both in-core and on-disk. X The bootstrap code comes from the file X .IR /mdec/newboot . X+ .SH NOTES X+ \fBsize\fP and \fBoffset\fP values of a partition may be specified in four X+ ways: X+ .sp X+ * Number of sectors: 32678 X+ * Number of cylinders: 110c X+ * Number of cylinders and sectors: 29c14s X+ * Number of sectors and cylinders: 22s134c X+ * X+ * The trailing 's' or 'c' can be left off in the last X+ * two cases. X+ * X+ * The geometry section of the label must have been X+ * filled in previously. A warning is issued if the X+ * cylinder or cylinder+sector forms are used and the X+ * necessary geometry information is not present. X .SH SEE ALSO X disktab(5), disklabel(5) X .SH DIAGNOSTICS X*** ./usr/src/bin/ping/Makefile.old Sat Nov 16 22:47:19 1996 X--- ./usr/src/bin/ping/Makefile Thu Dec 25 23:03:31 2025 X*************** X*** 1,9 **** X # X! # @(#)Makefile 1.1 (2.11BSD) 1996/1/28 X # X X CFLAGS= -O X! SEPFLAG= -i X SRCS= ping.c X OBJS= ping.o X MAN= ping.0 X--- 1,9 ---- X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/26 X # X X CFLAGS= -O X! LDFLAGS= -i X SRCS= ping.c X OBJS= ping.o X MAN= ping.0 X*************** X*** 12,18 **** X all: ping ${MAN} X X ping: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS} X X ping.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 12,18 ---- X all: ping ${MAN} X X ping: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${CFLAGS} ${OBJS} X X ping.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 27,34 **** X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} ping X! install -s -o root -g bin -m 4751 ping ${DESTDIR}/bin X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X X lint: ${SRCS} X lint -haxc ${SRCS} X--- 27,34 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} ping X! install -c -s -o root -g staff -m 4751 ping /bin X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X X lint: ${SRCS} X lint -haxc ${SRCS} X*** ./usr/src/bin/tcsh/Makefile.old Mon Oct 3 16:33:17 2022 X--- ./usr/src/bin/tcsh/Makefile Thu Dec 25 23:19:44 2025 X*************** X*** 1,4 **** X! # Makefile 4.5 2022/10/2 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.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*************** X*** 27,33 **** X CTAGS= /usr/ucb/ctags X XSTR= /usr/ucb/xstr X MKSTR= ./mkprstr X- DESTDIR= X BINDIR=/bin X CATSECT=0 X MANSECT=1 X--- 27,32 ---- X*************** X*** 63,80 **** X tc.prompt.o tc.sched.o tc.sig.o tc.str.o \ X tc.vers.o tc.who.o X X- PVSRCS= Makefile X- AVSRCS= Fixes MAKEDIFFS NewThings README FAQ WishList \ X- config_f.h eight-bit.me glob.3 patchlevel.h \ X- pathnames.h tcsh.man X- VHSRCS=${PVSRCS} ${AVSRCS} X- X- CONFSRCS=config/config.* X- X- ALLSRCS= ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS} X- DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS} X- X- X # STRINGS must be last, to keep in sync with mkstr and xstr ouput X OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS} ${ALLOC} ${ERROBJ} ${STRINGS} X X--- 62,67 ---- X*************** X*** 106,112 **** X sh.exp.o \ X sh.hist.o \ X sh.init.o \ X- sh.misc.o \ X sh.print.o \ X sh.time.o \ X tc.const.o \ X--- 93,98 ---- X*************** X*** 136,141 **** X--- 122,128 ---- X X OV3= \ X sh.func.o \ X+ sh.misc.o \ X tw.parse.o X X OV4= \ X*************** X*** 222,231 **** X X # tcsh tcsh.${CATSECT} X install: all X! -mv -f ${DESTDIR}${BINDIR}/tcsh ${DESTDIR}${BINDIR}/tcsh.old X! install -s -m 555 -o bin -g bin tcsh ${DESTDIR}${BINDIR}/tcsh X! install -c -m 444 -o bin -g bin ${STRINGFILE} ${DESTDIR}${STRINGDIR} X! install -c -m 444 -o bin -g bin tcsh.${CATSECT} ${DESTDIR}${DESTCAT} X X tcsh.${CATSECT}: tcsh.man X /usr/man/manroff tcsh.man > tcsh.${CATSECT} X--- 209,218 ---- 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*** ./usr/src/bin/test/Makefile.old Sun Oct 27 23:00:46 1996 X--- ./usr/src/bin/test/Makefile Mon Dec 8 12:42:57 2025 X*************** X*** 1,11 **** X! # Makefile for test X # X # 1.1 Robin Birch 11 march 1995 X # 1.2 Steven Schultz 27 october 1996 X! # X! # Version 1.2 X! # X! SEPFLAG= -i X CFLAGS = -O X X SRCS = test.c operators.c X--- 1,10 ---- X! # @(#)Makefile 1.3 (2.11BSD) 2025/11/25 X # X # 1.1 Robin Birch 11 march 1995 X # 1.2 Steven Schultz 27 october 1996 X! # 1.3 Steven Schulz 25 november 2025 X! X! LDFLAGS= -i X CFLAGS = -O X X SRCS = test.c operators.c X*************** X*** 14,29 **** X all: test test.0 X X test: ${OBJS} X! ${CC} ${SEPFLAG} -o test ${OBJS} X X test.0: test.1 X /usr/man/manroff test.1 > test.0 X X install: all X! install -s -m 755 -g bin -o bin test ${DESTDIR}/bin X! rm -f ${DESTDIR}/bin/[ X! ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[ X! install -c -m 444 -g bin -o bin test.0 ${DESTDIR}/usr/man/cat1 X X clean: X rm -f *.o test *.core test.0 X--- 13,28 ---- X all: test test.0 X X test: ${OBJS} X! ${CC} ${LDFLAGS} -o test ${OBJS} X X test.0: test.1 X /usr/man/manroff test.1 > test.0 X X install: all X! install -s -m 755 -o root -g staff test /bin X! rm -f /bin/[ X! ln /bin/test /bin/[ X! install -c -m 444 -o root -g staff test.0 /usr/man/cat1 X X clean: X rm -f *.o test *.core test.0 X*** ./usr/src/bin/chpass/Makefile.old Sun Dec 1 16:44:12 1996 X--- ./usr/src/bin/chpass/Makefile Mon Dec 8 12:54:19 2025 X*************** X*** 14,23 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 1996/12/1 X # X CFLAGS= -I. -O X! SEPFLAG= -i X SRCS= chpass.c field.c util.c X OBJS= chpass.o field.o util.o X MAN= chpass.0 X--- 14,23 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.1.3 (2.11BSD) 2025/11/26 X # X CFLAGS= -I. -O X! LDFLAGS= -i X SRCS= chpass.c field.c util.c X OBJS= chpass.o field.o util.o X MAN= chpass.0 X*************** X*** 26,54 **** X all: chpass ${MAN} X X chpass: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X chpass.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X X clean: X! rm -f ${OBJS} ${MAN} core chpass X X- cleandir: clean X- rm -f tags .depend X- X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} chpass X! install -s -o root -g bin -m 4755 chpass ${DESTDIR}/bin/chpass X! rm -f ${DESTDIR}/bin/chfn; ln ${DESTDIR}/bin/chpass ${DESTDIR}/bin/chfn X! rm -f ${DESTDIR}/bin/chsh; ln ${DESTDIR}/bin/chpass ${DESTDIR}/bin/chsh X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! rm -f ${DESTDIR}/usr/man/cat1/chfn.0 X! rm -f ${DESTDIR}/usr/man/cat1/chsh.0 X! -ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chfn.0 X! -ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chsh.0 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X--- 26,51 ---- X all: chpass ${MAN} X X chpass: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X chpass.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X X clean: X! rm -f ${OBJS} ${MAN} core chpass tags X X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} chpass X! install -c -s -o root -g staff -m 4755 chpass /bin/chpass X! rm -f /bin/chfn; ln /bin/chpass /bin/chfn X! rm -f /bin/chsh; ln /bin/chpass /bin/chsh X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! rm -f /usr/man/cat1/chfn.0 X! rm -f /usr/man/cat1/chsh.0 X! -ln /usr/man/cat1/chpass.0 /usr/man/cat1/chfn.0 X! -ln /usr/man/cat1/chpass.0 /usr/man/cat1/chsh.0 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X*** ./usr/src/bin/mv.c.old Fri Jan 5 23:03:19 1996 X--- ./usr/src/bin/mv.c Sat Dec 27 09:02:17 2025 X*************** X*** 9,16 **** 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.1 (2.11BSD) 1996/1/5"; X! #endif not lint X X /* X * mv file1 file2 X--- 9,16 ---- 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 * mv file1 file2 X*************** X*** 33,39 **** X #define ISDEV(st) \ X (((st).st_mode&S_IFMT) == S_IFCHR || ((st).st_mode&S_IFMT) == S_IFBLK) X X- char *sprintf(); X char *dname(); X struct stat s1, s2; X int iflag = 0; /* interactive mode */ X--- 33,38 ---- X*************** X*** 250,256 **** X X /*VARARGS*/ X query(prompt, a1, a2) X! char *a1; X { X register int i, c; X X--- 249,255 ---- X X /*VARARGS*/ X query(prompt, a1, a2) X! char *prompt, *a1, *a2; X { X register int i, c; X X*** ./usr/src/bin/dd.c.old Mon Aug 18 05:58:13 2025 X--- ./usr/src/bin/dd.c Tue Nov 25 09:15:13 2025 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dd.c 5.1 (2.11BSD) 2025/8/18"; X #endif X X #include 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*************** X*** 319,325 **** X if (fflag) { X obuf = ibuf; X } else { X! if ((long)ibs + obs >= MAXBUF) { X fprintf(stderr, X "combined buffer sizes of %lu too large, max %lu\n", X (long)ibs + obs, MAXBUF-1); X--- 319,325 ---- X if (fflag) { X obuf = ibuf; X } else { X! if ((unsigned long)ibs + obs >= (unsigned long)MAXBUF) { X fprintf(stderr, X "combined buffer sizes of %lu too large, max %lu\n", X (long)ibs + obs, MAXBUF-1); X*** ./usr/src/bin/Makefile.old Thu Mar 27 21:31:42 1997 X--- ./usr/src/bin/Makefile Sun Dec 28 22:06:19 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.19.10 (2.11BSD GTE) 1997/3/27 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X # Programs that live in subdirectories, and have makefiles of their own. X # X--- 3,12 ---- 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 X # Programs that live in subdirectories, and have makefiles of their own. X # X*************** X*** 21,27 **** X # C programs that live in the current directory and do not need X # explicit make lines. X # X! STD= cat cc chgrp chmod cmp cp date dd du echo ed grep hostid \ X kill ln mkdir mt mv nice od pagesize pr \ X pwd rm rmail rmdir size sync tar tee time who X X--- 20,26 ---- X # C programs that live in the current directory and do not need 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*************** X*** 53,82 **** X all: ${SUBDIR} ${BINS} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X X ${STD} ${SETUID} ${KMEM} ${OPERATOR} ${TTY} strip: X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ $@.c X X install: ${BINS} X! install -s -m 751 -g staff ${STD} ${NSTD} ${DESTDIR}/bin X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X! -for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done X -for i in ${SETUID}; do \ X! (install -o root -m 4751 -s $$i ${DESTDIR}/bin/$$i); done X -for i in ${OPERATOR}; do \ X! (install -g operator -m 2751 -s $$i ${DESTDIR}/bin/$$i); done X -for i in ${KMEM}; do \ X! (install -g kmem -m 2751 -s $$i ${DESTDIR}/bin/$$i); done X -for i in ${TTY}; do \ X! (install -g tty -m 2751 -s $$i ${DESTDIR}/bin/$$i); done X! -install -s -m 751 -g staff strip ${DESTDIR}/bin/xstrip X! -mv ${DESTDIR}/bin/xstrip ${DESTDIR}/bin/strip X! rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e X X clean: X rm -f ${BINS} expr.c a.out core *.s *.o errs X--- 52,81 ---- X all: ${SUBDIR} ${BINS} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X X ${STD} ${SETUID} ${KMEM} ${OPERATOR} ${TTY} strip: X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c X X install: ${BINS} X! install -c -s -m 755 -o root -g staff ${STD} ${NSTD} /bin X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X! -for i in ${SCRIPT}; do (install -c -m 755 $$i.sh /bin/$$i); done X -for i in ${SETUID}; do \ 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! -mv /bin/xstrip /bin/strip X! rm -f /bin/e; ln /bin/ed /bin/e X X clean: X rm -f ${BINS} expr.c a.out core *.s *.o errs X*************** X*** 103,109 **** X # Files listed in ${NSTD} have explicit make lines given below. X X expr: expr.o X! ${CC} ${CFLAGS} ${SEPFLAG} -o expr expr.o X X # DO NOT DELETE THIS LINE -- make depend uses it X X--- 102,108 ---- X # Files listed in ${NSTD} have explicit make lines given below. X X expr: expr.o X! ${CC} ${LDFLAGS} -o expr expr.o X X # DO NOT DELETE THIS LINE -- make depend uses it X X*** ./usr/src/bin/pr.c.old Sun Feb 8 16:24:49 1987 X--- ./usr/src/bin/pr.c Thu Dec 25 23:07:08 2025 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)pr.c 4.5 (Berkeley) 12/12/84"; X X /* X * print file with headings X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)pr.c 4.6 (2.11BSD) 2025/12/25"; X! #endif X X /* X * print file with headings X*************** X*** 168,174 **** X char *fp; X char **argp; X { X- extern char *sprintf(); X struct stat sbuf; X register sncol; X register char *sheader; X--- 170,175 ---- X*** ./usr/src/bin/ls/Makefile.old Fri Jan 12 20:06:26 1996 X--- ./usr/src/bin/ls/Makefile Mon Dec 8 12:53:04 2025 X*************** X*** 1,10 **** X # X # Public Domain. 12/3/1994 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD GTE) 1996/1/12 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= ls.c stat_flags.c X OBJS= ls.o stat_flags.o X X--- 1,10 ---- X # X # Public Domain. 12/3/1994 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/26 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= ls.c stat_flags.c X OBJS= ls.o stat_flags.o X X*************** X*** 11,17 **** X all: ls X X ls: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} ls tags X--- 11,17 ---- X all: ls X X ls: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} ls tags X*************** X*** 20,26 **** X mkdep ${CFLAGS} ${SRCS} X X install: ls X! install -s -o root -g bin -m 755 ls ${DESTDIR}/bin/ls X X lint: ${SRCS} X lint -hax ${SRCS} X--- 20,26 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ls X! install -c -s -o root -g staff -m 755 ls /bin/ls X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/bin/sysctl/Makefile.old Fri Jan 12 20:54:16 1996 X--- ./usr/src/bin/sysctl/Makefile Mon Dec 8 12:50:35 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1/15/1995 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD GTE) 1996/1/12 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= sysctl.c X OBJS= sysctl.o X MAN= sysctl.0 X--- 1,10 ---- X # X # Public Domain. 1/15/1995 - Steven Schultz X # X! # @(#)Makefile 1.3 (2.11BSD) 2025/11/29 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= sysctl.c X OBJS= sysctl.o X MAN= sysctl.0 X*************** X*** 13,19 **** X all: sysctl sysctl.0 X X sysctl: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X sysctl.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: sysctl sysctl.0 X X sysctl: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X sysctl.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 sysctl ${DESTDIR}/bin/sysctl X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 sysctl /bin/sysctl X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/bin/hostname/Makefile.old Mon Mar 13 22:49:50 1995 X--- ./usr/src/bin/hostname/Makefile Mon Dec 8 12:43:42 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1995/03/13 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1995/03/13 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= hostname.c X OBJS= hostname.o X X--- 1,10 ---- X # X # Public Domain. 1995/03/13 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/26 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= hostname.c X OBJS= hostname.o X X*************** X*** 11,17 **** X all: hostname hostname.0 X X hostname: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X hostname.0: hostname.1 X /usr/man/manroff hostname.1 > hostname.0 X--- 11,17 ---- X all: hostname hostname.0 X X hostname: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X hostname.0: hostname.1 X /usr/man/manroff hostname.1 > hostname.0 X*************** X*** 23,30 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -s -o bin -g bin -m 755 hostname ${DESTDIR}/bin X! install -c -o bin -g bin -m 444 hostname.0 ${DESTDIR}/usr/man/cat1 X X lint: ${SRCS} X lint -hax ${SRCS} X--- 23,30 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -s -o root -g staff -m 755 hostname /bin X! install -c -o root -g staff -m 444 hostname.0 /usr/man/cat1 X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/bin/nm/Makefile.old Tue Nov 9 22:59:40 1993 X--- ./usr/src/bin/nm/Makefile Mon Dec 8 12:38:49 2025 X*************** X*** 1,3 **** X--- 1,5 ---- X+ # @(#)Makefile 2.0 (2.11BSD) 2025/11/26 X+ X SRCS= nm.c X OBJS= nm.o X CFLAGS= -O -I../ar X*************** X*** 5,14 **** X all: nm X X nm: ${OBJS} X! cc -z -o nm ${OBJS} X X install: X! install -c -s -o bin -g bin -m 755 nm ${DESTDIR}/bin/nm X X lint: X lint -havx -I../ar ${SRCS} X--- 7,16 ---- X all: nm X X nm: ${OBJS} X! cc -i -o nm ${OBJS} X X install: X! install -c -s -o root -g staff -m 755 nm /bin/nm X X lint: X lint -havx -I../ar ${SRCS} X*** ./usr/src/bin/chflags/Makefile.old Sat Jan 27 02:51:59 1996 X--- ./usr/src/bin/chflags/Makefile Mon Dec 8 12:46:35 2025 X*************** X*** 1,10 **** X # X # Public Domain. 12/3/1994 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD GTE) 1996/1/27 X # X CFLAGS= -O X! SEPFLAG= -i X VPATH= ../ls X SRCS= chflags.c stat_flags.c X OBJS= chflags.o stat_flags.o X--- 1,10 ---- X # X # Public Domain. 12/3/1994 - Steven Schultz X # X! # @(#)Makefile 1.3 (2.11BSD) 2025/11/26 X # X CFLAGS= -O X! LDFLAGS= -i X VPATH= ../ls X SRCS= chflags.c stat_flags.c X OBJS= chflags.o stat_flags.o X*************** X*** 14,20 **** X all: chflags chflags.0 X X chflags: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X chflags.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 14,20 ---- X all: chflags chflags.0 X X chflags: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X chflags.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 26,33 **** X mkdep ${CFLAGS} ${SRCS} X X install: chflags X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 chflags ${DESTDIR}/bin/chflags X X lint: ${SRCS} X lint -hax ${SRCS} X--- 26,33 ---- X mkdep ${CFLAGS} ${SRCS} X X install: chflags X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 755 chflags /bin/chflags X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/bin/chflags/chflags.c.old Mon Mar 17 16:34:53 2025 X--- ./usr/src/bin/chflags/chflags.c Thu Dec 25 22:51:59 2025 X*************** X*** 4,18 **** X */ X X #if !defined(LINT) && defined(DOSCCS) X! static char sccsid[] = "@(#)chflags.c 1.1 (2.11BSD) 2025/3/17"; X #endif X X #include X- #include X #include X #include X #include X #include X X static char *fmsg = "Can't fchdir() back to starting directory"; X static int oct, status, fflag, rflag; X--- 4,18 ---- X */ X X #if !defined(LINT) && defined(DOSCCS) X! static char sccsid[] = "@(#)chflags.c 1.2 (2.11BSD) 2025/12/25"; X #endif X X #include X #include X #include X #include X #include X+ #include X X static char *fmsg = "Can't fchdir() back to starting directory"; X static int oct, status, fflag, rflag; X*************** X*** 20,26 **** X static struct stat st; X static void usage(); X X- extern long strtol(); X extern int optind, errno; X extern u_short string_to_flags(); /* from ../ls */ X X--- 20,25 ---- X*************** X*** 162,174 **** X } X X /* VARARGS1 */ X! die(fmt, va_alist) X! char *fmt; X! va_dcl X { X va_list ap; X X! va_start(ap); X vfprintf(stderr, fmt, ap); X fputc('\n', stderr); X va_end(ap); X--- 161,171 ---- X } X X /* VARARGS1 */ X! die(char *fmt, ...) X { X va_list ap; X X! va_start(ap, fmt); X vfprintf(stderr, fmt, ap); X fputc('\n', stderr); X va_end(ap); X*** ./usr/src/bin/od.c.old Wed Jan 30 22:39:32 2002 X--- ./usr/src/bin/od.c Thu Dec 25 19:42:59 2025 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)od.c 5.13 (2.11BSD) 2001/11/19"; X /* X * od -- octal, hex, decimal, character dump of data in a file. X * X--- 1,7 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)od.c 5.14 (2.11BSD) 2025/12/25"; X! #endif X! X /* X * od -- octal, hex, decimal, character dump of data in a file. X * X*** ./usr/src/bin/du.c.old Sun Feb 8 16:24:46 1987 X--- ./usr/src/bin/du.c Thu Dec 25 22:59:47 2025 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)du.c 4.11 (Berkeley) 7/1/83"; X #endif X X #include X--- 1,5 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)du.c 4.12 (2.11BSD) 2025/12/25"; X #endif X X #include X*************** X*** 6,11 **** X--- 6,12 ---- X #include X #include X #include X+ #include X X char path[BUFSIZ], name[BUFSIZ]; X int aflg; X*************** X*** 20,26 **** X int mlx; X X long descend(); X- char *index(), *rindex(), *strcpy(), *sprintf(); X X #define kb(n) (howmany(dbtob(n), 1024)) X X--- 21,26 ---- X*** ./usr/src/bin/tar.c.old Sat Dec 27 19:29:22 2008 X--- ./usr/src/bin/tar.c Thu Dec 25 21:23:54 2025 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[] = "@(#)tar.c 5.7 (Berkeley) 4/26/86"; X! #endif not lint X X /* X * Tape Archival 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) 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 * Tape Archival Program X*************** X*** 27,32 **** X--- 25,31 ---- X #include X #include X #include X+ #include X X #define TBLOCK 512 X #define NBLOCK 20 X*************** X*** 104,119 **** X char *usefile; X char magtape[] = "/dev/rmt8"; X char *malloc(); X- long time(); X- off_t lseek(); X- char *mktemp(); X- char *sprintf(); X- char *strcat(); X- char *strcpy(); X- char *rindex(); X- char *getcwd(); X- char *getwd(); X char *getmem(); X X main(argc, argv) X int argc; X--- 103,110 ---- X char *usefile; X char magtape[] = "/dev/rmt8"; X char *malloc(); X char *getmem(); X+ char *getcwd(); X X main(argc, argv) X int argc; X*** ./usr/src/bin/strip.c.old Mon Jan 10 23:42:57 1994 X--- ./usr/src/bin/strip.c Thu Dec 25 23:09:22 2025 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[] = "@(#)strip.c 5.1.1 (2.11BSD GTE) 1/1/94"; 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[] = "@(#)strip.c 5.1.2 (2.11BSD) 2025/12/25"; X #endif X X #include X*************** X*** 60,66 **** X head.e.a_syms = 0; X head.e.a_flag |= 1; X if (ftruncate(f, size) < 0) { X! fprintf("strip: "); perror(name); X status = 1; X goto out; X } X--- 60,66 ---- X head.e.a_syms = 0; X head.e.a_flag |= 1; X if (ftruncate(f, size) < 0) { X! fprintf(stderr, "strip: "); perror(name); X status = 1; X goto out; X } X*** ./usr/src/etc/root/Makefile.old Fri Jan 10 23:06:03 1997 X--- ./usr/src/etc/root/Makefile Tue Nov 25 13:03:27 2025 X*************** X*** 1,16 **** X # X # Public domain - 1997/1/10 - sms X # X! # @(#)Makefile 1.0 (2.11BSD) 1997/1/10 X # X! # DESTDIR is defined here to be something which does *NOT* exist - it must be X! # specified on the command line when doing a "make DESTDIR=/mnt distribution". X! # This is aimed at avoiding overwriting the system disk's /etc files. X X DESTDIR=/foobar X OWN=root X GRP=wheel X X all install depend lint clean tags: X X distribution: X--- 1,16 ---- 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 GRP=wheel X X+ # all the usual targets do nothing X all install depend lint clean tags: X X distribution: X*** ./usr/src/etc/uucp/Makefile.old Fri Jan 10 23:43:25 1997 X--- ./usr/src/etc/uucp/Makefile Tue Nov 25 13:04:12 2025 X*************** X*** 1,11 **** X # X # Public domain - 1997/1/10 - sms X # X! # @(#)Makefile 1.0 (2.11BSD) 1997/1/10 X # X! # DESTDIR is defined here to be something which does *NOT* exist - it must be X! # specified on the command line when doing a "make DESTDIR=/mnt distribution". X! # This is aimed at avoiding overwriting the system disk's /etc files. X X DESTDIR=/foobar 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 X*************** X*** 15,20 **** X--- 14,20 ---- X FILES= L-devices L-dialcodes L.cmds L.sys L_stat L_sub SEQF USERFILE \ X clean.daily clean.weekly uucp-map X X+ # all the usual targets do nothing X all install depend lint clean tags: X X distribution: X*** ./usr/src/etc/uucp/L.sys.old Thu Jan 18 23:53:07 1996 X--- ./usr/src/etc/uucp/L.sys Tue Aug 5 22:29:24 1997 X*************** X*** 1,2 **** X! moe Any TCP uucp moe.iipo.gtegsc.com login: usms assword: fizzbin X! moe Polled TCP uucp moe.iipo.gtegsc.com X--- 1,2 ---- X! test Any TCP uucp test.your.domain login: dummy assword: yahoo! X! test Polled TCP uucp test.your.domain X*** ./usr/src/etc/Makefile.old Fri Jan 10 23:50:54 1997 X--- ./usr/src/etc/Makefile Tue Nov 25 13:00:21 2025 X*************** X*** 1,15 **** X # X # Public domain - 1997/1/10 - sms X # X! # @(#)Makefile 1.0 (2.11BSD) 1997/1/10 X # X! # DESTDIR is defined here to be something which does *NOT* exist - it must be X! # specified on the command line when doing a "make DESTDIR=/mnt distribution". X! # This is aimed at avoiding overwriting the system disk's /etc files. X! # X! # Example: X! # mount /dev/ra1a /mnt X! # make DESTDIR=/mnt distribution X X DESTDIR=/foobar X OWN=root X--- 1,12 ---- 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! # live/running system DESTDIR is defined here to be something which does X! # *NOT* exist. X X DESTDIR=/foobar X OWN=root X*************** X*** 21,28 **** X--- 18,27 ---- 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+ # this will populate /foobar with prototype /dev and /etc files X distribution: X -@mkdir -p ${DESTDIR}/dev X @chmod 755 ${DESTDIR}/dev X*** ./usr/src/etc/disktab.old Thu Sep 26 08:15:19 2024 X--- ./usr/src/etc/disktab Tue Dec 16 22:05:22 2025 X*************** X*** 1,4 **** X! # @(#)disktab 2.0 (2.11BSD) 2024/9/25 X # X # Disk geometry and partition layout tables. X # Key: X--- 1,4 ---- X! # @(#)disktab 2.1 (2.11BSD) 2025/12/15 X # X # Disk geometry and partition layout tables. X # Key: X*************** X*** 47,56 **** X rm02|RM02|rm03|RM03|DEC RM02/03:\ X :ty=removable:ns#32:nt#5:nc#823:sf:\ X :b0=/mdec/rm03uboot:\ X! :pa#12160:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#12160:ob#12160:bb#1024:fb#1024:tb=swap:\ X :pc#131680:oc#0:bc#1024:fc#1024:\ X! :pg#107200:og#24320:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#131520:oh#0:bh#1024:fh#1024 X X # RM05 X--- 47,56 ---- X rm02|RM02|rm03|RM03|DEC RM02/03:\ X :ty=removable:ns#32:nt#5:nc#823:sf:\ X :b0=/mdec/rm03uboot:\ X! :pa#14080:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#8960:ob#14080:bb#1024:fb#1024:tb=swap:\ X :pc#131680:oc#0:bc#1024:fc#1024:\ X! :pg#108480:og#23040:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#131520:oh#0:bh#1024:fh#1024 X X # RM05 X*************** X*** 57,64 **** X rm05|RM05|cdc9766|CDC9766:\ X :ty=removable:ns#32:nt#19:nc#823:sf:\ X :b0=/mdec/rm05uboot:\ X! :pa#12160:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#12160:ob#12160:bb#1024:fb#1024:tb=swap:\ X :pc#500384:oc#0:bc#1024:fc#1024:\ X :pg#475456:og#24320:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#499776:oh#0:bh#1024:fh#1024 X--- 57,64 ---- X rm05|RM05|cdc9766|CDC9766:\ X :ty=removable:ns#32:nt#19:nc#823:sf:\ X :b0=/mdec/rm05uboot:\ X! :pa#14592:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#9728:ob#14592:bb#1024:fb#1024:tb=swap:\ X :pc#500384:oc#0:bc#1024:fc#1024:\ X :pg#475456:og#24320:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#499776:oh#0:bh#1024:fh#1024 X*************** X*** 66,84 **** X rp04|RP04|rp05|RP05|DEC RP04/05:\ X :ty=removable:ns#22:nt#19:nc#411:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#12540:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#8778:ob#12540:bb#1024:fb#1024:tb=swap:\ X :pc#171798:oc#0:bc#1024:fc#1024:\ X! :pg#150062:og#21318:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#171380:oh#0:bh#1024:fh#1024 X X rp06|RP06|DEC RP06:\ X :ty=removable:ns#22:nt#19:nc#815:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#12540:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#8778:ob#12540:bb#1024:fb#1024:tb=swap:\ X :pc#340670:oc#0:bc#1024:fc#1024:\ X! :pg#318934:og#21318:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#340252:oh#0:bh#1024:fh#1024 X X rp07|RP07|DEC RP07:\ X--- 66,84 ---- X rp04|RP04|rp05|RP05|DEC RP04/05:\ X :ty=removable:ns#22:nt#19:nc#411:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#9196:ob#15884:bb#1024:fb#1024:tb=swap:\ X :pc#171798:oc#0:bc#1024:fc#1024:\ X! :pg#145464:og#25080:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#171380:oh#0:bh#1024:fh#1024 X X rp06|RP06|DEC RP06:\ X :ty=removable:ns#22:nt#19:nc#815:sf:\ X :b0=/mdec/hpuboot:\ X! :pa#16720:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ X! :pb#10032:ob#16720:bb#1024:fb#1024:tb=swap:\ X :pc#340670:oc#0:bc#1024:fc#1024:\ X! :pg#313500:og#26752:bg#1024:fg#1024:tg=2.11BSD:\ X :ph#340252:oh#0:bh#1024:fh#1024 X X rp07|RP07|DEC RP07:\ X*** ./usr/src/games/fortune/Makefile.old Sat Dec 29 09:40:22 2018 X--- ./usr/src/games/fortune/Makefile Mon Dec 8 16:04:55 2025 X*************** X*** 1,29 **** X! # @(#)Makefile 2.0 (2.11BSD) 2018/12/29 X FORTUNES= scene obscene X SOURCE= fortune.c strfile.h strfile.c unstr.c $(FORTUNES) X TFILES= Troff.mac Troff.sed Do_troff X LIBDIR= /usr/games/lib X BINDIR= /usr/games X- OWN= arnold X- GRP= arpa X DEFS= X! SEPFLAG= -i X CFLAGS= -O $(DEFS) X SFLAGS= -r X TDEV= -Pver X! TROFF= ditroff $(TDEV) X! DESTDIR= X X all: fortune strfile unstr fortunes.dat X X fortune: fortune.o X! $(CC) ${SEPFLAG} $(CFLAGS) -o fortune fortune.o X X strfile: strfile.o X! $(CC) ${SEPFLAG} $(CFLAGS) -o strfile strfile.o X X unstr: unstr.o X! $(CC) ${SEPFLAG} $(CFLAGS) -o unstr unstr.o X X fortune.o strfile.o unstr.o: strfile.h X X--- 1,26 ---- X! # @(#)Makefile 2.1 (2.11BSD) 2025/11/25 X FORTUNES= scene obscene X SOURCE= fortune.c strfile.h strfile.c unstr.c $(FORTUNES) X TFILES= Troff.mac Troff.sed Do_troff X LIBDIR= /usr/games/lib X BINDIR= /usr/games X DEFS= X! LDFLAGS= -i X CFLAGS= -O $(DEFS) X SFLAGS= -r X TDEV= -Pver X! TROFF= troff $(TDEV) X X all: fortune strfile unstr fortunes.dat X X fortune: fortune.o X! $(CC) ${LDFLAGS} $(CFLAGS) -o fortune fortune.o X X strfile: strfile.o X! $(CC) ${LDFLAGS} $(CFLAGS) -o strfile strfile.o X X unstr: unstr.o X! $(CC) ${LDFLAGS} $(CFLAGS) -o unstr unstr.o X X fortune.o strfile.o unstr.o: strfile.h X X*************** X*** 41,50 **** X lint -hxb $(DEFS) unstr.c 2>&1 > unstr.lint X X install: all install.data X! install -s -m 4711 -o daemon fortune $(DESTDIR)$(BINDIR) X X install.data: fortunes.dat X! install -m 600 -o daemon fortunes.dat $(DESTDIR)$(LIBDIR) X X troff: troff.scene troff.obscene X X--- 38,47 ---- X lint -hxb $(DEFS) unstr.c 2>&1 > unstr.lint X X install: all install.data X! install -c -s -m 4711 -o daemon fortune $(BINDIR) X X install.data: fortunes.dat X! install -m 600 -o daemon fortunes.dat $(LIBDIR) X X troff: troff.scene troff.obscene X X*** ./usr/src/games/adventure/Makefile.old Mon Oct 3 16:42:59 2022 X--- ./usr/src/games/adventure/Makefile Thu Dec 25 23:20:25 2025 X*************** X*** 1,13 **** X! # Makefile 4.4 2022/10/2 X X- DESTDIR= X- SEPFLAG= -i X CFILES= done.c init.c io.c main.c save.c subr.c vocab.c wizard.c X OBJS= done.o init.o io.o main.o save.o subr.o vocab.o wizard.o X HFILES = hdr.h X SRCS = $(CFILES) $(HFILES) glorkz X CFLAGS= -O X! LDFLAGS=-i # should be -i on small machines, -n on a vax X X advent: a.out X rm -f advent X--- 1,11 ---- X! # Makefile 4.5 (2.11BSD) 2025/11/25 X X CFILES= done.c init.c io.c main.c save.c subr.c vocab.c wizard.c X OBJS= done.o init.o io.o main.o save.o subr.o vocab.o wizard.o X HFILES = hdr.h X SRCS = $(CFILES) $(HFILES) glorkz X CFLAGS= -O X! LDFLAGS=-i X X advent: a.out X rm -f advent X*************** X*** 14,45 **** X echo y | ./a.out X X a.out: ${OBJS} X! ${CC} ${SEPFLAG} ${LDFLAGS} ${CFLAGS} ${OBJS} X X save.o: save.c X cc ${CFLAGS} -c save.c X X- # always recomple okplay X- okplay.o: /tmp X- X install: advent X! install -s advent ${DESTDIR}/usr/games/adventure X! # cp okplay /usr/games/adventure X! # cp advsaver /usr/games/lib X! # dd if=/usr/games/lib/adventure of=/usr/games/lib/advheader bs=1 count=16 X! # chmod 711 /usr/games/lib X! # chmod 700 /usr/games/lib/adventure X! # chmod 755 /usr/games/lib/advheader X! # chmod 755 /usr/games/lib/advsaver X! # chmod 4711 /usr/games/adventure X! # chown games /usr/games/adventure /usr/games/lib/adventure /usr/games/lib/advheader /usr/games/lib/advsaver X! # rm advent a.out okplay X! X! okplay: okplay.c X! ${CC} ${SEPFLAG} ${CFLAGS} -o okplay okplay.c X! X! advsaver: advsaver.s X! ${AS} -o advsaver advsaver.s X X lint: X lint $(CFILES) >& lint.out X--- 12,24 ---- X echo y | ./a.out X X a.out: ${OBJS} X! ${CC} ${LDFLAGS} ${CFLAGS} ${OBJS} X X save.o: save.c X cc ${CFLAGS} -c save.c X X install: advent X! install -c -s -m 755 advent /usr/games/adventure X X lint: X lint $(CFILES) >& lint.out X*** ./usr/src/games/backgammon/Makefile.old Mon Jan 18 10:55:58 1993 X--- ./usr/src/games/backgammon/Makefile Mon Dec 8 15:59:24 2025 X*************** 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 (Berkeley) 1/11/86 X # X! DESTDIR= X! SEPFLAG= -i X CFLAGS= -O -DV7 -w X OBJS= allow.o board.o check.o extra.o fancy.o init.o main.o move.o\ X odds.o one.o save.o subs.o table.o text.o message.o X--- 3,11 ---- 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/11/25 X # X! LDFLAGS= -i X CFLAGS= -O -DV7 -w X OBJS= allow.o board.o check.o extra.o fancy.o init.o main.o move.o\ X odds.o one.o save.o subs.o table.o text.o message.o X*************** X*** 21,32 **** X # Backgammon program X backgammon: $(OBJS) X -rm -f backgammon X! cc ${SEPFLAG} -o backgammon $(OBJS) -ltermlib X X # Backgammon rules and tutorial X teachgammon: ${TOBJS} X -rm -f teachgammon X! cc ${SEPFLAG} -o teachgammon $(TOBJS) -ltermlib X X # Header files back.h and tutor.h X allow.o board.o check.o extra.o fancy.o main.o move.o odds.o one.o save.o\ X--- 20,31 ---- X # Backgammon program X backgammon: $(OBJS) X -rm -f backgammon X! cc ${LDFLAGS} -o backgammon $(OBJS) -ltermlib X X # Backgammon rules and tutorial X teachgammon: ${TOBJS} X -rm -f teachgammon X! cc ${LDFLAGS} -o teachgammon $(TOBJS) -ltermlib X X # Header files back.h and tutor.h X allow.o board.o check.o extra.o fancy.o main.o move.o odds.o one.o save.o\ X*************** X*** 44,51 **** X X # Installation X install: all X! install -s backgammon ${DESTDIR}/usr/games/backgammon X! install -s teachgammon ${DESTDIR}/usr/games/teachgammon X X clean: X rm -f ${OBJS} ${TOBJS} backgammon teachgammon backgammon.doc errs X--- 43,50 ---- X X # Installation X install: all X! install -c -s -m 755 backgammon /usr/games/backgammon X! install -c -s -m 755 teachgammon /usr/games/teachgammon X X clean: X rm -f ${OBJS} ${TOBJS} backgammon teachgammon backgammon.doc errs X*** ./usr/src/games/battlestar/Makefile.old Mon Oct 3 16:50:12 2022 X--- ./usr/src/games/battlestar/Makefile Thu Dec 25 23:20:45 2025 X*************** X*** 4,13 **** X # the terms of the Berkeley Software License Agreement. X # X X! # @(#)Makefile 1.7.2 2022/10/2 X X CFLAGS= -O X! SEPFLAG= -i X OBJS= battlestar.o com1.o com2.o com3.o com4.o com5.o com6.o com7.o \ X init.o cypher.o getcom.o parse.o room.o save.o fly.o misc.o \ X globals.o dayfile.o nightfile.o dayobjs.o nightobjs.o words.o X--- 4,13 ---- X # the terms of the Berkeley Software License Agreement. X # X X! # @(#)Makefile 1.7.3 (2.11BSD) 2025/11/25 X X CFLAGS= -O X! LDFLAGS= -i X OBJS= battlestar.o com1.o com2.o com3.o com4.o com5.o com6.o com7.o \ X init.o cypher.o getcom.o parse.o room.o save.o fly.o misc.o \ X globals.o dayfile.o nightfile.o dayobjs.o nightobjs.o words.o X*************** X*** 17,24 **** X LIBS= -lcurses -ltermlib X LINTFLAGS= -h X JUNKFILES= battlestar tags X! DIR= $(DESTDIR)/usr/games X! LIB= $(DESTDIR)/usr/games/lib X LOGFILE= $(LIB)/battlestar.log X MAN= battlestar.0 X X--- 17,24 ---- X LIBS= -lcurses -ltermlib X LINTFLAGS= -h X JUNKFILES= battlestar tags X! DIR= /usr/games X! LIB= /usr/games/lib X LOGFILE= $(LIB)/battlestar.log X MAN= battlestar.0 X X*************** X*** 25,31 **** X all: battlestar ${MAN} X X battlestar: $(OBJS) X! cc -o battlestar ${SEPFLAG} $(OBJS) $(LIBS) X X $(OBJS): externs.h X X--- 25,31 ---- X all: battlestar ${MAN} X X battlestar: $(OBJS) X! cc -o battlestar ${LDFLAGS} $(OBJS) $(LIBS) X X $(OBJS): externs.h X X*************** X*** 59,66 **** X lint $(LINTFLAGS) $(CFILES) $(LIBS) X X install: battlestar $(MAN) $(LOGFILE) $(STRINGFILE) X! install -s battlestar $(DIR)/battlestar X! install -m 444 -o bin -g bin ${MAN} ${DESTDIR}/usr/man/cat6 X X stringfile $(STRINGFILE): battle_strings X install -c -m 644 battle_strings $(LIB) X--- 59,66 ---- X lint $(LINTFLAGS) $(CFILES) $(LIBS) X X install: battlestar $(MAN) $(LOGFILE) $(STRINGFILE) X! install -c -s -m 755 battlestar $(DIR)/battlestar X! install -m 444 -o root -g staff ${MAN} /usr/man/cat6 X X stringfile $(STRINGFILE): battle_strings X install -c -m 644 battle_strings $(LIB) X*** ./usr/src/games/battlestar/room.c.old Sat Aug 1 00:45:11 1987 X--- ./usr/src/games/battlestar/room.c Sat Dec 27 09:09:48 2025 X*************** X*** 4,11 **** X * the terms of the Berkeley Software License Agreement. X */ X X! #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)room.c 1.3 4/24/85"; X #endif X X #include "externs.h" X--- 4,11 ---- X * the terms of the Berkeley Software License Agreement. 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*************** X*** 54,61 **** X for (n = 0; n < NUMOFOBJECTS; n++) X if (testbit(p, n) && objdes[n]) { X lseek(desc, (off_t) objdes[n], L_SET); X! read(desc, &buf, sizeof(buf)); X! puts(&buf); X } X } X X--- 54,61 ---- X for (n = 0; n < NUMOFOBJECTS; n++) X if (testbit(p, n) && objdes[n]) { X lseek(desc, (off_t) objdes[n], L_SET); X! read(desc, buf, sizeof(buf)); X! puts(buf); X } X } X X*** ./usr/src/games/monop/Makefile.old Wed Feb 25 21:23:40 1987 X--- ./usr/src/games/monop/Makefile Mon Dec 8 16:05:57 2025 X*************** X*** 1,9 **** X! # X! # Nifty foo monopoly maker X! # Program: Ken Arnold X! # Makefile: K.S. X! # X! DESTDIR= 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 print.c prop.c rent.c roll.c spec.c strcmp.c trade.c X--- 1,5 ---- 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 print.c prop.c rent.c roll.c spec.c strcmp.c trade.c X*************** X*** 10,20 **** 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= ${DESTDIR}/usr/games X! LIBDIR= ${DESTDIR}/usr/games/lib X LIB= X CFLAGS= -O -w X- SEPFLAG= -i X DAT= brd.dat monop.dat prop.dat X CC= cc X XSTR= xstr X--- 6,16 ---- 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*************** X*** 34,44 **** X it: monop cards.pck X X monop: ${OBJS} X! ${CC} -o monop ${SEPFLAG} ${OBJS} ${LIB} X X install: monop cards.pck X ${RM} ${BINDIR}/monop ${LIBDIR}/cards.pck X! install -s monop ${BINDIR} X mv cards.pck ${LIBDIR} X X new: clean ctags monop X--- 30,40 ---- 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*** 61,67 **** X mv x.o cards.o X X newone: X! ${CC} ${SEPFLAG} -o monop ${CFLAGS} ${CFILES} ${LIB} X X ctags: X ${CTAGS} ${CFILES} monop.h deck.h monop.def initdeck.c X--- 57,63 ---- 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*** ./usr/src/games/monop/misc.c.old Wed Aug 26 00:59:48 1987 X--- ./usr/src/games/monop/misc.c Thu Dec 25 23:45:21 2025 X*************** X*** 1,3 **** X--- 1,7 ---- X+ /* X+ * misc.c 1.1 (2.11BSD) 2025/12/25 X+ */ X+ X # include "monop.ext" X # include X # include X*************** X*** 267,273 **** X printline(); X if (shell == NULL) X shell = shell_in(); X! fflush(); X if (!fork()) { X signal(SIGINT, SIG_DFL); X execsh(shell); X--- 271,277 ---- X printline(); X if (shell == NULL) X shell = shell_in(); X! fflush(NULL); X if (!fork()) { X signal(SIGINT, SIG_DFL); X execsh(shell); X*** ./usr/src/games/pdp/chess/Makefile.old Mon Jan 18 10:56:06 1993 X--- ./usr/src/games/pdp/chess/Makefile Mon Dec 8 16:06:18 2025 X*************** X*** 1,4 **** X! DESTDIR= X LIBDIR= /usr/games/lib X CFLAGS= -O X X--- 1,4 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X LIBDIR= /usr/games/lib X CFLAGS= -O X X*************** X*** 15,22 **** X ${OBJ}: old.h X X install: chess X! install -s chess ${DESTDIR}/usr/games X! # install -c -m 644 book ${DESTDIR}/${LIBDIR}/book X X clean: X rm -f *.o a.out chess core X--- 15,22 ---- X ${OBJ}: old.h X X install: chess X! install -c -s -m 755 chess /usr/games X! # install -c -m 644 book ${LIBDIR}/book X X clean: X rm -f *.o a.out chess core X*** ./usr/src/games/pdp/zork/Makefile.old Tue Jan 7 20:46:16 2020 X--- ./usr/src/games/pdp/zork/Makefile Mon Dec 8 16:08:16 2025 X*************** X*** 1,18 **** X # X! # @(#)Makefile 1.1 (2.11BSD) 2020/1/7 X # X X BINDIR = /usr/games X LIBDIR = /usr/games/lib X- DESTDIR= X X CFLAGS = -O X! SEPFLAG= -i X X all: z zork X X z: z.c X! cc -O ${SEPFLAG} -o z z.c X X # All the 1.o stuff is just to do a . = . + 140000 X zork: 1.o o.o X--- 1,17 ---- X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/25 X # X X BINDIR = /usr/games X LIBDIR = /usr/games/lib X X CFLAGS = -O X! LDFLAGS= -i X X all: z zork X X z: z.c X! cc -O ${LDFLAGS} -o z z.c X X # All the 1.o stuff is just to do a . = . + 140000 X zork: 1.o o.o X*************** X*** 26,36 **** X ./p1 X X install: z zork X! install -s z ${DESTDIR}${BINDIR}/zork X! install -s zork ${DESTDIR}${LIBDIR}/zork X! install -c -m 644 doverlay ${DESTDIR}${LIBDIR} X! install -c -m 644 dindex.dat ${DESTDIR}${LIBDIR} X! install -c -m 644 dtext.dat ${DESTDIR}${LIBDIR} X X clean: X rm -f 1.out a.out b.out h *.o core dungeon.dat zork z syms X--- 25,35 ---- X ./p1 X X install: z zork X! install -c -s -m 755 z ${BINDIR}/zork X! install -c -s -m 755 zork ${LIBDIR}/zork X! install -c -m 644 doverlay ${LIBDIR} X! install -c -m 644 dindex.dat ${LIBDIR} X! install -c -m 644 dtext.dat ${LIBDIR} X X clean: X rm -f 1.out a.out b.out h *.o core dungeon.dat zork z syms X*** ./usr/src/games/pdp/Makefile.old Mon Jan 18 10:56:06 1993 X--- ./usr/src/games/pdp/Makefile Mon Dec 8 16:06:07 2025 X*************** X*** 3,21 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4 (Berkeley) 2/1/86 X # X- DESTDIR= X CFLAGS= -O X X- # We don't load these separate I&D (-i) or even shared (-n) since X- # they weren't to begin with and no one has looked to see if they can X- # be loaded that way. There is a rumor that some of these actually X- # modify their instruction sequnce ... X- SEPFLAG= X- X # Programs that live in subdirectories, and have makefiles of their own. X- # X SUBDIR= chess zork X X # Assembly programs that live in the current directory and need explicit X--- 3,13 ---- 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/11/25 X # X CFLAGS= -O X X # Programs that live in subdirectories, and have makefiles of their own. X SUBDIR= chess zork X X # Assembly programs that live in the current directory and need explicit X*************** X*** 26,40 **** X all: ${SUBDIR} ${NSTD} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X install: ${NSTD} X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X -for i in ${NSTD}; do \ X! (install -s $$i ${DESTDIR}/usr/games/$$i); done X X clean: X rm -f a.out core *.o X--- 18,32 ---- X all: ${SUBDIR} ${NSTD} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X install: ${NSTD} X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X -for i in ${NSTD}; do \ X! (install -c -s -m 755 $$i /usr/games/$$i); done X X clean: X rm -f a.out core *.o X*** ./usr/src/games/words/Makefile.old Tue Dec 17 23:58:53 1991 X--- ./usr/src/games/words/Makefile Mon Dec 8 16:01:27 2025 X*************** X*** 1,3 **** X--- 1,5 ---- X+ # Makefile 2.0 (2.11BSD) 2025/11/25 X+ X LIBDIR=/usr/games/lib X X all: words1 X*************** X*** 6,13 **** X cc -O -n -o words1 words1.c X X install: words1 words.sh X! install -s words1 ${LIBDIR} X! install -c words.sh ${DESTDIR}/usr/games/words X X clean: X rm -f *.o words1 X--- 8,15 ---- X cc -O -n -o words1 words1.c X X install: words1 words.sh X! install -c -s -m 755 words1 ${LIBDIR} X! install -c words.sh /usr/games/words X X clean: X rm -f *.o words1 X*** ./usr/src/games/warp/Makefile.old Mon Mar 31 16:49:13 2025 X--- ./usr/src/games/warp/Makefile Tue Dec 23 08:46:37 2025 X*************** X*** 41,49 **** X all: warp $(util) warp.0 X X warp: $(OBJS) X! ld -X -i /lib/crt0.o object.o play.o score.o util.o version.o warp.o \ X weapon.o init.o intrp.o \ X! -Z sig.o term.o \ X -Z them.o us.o \ X -Z bang.o move.o \ X -Y $(libs) -lc -o warp X--- 41,49 ---- X all: warp $(util) warp.0 X X warp: $(OBJS) X! ld -X -i /lib/crt0.o play.o score.o version.o warp.o \ X weapon.o init.o intrp.o \ X! -Z sig.o util.o object.o term.o \ X -Z them.o us.o \ X -Z bang.o move.o \ X -Y $(libs) -lc -o warp X*** ./usr/src/games/warp/config.h.old Mon Mar 31 16:49:13 2025 X--- ./usr/src/games/warp/config.h Thu Dec 25 23:47:57 2025 X*************** X*** 1,5 **** X /* X! * config.h X */ X X /* CHARSPRINTF: X--- 1,5 ---- X /* X! * config.h 2.0 (2.11BSD) 2025/12/25 X */ X X /* CHARSPRINTF: X*************** X*** 8,14 **** X * is up to the package author to declare sprintf correctly based on the X * symbol. X */ X! #define CHARSPRINTF /**/ X X /* FCNTL: X * This symbol, if defined, indicates to the C program that it should X--- 8,14 ---- X * is up to the package author to declare sprintf correctly based on the X * symbol. X */ X! #undef CHARSPRINTF /**/ X X /* FCNTL: X * This symbol, if defined, indicates to the C program that it should X*** ./usr/src/games/hangman/Makefile.old Tue Jun 5 15:31:44 1990 X--- ./usr/src/games/hangman/Makefile Mon Dec 8 16:05:13 2025 X*************** X*** 1,3 **** X--- 1,5 ---- X+ # Makefile 2.0 (2.11BSD) 2025/11/25 X+ X OBJS= endgame.o extern.o getguess.o getword.o main.o playgame.o \ X prdata.o prman.o prword.o setup.o X CFILES= endgame.c extern.c getguess.c getword.c main.c playgame.c \ X*************** X*** 4,11 **** X prdata.c prman.c prword.c setup.c X HDRS= hangman.h X CFLAGS= -O X! LDFLAGS= X! SEPFLAG= -i X X all: hangman X X--- 6,12 ---- X prdata.c prman.c prword.c setup.c X HDRS= hangman.h X CFLAGS= -O X! LDFLAGS= -i X X all: hangman X X*************** X*** 13,22 **** X ctags $(HDRS) $(CFILES) X X install: hangman X! install -s hangman $(DESTDIR)/usr/games/hangman X X hangman: $(OBJS) X! $(CC) ${SEPFLAG} $(LDFLAGS) -o hangman $(OBJS) -lcurses -ltermlib X X clean: X rm -f $(OBJS) hangman ? core X--- 14,23 ---- X ctags $(HDRS) $(CFILES) X X install: hangman X! install -c -s -m 755 hangman /usr/games/hangman X X hangman: $(OBJS) X! $(CC) $(LDFLAGS) -o hangman $(OBJS) -lcurses -ltermlib X X clean: X rm -f $(OBJS) hangman ? core X*** ./usr/src/games/boggle/Makefile.old Mon Jan 18 10:56:00 1993 X--- ./usr/src/games/boggle/Makefile Mon Dec 8 16:04:38 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (Berkeley) 9/7/85 X # X- DESTDIR= X CC = /bin/cc X! SEPFLAG= -i X CFLAGS = -O X X all: boggle bogdict 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 (2.11BSD) 2025/11/25 X # X CC = /bin/cc X! LDFLAGS= -i X CFLAGS = -O X X all: boggle bogdict X*************** X*** 19,32 **** X sed -f sfile $$dict | uniq | ./comp >bogdict X X install: all X! install -s boggle ${DESTDIR}/usr/games/boggle X! install -m 644 bogdict ${DESTDIR}/usr/games/lib/bogdict X X boggle: boggle.c X! cc ${SEPFLAG} -o boggle ${CFLAGS} boggle.c X X comp: comp.c X! cc ${SEPFLAG} -o comp ${CFLAGS} comp.c X X clean: X rm -f bogdict boggle comp *.o X--- 18,31 ---- X sed -f sfile $$dict | uniq | ./comp >bogdict X X install: all X! install -c -s -m 755 boggle /usr/games/boggle X! install -m 644 bogdict /usr/games/lib/bogdict X X boggle: boggle.c X! cc ${LDFLAGS} -o boggle ${CFLAGS} boggle.c X X comp: comp.c X! cc ${LDFLAGS} -o comp ${CFLAGS} comp.c X X clean: X rm -f bogdict boggle comp *.o SHAR_EOF fi if test -f 'OLD499B.patch' then echo shar: "will not over-write existing file 'OLD499B.patch'" else sed 's/^X//' << \SHAR_EOF > 'OLD499B.patch' X*** ./usr/src/games/mille/Makefile.old Mon Oct 3 16:56:41 2022 X--- ./usr/src/games/mille/Makefile Mon Dec 8 16:05:47 2025 X*************** X*** 1,5 **** X # X! # mille bourne game makefile X # X HEADERS=mille.h X CFILES= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ X--- 1,5 ---- X # X! # Makefile 2.0 (2.11BSD) 2025/11/25 X # X HEADERS=mille.h X CFILES= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \ X*************** X*** 8,72 **** X roll.o save.o types.o varpush.o X POBJS= comp.po end.po extern.po init.po mille.po misc.po move.po \ X roll.po print.po save.po types.po varpush.po X! # CRL= /jb/ingres/arnold/=lib/=curses/crlib X! # CRL= =curses/screen/libcurses.a X! CRL= X! # L= -ltermlib X! L= -lcurses -ltermlib X! LIBS= ${CRL} ${L} X DEFS= X CFLAGS= -O ${DEFS} X! SEPFLAG= -i X! LDFLAGS= X! DESTDIR= X BINDIR= /usr/games X- .SUFFIXES: .po .i X X! .c.po: X! rm -f x.c ; ln $*.c x.c X! ${CC} ${CFLAGS} -p -c x.c X! mv x.o $*.po X X- .c.i: X- ${CC} ${LDFLAGS} -P $*.c X- X- mille: ${OBJS} ${CRL} X- ${CC} ${SEPFLAG} ${LDFLAGS} -o mille ${OBJS} ${LIBS} X- X install: mille X! install -s mille ${DESTDIR}${BINDIR} X X- pmb: ${POBJS} ../pcrlib X- ${CC} ${SEPFLAG} ${CFLAGS} -p -o pmb ${POBJS} ../pcrlib -ltermlib X- X- mille.po: mille.c X- rm -f x.c ; ln mille.c x.c X- ${CC} ${CFLAGS} -DPROF -p -c x.c X- mv x.o mille.po X- X- table: table.o extern.o X- ${CC} ${SEPFLAG} ${CFLAGS} -i -o table table.o extern.o X- X- readdump: readdump.o extern.o varpush.o X- ${CC} ${SEPFLAG} ${CFLAGS} -i -o readdump readdump.o extern.o varpush.o X- X- ctags: X- ctags ${HEADERS} ${CFILES} X- ed - tags < :ctfix X- sort tags -o tags X- X lint: X lint -hxb ${DEFS} ${CFILES} ${L} > lint.out X X- mille.ar: X- ar ruv mille.ar Makefile tags ${HEADERS} ${CFILES} X- X- tar: X- tar rvf /dev/rmt0 Makefile tags :ctfix ${HEADERS} ${CFILES} X- X- lpr: X- pr Makefile ${HEADERS} ${CFILES} tags | lpr ; lpq X- X clean: X! rm -f ${OBJS} ${POBJS} core ? a.out errs mille lint.out mille.ar \ X! tags pmb X--- 8,27 ---- X roll.o save.o types.o varpush.o X POBJS= comp.po end.po extern.po init.po mille.po misc.po move.po \ X roll.po print.po save.po types.po varpush.po X! LIBS= -lcurses -ltermlib X DEFS= X CFLAGS= -O ${DEFS} X! LDFLAGS= -i X BINDIR= /usr/games X X! mille: ${OBJS} X! ${CC} ${LDFLAGS} -o mille ${OBJS} ${LIBS} X X install: mille X! install -c -s -m 755 -o root -g staff mille ${BINDIR} X X lint: X lint -hxb ${DEFS} ${CFILES} ${L} > lint.out X X clean: X! rm -f ${OBJS} ${POBJS} a.out errs mille lint.out X*** ./usr/src/games/quiz/Makefile.old Mon Jan 18 10:56:17 1993 X--- ./usr/src/games/quiz/Makefile Sat Nov 29 14:11:58 2025 X*************** X*** 1,42 **** X! # @(#)Makefile 4.2 (Berkeley) 9/7/85 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X quiz: quiz.c X! cc ${SEPFLAG} ${CFLAGS} -o quiz quiz.c X X install: quiz quiz.k X! install -s quiz ${DESTDIR}/usr/games/quiz X! cp -r quiz.k ${DESTDIR}/usr/games/lib X X clean: X rm -f a.out core *.s *.o quiz X X! depend: X! cat x.c X! for i in quiz; do \ X! (echo $$i: $$i.c >>makedep; \ X! /bin/grep '^#[ ]*include' x.c $$i.c | sed \ X! -e 's,<\(.*\)>,"/usr/include/\1",' \ X! -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ X! -e 's/\.c//' >>makedep); done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep x.c X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X X! quiz: quiz.c X! quiz: /usr/include/stdio.h X! quiz: /usr/include/signal.h 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,25 ---- X! # @(#)Makefile 4.3 (2.11BSD) 2025/11/29 X # X CFLAGS= -O X! LDFLAGS= -i X X quiz: quiz.c X! cc ${LDFLAGS} ${CFLAGS} -o quiz quiz.c X X install: quiz quiz.k X! install -c -s -m 755 -o root quiz /usr/games/quiz X! -rm -rf /usr/games/lib/quiz.k X! cp -pr quiz.k /usr/games/lib X! chmod 755 /usr/games/lib/quiz.k X X clean: X rm -f a.out core *.s *.o quiz X X! depend: quiz.c X! mkdep ${CFLAGS} quiz.c X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! quiz.o: quiz.c /usr/include/stdio.h /usr/include/signal.h X X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/games/quiz/quiz.c.old Wed Jan 9 18:36:25 1985 X--- ./usr/src/games/quiz/quiz.c Sat Dec 27 09:11:26 2025 X*************** X*** 1,5 **** X X! static char sccsid[] = " quiz.c 4.2 85/01/09 "; X X #include X #include X--- 1,5 ---- X X! static char sccsid[] = " quiz.c 4.3 (2.11BSD) 2025/12/25"; X X #include X #include X*************** X*** 24,30 **** X char line[150]; X char response[100]; X char *tmp[NF]; X! int select[NF]; X X readline() X { X--- 24,30 ---- X char line[150]; X char response[100]; X char *tmp[NF]; X! int qselect[NF]; X X readline() X { X*************** X*** 269,275 **** X int n; X while(readline()){ X n = segment(line,tmp); X! if(perm(u,m,tmp+1,n-1,select)) X return(1); X } X return(0); X--- 269,275 ---- X int n; X while(readline()){ X n = segment(line,tmp); X! if(perm(u,m,tmp+1,n-1,qselect)) X return(1); X } X return(0); X*************** X*** 347,353 **** X readindex(); X if(!tflag || na>nl) X na = nl; X! stdout->_flag |= _IONBF; X for(;;) { X i = next(); X fseek(input,xx[i]+0L,0); X--- 347,353 ---- X readindex(); X if(!tflag || na>nl) X na = nl; X! setvbuf(stdout, NULL, _IONBF, 0); X for(;;) { X i = next(); X fseek(input,xx[i]+0L,0); X*************** X*** 355,375 **** X for(j=0;j1) badinfo(); X if(x==1) { X printf("Right!\n"); X--- 355,375 ---- X for(j=0;j1) badinfo(); X if(x==1) { X printf("Right!\n"); X*************** X*** 429,434 **** X--- 429,435 ---- X exit(0); X } X instruct(info) X+ char *info; X { X char *t; X int i, n; X*** ./usr/src/games/cribbage/Makefile.old Sun Jan 28 03:28:01 1996 X--- ./usr/src/games/cribbage/Makefile Mon Dec 8 16:04:49 2025 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.2.1 (2.11BSD) 1996/1/28 X # X # make file for cribbage 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.2.2 (2.11BSD) 2025/11/25 X # X # make file for cribbage X # X*************** X*** 12,25 **** X CFILES= extern.c crib.c support.c cards.c score.c io.c X TOBJS= test.o cards.o score.o io.o extern.o X MAN= crib.0 X! SEPFLAG= -i X CFLAGS= -O X- DESTDIR= X X all: cribbage ${MAN} X X cribbage: ${OBJS} X! ${CC} ${SEPFLAG} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib X X all: cribbage ${MAN} X X--- 12,24 ---- X CFILES= extern.c crib.c support.c cards.c score.c io.c X TOBJS= test.o cards.o score.o io.o extern.o X MAN= crib.0 X! LDFLAGS= -i X CFLAGS= -O X X all: cribbage ${MAN} X X cribbage: ${OBJS} X! ${CC} ${LDFLAGS} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib X X all: cribbage ${MAN} X X*************** X*** 26,32 **** X crib.o io.o support.o: cribcur.h X X test: ${TOBJS} X! ${CC} ${SEPFLAG} ${CFLAGS} -o test ${TOBJS} -lcurses -ltermlib X X crib.0: cribbage.n macro X nroff cribbage.n > crib.0 X--- 25,31 ---- X crib.o io.o support.o: cribcur.h X X test: ${TOBJS} X! ${CC} ${LDFLAGS} ${CFLAGS} -o test ${TOBJS} -lcurses -ltermlib X X crib.0: cribbage.n macro X nroff cribbage.n > crib.0 X*************** X*** 47,51 **** X io.o: deck.h cribcur.h X X install: cribbage crib.0 X! install -s cribbage $(DESTDIR)/usr/games X! install -m 644 crib.0 $(DESTDIR)/usr/games/lib/crib.instr X--- 46,50 ---- X io.o: deck.h cribcur.h X X install: cribbage crib.0 X! install -c -s -m 755 cribbage /usr/games X! install -m 644 crib.0 /usr/games/lib/crib.instr X*** ./usr/src/games/cribbage/io.c.old Tue Jan 7 20:30:34 2020 X--- ./usr/src/games/cribbage/io.c Thu Dec 25 23:58:57 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 5.2 (2.11BSD) 2020/1/7"; X #endif X X # include 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*************** X*** 435,444 **** X /* X * Do the printf into Msgbuf X */ X! junk._flag = _IOWRT + _IOSTRG; X! junk._ptr = &Msgbuf[Newpos]; X! junk._cnt = 32767; X! _doprnt(fmt, args, &junk); X putc('\0', &junk); X Newpos = strlen(Msgbuf); X } X--- 435,444 ---- X /* X * Do the printf into Msgbuf X */ X! junk._flags = __SWR + __SSTR; X! junk._bf._base = junk._p = (unsigned char *)&Msgbuf[Newpos]; X! junk._bf._size = junk._w = 32767; X! __svfprintf(&junk, fmt, (char *)args); X putc('\0', &junk); X Newpos = strlen(Msgbuf); X } X*** ./usr/src/games/cribbage/support.c.old Thu May 30 21:46:19 1985 X--- ./usr/src/games/cribbage/support.c Thu Dec 25 23:39:25 2025 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)support.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(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)support.c 5.2 (2.11BSD) 2025/12/25"; X! #endif X X #include X #include "deck.h" X*************** X*** 217,223 **** X makedeck( d ); X nc = CARDS; X for( i = 0; i < knownum; i++ ) { /* get all other cards */ X! remove( known[i], d, nc-- ); X } X for( i = 0; i < 15; i++ ) sums[i] = 0L; X ns = 0; X--- 217,223 ---- X makedeck( d ); X nc = CARDS; X for( i = 0; i < knownum; i++ ) { /* get all other cards */ X! cremove( known[i], d, nc-- ); X } X for( i = 0; i < 15; i++ ) sums[i] = 0L; X ns = 0; X*************** X*** 226,233 **** X for( j = i + 1; j < FULLHAND; j++ ) { X cb[1] = chand[j]; X for( k = 0; k < FULLHAND; k++ ) h[k] = chand[k]; X! remove( chand[i], h, FULLHAND ); X! remove( chand[j], h, FULLHAND - 1 ); X for( k = 0; k < nc; k++ ) { X sums[ns] += scorehand( h, d[k], CINHAND, TRUE, FALSE ); X if( mycrib ) sums[ns] += adjust( cb, d[k] ); X--- 226,233 ---- X for( j = i + 1; j < FULLHAND; j++ ) { X cb[1] = chand[j]; X for( k = 0; k < FULLHAND; k++ ) h[k] = chand[k]; X! cremove( chand[i], h, FULLHAND ); X! cremove( chand[j], h, FULLHAND - 1 ); X for( k = 0; k < nc; k++ ) { X sums[ns] += scorehand( h, d[k], CINHAND, TRUE, FALSE ); X if( mycrib ) sums[ns] += adjust( cb, d[k] ); X*************** X*** 239,246 **** X j = 0; X for( i = 1; i < 15; i++ ) if( sums[i] > sums[j] ) j = i; X for( k = 0; k < FULLHAND; k++ ) h[k] = chand[k]; X! remove( h[ undo1[j] ], chand, FULLHAND ); X! remove( h[ undo2[j] ], chand, FULLHAND - 1 ); X chand[4] = h[ undo1[j] ]; X chand[5] = h[ undo2[j] ]; X } X--- 239,246 ---- X j = 0; X for( i = 1; i < 15; i++ ) if( sums[i] > sums[j] ) j = i; X for( k = 0; k < FULLHAND; k++ ) h[k] = chand[k]; X! cremove( h[ undo1[j] ], chand, FULLHAND ); X! cremove( h[ undo2[j] ], chand, FULLHAND - 1 ); X chand[4] = h[ undo1[j] ]; X chand[5] = h[ undo2[j] ]; X } X*** ./usr/src/games/cribbage/test.c.old Thu May 30 21:46:41 1985 X--- ./usr/src/games/cribbage/test.c Thu Dec 25 23:41:52 2025 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[] = "@(#)test.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X #include X #include "deck.h" X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if defined(DOSCCS) && !defined(lint) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)test.c 5.2 (2.11BSD) 2025/12/25"; X! #endif X X #include X #include "deck.h" X*************** X*** 57,64 **** X hand[1] = jc; X for( k = 0; k < CARDS; k++ ) d[k] = deck[k]; X n = CARDS; X! remove( ic, d, n-- ); X! remove( jc, d, n-- ); X sum = 0; X sum2 = 0; X for( k = 0; k < n - 1; k++ ) { /* 3rd card */ X--- 55,62 ---- X hand[1] = jc; X for( k = 0; k < CARDS; k++ ) d[k] = deck[k]; X n = CARDS; X! cremove( ic, d, n-- ); X! cremove( jc, d, n-- ); X sum = 0; X sum2 = 0; X for( k = 0; k < n - 1; k++ ) { /* 3rd card */ X*** ./usr/src/games/cribbage/cards.c.old Thu May 30 21:43:27 1985 X--- ./usr/src/games/cribbage/cards.c Thu Dec 25 23:28:46 2025 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cards.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(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*** 95,101 **** X * remove the card a from the deck d of n cards X */ X X! remove( a, d, n ) X X CARD a, d[]; X int n; X--- 95,101 ---- 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*** ./usr/src/games/cribbage/crib.c.old Sun Aug 30 15:21:25 1987 X--- ./usr/src/games/cribbage/crib.c Thu Dec 25 23:38:51 2025 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[] = "@(#)crib.c 5.1 (Berkeley) 5/30/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(DOSCCS) && !defined(lint) X char copyright[] = 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 # include X*************** X*** 309,320 **** X prompt = (quiet ? "Discard --> " : "Discard a card --> "); X cdiscard(mycrib); /* puts best discard at end */ X crd = phand[infrom(phand, FULLHAND, prompt)]; X! remove(crd, phand, FULLHAND); X prhand(phand, FULLHAND, Playwin, FALSE); X crib[0] = crd; X /* next four lines same as last four except for cdiscard() */ X crd = phand[infrom(phand, FULLHAND - 1, prompt)]; X! remove(crd, phand, FULLHAND - 1); X prhand(phand, FULLHAND, Playwin, FALSE); X crib[1] = crd; X crib[2] = chand[4]; X--- 307,318 ---- X prompt = (quiet ? "Discard --> " : "Discard a card --> "); X cdiscard(mycrib); /* puts best discard at end */ X crd = phand[infrom(phand, FULLHAND, prompt)]; X! cremove(crd, phand, FULLHAND); X prhand(phand, FULLHAND, Playwin, FALSE); X crib[0] = crd; X /* next four lines same as last four except for cdiscard() */ X crd = phand[infrom(phand, FULLHAND - 1, prompt)]; X! cremove(crd, phand, FULLHAND - 1); X prhand(phand, FULLHAND, Playwin, FALSE); X crib[1] = crd; X crib[2] = chand[4]; X*************** X*** 456,462 **** X if (j < 0) /* if nothing scores */ X j = cchose(ch, cnum, sum); X crd = ch[j]; X! remove(crd, ch, cnum--); X sum += VAL(crd.rank); X Table[Tcnt++] = crd; X if (k > 0) { X--- 454,460 ---- X if (j < 0) /* if nothing scores */ X j = cchose(ch, cnum, sum); X crd = ch[j]; X! cremove(crd, ch, cnum--); X sum += VAL(crd.rank); X Table[Tcnt++] = crd; X if (k > 0) { X*************** X*** 504,510 **** X msg("Total > 31 -- try again"); X } X makeknown(&crd, 1); X! remove(crd, ph, pnum--); X i = pegscore(crd, Table, Tcnt, sum); X sum += VAL(crd.rank); X Table[Tcnt++] = crd; X--- 502,508 ---- X msg("Total > 31 -- try again"); X } X makeknown(&crd, 1); X! cremove(crd, ph, pnum--); X i = pegscore(crd, Table, Tcnt, sum); X sum += VAL(crd.rank); X Table[Tcnt++] = crd; X*** ./usr/src/games/atc/Makefile.old Sun Feb 13 12:45:46 2000 X--- ./usr/src/games/atc/Makefile Mon Dec 8 16:04:04 2025 X*************** X*** 3,14 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 1999/10/25 X # X X! DESTDIR= X! CFLAGS= -O -DBSD -DDEST=\"${DESTDIR}/usr/games/lib/atc/\" X! SEPFLAG= -i X YFLAGS= -d X LIBS= -ll -lm -lcurses -ltermcap X SRCS= extern.c grammar.c graphics.c input.c lex.c list.c log.c \ X--- 3,13 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.3 (2.11BSD) 2025/11/25 X # X X! CFLAGS= -O -DBSD -DDEST=\"/usr/games/lib/atc/\" X! LDFLAGS= -i X YFLAGS= -d X LIBS= -ll -lm -lcurses -ltermcap X SRCS= extern.c grammar.c graphics.c input.c lex.c list.c log.c \ X*************** X*** 19,25 **** X all: atc X X atc: ${OBJS} X! ${CC} ${SEPFLAG} ${OBJS} ${LIBS} -o $@ X X clean: FRC X rm -f ${OBJS} core atc grammar.c y.tab.h y.tab.c lex.yy.c lex.c X--- 18,24 ---- X all: atc X X atc: ${OBJS} X! ${CC} ${LDFLAGS} ${OBJS} ${LIBS} -o $@ X X clean: FRC X rm -f ${OBJS} core atc grammar.c y.tab.h y.tab.c lex.yy.c lex.c X*************** X*** 28,39 **** X mkdep ${CFLAGS} ${SRCS} X X install: FRC X! -[ -d ${DESTDIR}/usr/games/lib/atc ] || mkdir ${DESTDIR}/usr/games/lib/atc X! chmod 700 ${DESTDIR}/usr/games/lib/atc X! chown games.bin ${DESTDIR}/usr/games/lib/atc X! (cd games; install -c -o games -g bin -m 600 * ${DESTDIR}/usr/games/lib/atc) X! install -s -o games -g bin -m 4700 atc ${DESTDIR}/usr/games/hide/atc X! (cd ${DESTDIR}/usr/games; rm -f atc; ln -s dm atc; chown games.bin atc) X X lint: lex.c grammar.c FRC X lint ${CFLAGS} ${SRCS} X--- 27,38 ---- X mkdep ${CFLAGS} ${SRCS} X X install: FRC X! -[ -d /usr/games/lib/atc ] || mkdir /usr/games/lib/atc X! chmod 700 /usr/games/lib/atc X! chown games.staff /usr/games/lib/atc X! (cd games; install -c -o games -g staff -m 600 * /usr/games/lib/atc) X! install -c -s -o games -g staff -m 4700 atc /usr/games/hide/atc X! (cd /usr/games; rm -f atc; ln -s dm atc; chown games.staff atc) X X lint: lex.c grammar.c FRC X lint ${CFLAGS} ${SRCS} X*************** X*** 42,108 **** 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- extern.o: extern.c include.h /usr/include/stdio.h /usr/include/ctype.h X- extern.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- extern.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- extern.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- extern.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h X- extern.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h def.h X- extern.o: struct.h extern.h tunable.h X- grammar.o: grammar.c include.h /usr/include/stdio.h /usr/include/ctype.h X- grammar.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- grammar.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- grammar.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- grammar.o: /usr/include/signal.h /usr/include/machine/trap.h X- grammar.o: /usr/include/math.h /usr/include/curses.h /usr/include/stdio.h X- grammar.o: /usr/include/sgtty.h def.h struct.h extern.h tunable.h X- graphics.o: graphics.c include.h /usr/include/stdio.h /usr/include/ctype.h X- graphics.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- graphics.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- graphics.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- graphics.o: /usr/include/signal.h /usr/include/machine/trap.h X- graphics.o: /usr/include/math.h /usr/include/curses.h /usr/include/stdio.h X- graphics.o: /usr/include/sgtty.h def.h struct.h extern.h tunable.h X- input.o: input.c include.h /usr/include/stdio.h /usr/include/ctype.h X- input.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- input.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- input.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- input.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h X- input.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h def.h X- input.o: struct.h extern.h tunable.h X- lex.o: lex.c /usr/include/stdio.h y.tab.h X- list.o: list.c include.h /usr/include/stdio.h /usr/include/ctype.h X- list.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- list.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- list.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- list.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h X- list.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h def.h X- list.o: struct.h extern.h tunable.h X- log.o: log.c include.h /usr/include/stdio.h /usr/include/ctype.h X- log.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- log.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- log.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- log.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h X- log.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h def.h X- log.o: struct.h extern.h tunable.h X- main.o: main.c include.h /usr/include/stdio.h /usr/include/ctype.h X- main.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- main.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- main.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- main.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h X- main.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h def.h X- main.o: struct.h extern.h tunable.h X- tunable.o: tunable.c X- update.o: update.c include.h /usr/include/stdio.h /usr/include/ctype.h X- update.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- update.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- update.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h X- update.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h X- update.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h def.h X- update.o: struct.h extern.h tunable.h X- X- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X--- 41,43 ---- X*** ./usr/src/games/robots/Makefile.old Wed Feb 25 21:24:18 1987 X--- ./usr/src/games/robots/Makefile Mon Dec 8 16:08:25 2025 X*************** X*** 3,11 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (Berkeley) 5/15/86 X # X- DESTDIR= X HDRS= robot.h X CFILES= extern.c init_field.c main.c make_level.c move.c \ X move_robs.c play_level.c query.c rnd_pos.c score.c \ X--- 3,10 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/25 X # X HDRS= robot.h X CFILES= extern.c init_field.c main.c make_level.c move.c \ X move_robs.c play_level.c query.c rnd_pos.c score.c \ X*************** X*** 15,31 **** X flush_in.o X DEFS= -DMAX_PER_UID=5 X CFLAGS= -O ${DEFS} X! SEPFLAG= -i X X robots: ${OBJS} X! ${CC} ${SEPFLAG} ${CFLAGS} -o robots ${OBJS} -lcurses -ltermlib X X lint: X lint -hb ${DEFS} ${CFILES} -lcurses 2>1 > lint.out X X install: robots X! install -s -m 4711 -o daemon robots ${DESTDIR}/usr/games X! install -c -m 644 -o daemon /dev/null ${DESTDIR}/usr/games/lib/robots_roll X X clean: X rm -f a.out core *.o robots lint.out errs X--- 14,30 ---- X flush_in.o X DEFS= -DMAX_PER_UID=5 X CFLAGS= -O ${DEFS} X! LDFLAGS= -i X X robots: ${OBJS} X! ${CC} ${LDFLAGS} ${CFLAGS} -o robots ${OBJS} -lcurses -ltermlib X X lint: X lint -hb ${DEFS} ${CFILES} -lcurses 2>1 > lint.out X X install: robots X! install -c -s -m 4711 -o daemon robots /usr/games X! install -c -m 644 -o daemon /dev/null /usr/games/lib/robots_roll X X clean: X rm -f a.out core *.o robots lint.out errs X*** ./usr/src/games/snake/Makefile.old Tue Jan 17 01:30:44 1995 X--- ./usr/src/games/snake/Makefile Mon Dec 8 16:08:59 2025 X*************** X*** 3,38 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.1 (2.11BSD GTE) 1/16/95 X # X- DESTDIR= X CFLAGS= -O -DCHECKBUSY X LIBS= -lm -ltermcap X! BIN= $(DESTDIR)/usr/games X! LIB= $(DESTDIR)/usr/games/lib X USER= daemon X UTILS= snscore busy X OBJS= snake.o move.o X ALL= snake ${UTILS} X! SEPFLAG= -i X X all: ${ALL} X X snake: $(OBJS) X! cc ${SEPFLAG} $(OBJS) -o snake $(LIBS) X X snake.o move.o:snake.h X X snscore: snscore.c X! cc ${SEPFLAG} $(CFLAGS) snscore.c -o snscore X X busy: busy.c X! cc ${SEPFLAG} $(CFLAGS) busy.c -o busy X X install: all X! install -s -m 4755 -o ${USER} snake ${BIN}/snake X! install -s -m 755 -o ${USER} snscore ${BIN}/snscore X! install -s -m 755 -o ${USER} busy ${LIB}/busy X cat /dev/null >> $(LIB)/snakerawscores X chmod 644 $(LIB)/snakerawscores X chown $(USER) $(LIB)/snakerawscores X--- 3,37 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O -DCHECKBUSY X LIBS= -lm -ltermcap X! BIN= /usr/games X! LIB= /usr/games/lib X USER= daemon X UTILS= snscore busy X OBJS= snake.o move.o X ALL= snake ${UTILS} X! LDFLAGS= -i X X all: ${ALL} X X snake: $(OBJS) X! cc ${LDFLAGS} $(OBJS) -o snake $(LIBS) X X snake.o move.o:snake.h X X snscore: snscore.c X! cc ${LDFLAGS} $(CFLAGS) snscore.c -o snscore X X busy: busy.c X! cc ${LDFLAGS} $(CFLAGS) busy.c -o busy X X install: all X! install -c -s -m 4755 -o ${USER} snake ${BIN}/snake X! install -c -s -m 755 -o ${USER} snscore ${BIN}/snscore X! install -c -s -m 755 -o ${USER} busy ${LIB}/busy X cat /dev/null >> $(LIB)/snakerawscores X chmod 644 $(LIB)/snakerawscores X chown $(USER) $(LIB)/snakerawscores X*** ./usr/src/games/snake/snake.c.old Tue Jan 7 20:50:13 2020 X--- ./usr/src/games/snake/snake.c Fri Dec 26 00:00:38 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)snake.c 5.2 (2.11BSD) 2020/1/7"; X #endif X 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*************** X*** 657,675 **** X if (! stretch(&money)) if (! stretch(&finish)) delay(10); X if(you.line < 3){ X point(&p,you.col,0); X! remove(&p); X } X if(you.line > lcnt-4){ X point(&p,you.col,lcnt-1); X! remove(&p); X } X if(you.col < 10){ X point(&p,0,you.line); X! remove(&p); X } X if(you.col > ccnt-10){ X point(&p,ccnt-1,you.line); X! remove(&p); X } X fflush(stdout); X } X--- 657,675 ---- X if (! stretch(&money)) if (! stretch(&finish)) delay(10); X if(you.line < 3){ X point(&p,you.col,0); X! sremove(&p); X } X if(you.line > lcnt-4){ X point(&p,you.col,lcnt-1); X! sremove(&p); X } X if(you.col < 10){ X point(&p,0,you.line); X! sremove(&p); X } X if(you.col > ccnt-10){ X point(&p,ccnt-1,you.line); X! sremove(&p); X } X fflush(stdout); X } X*************** X*** 684,696 **** X pchar(&p,'v'); X delay(10); X for (;p.line > you.line;p.line--) X! remove(&p); X } else { X for (p.line = you.line-1;p.line >= ps->line;p.line--) X pchar(&p,'^'); X delay(10); X for (;p.line < you.line;p.line++) X! remove(&p); X } X return(1); X } else if(abs(ps->line-you.line) < 3){ X--- 684,696 ---- X pchar(&p,'v'); X delay(10); X for (;p.line > you.line;p.line--) X! sremove(&p); X } else { X for (p.line = you.line-1;p.line >= ps->line;p.line--) X pchar(&p,'^'); X delay(10); X for (;p.line < you.line;p.line++) X! sremove(&p); X } X return(1); X } else if(abs(ps->line-you.line) < 3){ X*************** X*** 700,712 **** X pchar(&p,'>'); X delay(10); X for (;p.col > you.col;p.col--) X! remove(&p); X } else { X for (p.col = you.col-1;p.col >= ps->col;p.col--) X pchar(&p,'<'); X delay(10); X for (;p.col < you.col;p.col++) X! remove(&p); X } X return(1); X } X--- 700,712 ---- X pchar(&p,'>'); X delay(10); X for (;p.col > you.col;p.col--) X! sremove(&p); X } else { X for (p.col = you.col-1;p.col >= ps->col;p.col--) X pchar(&p,'<'); X delay(10); X for (;p.col < you.col;p.col++) X! sremove(&p); X } X return(1); X } X*************** X*** 818,824 **** X return(0); X } X X! remove(sp) X struct point *sp; X { X int j; X--- 818,824 ---- X return(0); X } X X! sremove(sp) X struct point *sp; X { X int j; X*** ./usr/src/games/snake/move.c.old Tue Jan 7 20:49:48 2020 X--- ./usr/src/games/snake/move.c Fri Dec 26 00:00:21 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2020/1/7"; X #endif X X /************************************************************************* X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.3 (2.11BSD) 2025/12/25"; X #endif X X /************************************************************************* X*************** X*** 373,383 **** X pstring(str); X } X X! printf(st,v0,v1,v2,v3,v4,v5,v6,v7,v8,v9) X! char *st; X! int v0,v1,v2,v3,v4,v5,v6,v7,v8,v9; X { X! sprintf(str,st,v0,v1,v2,v3,v4,v5,v6,v7,v8,v9); X pstring(str); X } X X--- 373,386 ---- X pstring(str); X } X X! int X! printf(const char *fmt, ...) X { X! va_list ap; X! X! va_start(ap, fmt); X! vsprintf(str, fmt, ap); X! va_end(ap); X pstring(str); X } X X*** ./usr/src/games/trek/Makefile.old Wed Feb 25 21:25:42 1987 X--- ./usr/src/games/trek/Makefile Sat Nov 29 14:07:47 2025 X*************** X*** 3,14 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1 (Berkeley) 5/30/85 X # X- DESTDIR= X CFLAGS= -O X! LFLAGS= X! SEPFLAG= -i X SRCS= abandon.c attack.c autover.c capture.c check_out.c checkcond.c \ X compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \ X dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \ X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/29 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= abandon.c attack.c autover.c capture.c check_out.c checkcond.c \ X compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \ X dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \ X*************** X*** 28,34 **** X HDRS= getpar.h trek.h X X trek: ${OBJS} ${HDRS} X! cc ${SEPFLAG} ${LFLAGS} -o trek ${OBJS} -lm X X ${OBJS}: X ${CC} ${CFLAGS} -c $*.c X--- 26,32 ---- X HDRS= getpar.h trek.h X X trek: ${OBJS} ${HDRS} X! cc ${LDFLAGS} -o trek ${OBJS} -lm X X ${OBJS}: X ${CC} ${CFLAGS} -c $*.c X*************** X*** 37,182 **** X ctags $(SRCS) X X install: trek X! install -s trek ${DESTDIR}/usr/games/trek X X clean: X rm -f a.out core ${OBJS} trek X X! depend: X! cat x.c X! for i in ${SRCS}; do \ X! (echo `basename $$i .c`.o: $$i >>makedep; \ X! /bin/grep '^#[ ]*include' x.c $$i | sed \ X! -e 's,<\(.*\)>,"/usr/include/\1",' \ X! -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ X! -e 's/\.c/.o/' >>makedep); done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep x.c X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! abandon.o: abandon.c X! abandon.o: trek.h X! attack.o: attack.c X! attack.o: trek.h X! autover.o: autover.c X! autover.o: trek.h X! capture.o: capture.c X! capture.o: trek.h X! check_out.o: check_out.c X! check_out.o: trek.h X! checkcond.o: checkcond.c X! checkcond.o: trek.h X! compkl.o: compkl.c X! compkl.o: trek.h X! computer.o: computer.c X! computer.o: trek.h X! computer.o: getpar.h X! computer.o: /usr/include/stdio.h X! damage.o: damage.c X! damage.o: trek.h X! damaged.o: damaged.c X! damaged.o: trek.h X! dcrept.o: dcrept.c X! dcrept.o: trek.h X! destruct.o: destruct.c X! destruct.o: trek.h X! dock.o: dock.c X! dock.o: trek.h X! dumpgame.o: dumpgame.c X! dumpgame.o: trek.h X! dumpme.o: dumpme.c X! dumpme.o: trek.h X! dumpssradio.o: dumpssradio.c X! dumpssradio.o: trek.h X! events.o: events.c X! events.o: trek.h X! externs.o: externs.c X! externs.o: trek.h X! getcodi.o: getcodi.c X! getcodi.o: getpar.h X! getpar.o: getpar.c X! getpar.o: /usr/include/stdio.h X! getpar.o: getpar.h X! help.o: help.c X! help.o: trek.h X! impulse.o: impulse.c X! impulse.o: trek.h X! initquad.o: initquad.c X! initquad.o: trek.h X! kill.o: kill.c X! kill.o: trek.h X! klmove.o: klmove.c X! klmove.o: trek.h X! lose.o: lose.c X! lose.o: trek.h X! lrscan.o: lrscan.c X! lrscan.o: trek.h X! main.o: main.c X! main.o: trek.h X! main.o: /usr/include/stdio.h X! main.o: /usr/include/sgtty.h X! move.o: move.c X! move.o: trek.h X! nova.o: nova.c X! nova.o: trek.h X! out.o: out.c X! out.o: trek.h X! phaser.o: phaser.c X! phaser.o: trek.h X! phaser.o: getpar.h X! play.o: play.c X! play.o: trek.h X! play.o: getpar.h X! ram.o: ram.c X! ram.o: trek.h X! ranf.o: ranf.c X! ranf.o: /usr/include/stdio.h X! rest.o: rest.c X! rest.o: trek.h X! rest.o: getpar.h X! schedule.o: schedule.c X! schedule.o: trek.h X! score.o: score.c X! score.o: trek.h X! score.o: getpar.h X! setup.o: setup.c X! setup.o: trek.h X! setup.o: getpar.h X! setwarp.o: setwarp.c X! setwarp.o: trek.h X! setwarp.o: getpar.h X shell.o: shell.c X! shield.o: shield.c X! shield.o: trek.h X! shield.o: getpar.h X! snova.o: snova.c X! snova.o: trek.h X! srscan.o: srscan.c X! srscan.o: trek.h X! srscan.o: getpar.h X! systemname.o: systemname.c X! systemname.o: trek.h X! torped.o: torped.c X! torped.o: /usr/include/stdio.h X! torped.o: trek.h X utility.o: utility.c X! visual.o: visual.c X! visual.o: trek.h X! warp.o: warp.c X! warp.o: trek.h X! win.o: win.c X! win.o: trek.h X! win.o: getpar.h X! cgetc.o: cgetc.c X! cgetc.o: /usr/include/stdio.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 35,102 ---- X ctags $(SRCS) X X install: trek X! install -c -s -m 755 -o root trek /usr/games/trek X X clean: X rm -f a.out core ${OBJS} trek X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! abandon.o: abandon.c trek.h X! attack.o: attack.c trek.h X! autover.o: autover.c trek.h X! capture.o: capture.c trek.h X! check_out.o: check_out.c trek.h X! checkcond.o: checkcond.c trek.h X! compkl.o: compkl.c trek.h X! computer.o: computer.c trek.h getpar.h /usr/include/stdio.h X! damage.o: damage.c trek.h X! damaged.o: damaged.c trek.h X! dcrept.o: dcrept.c trek.h X! destruct.o: destruct.c trek.h X! dock.o: dock.c trek.h X! dumpgame.o: dumpgame.c trek.h X! dumpme.o: dumpme.c trek.h X! dumpssradio.o: dumpssradio.c trek.h X! events.o: events.c trek.h X! externs.o: externs.c trek.h X! getcodi.o: getcodi.c getpar.h X! getpar.o: getpar.c /usr/include/stdio.h getpar.h X! help.o: help.c trek.h X! impulse.o: impulse.c trek.h X! initquad.o: initquad.c trek.h X! kill.o: kill.c trek.h X! klmove.o: klmove.c trek.h X! lose.o: lose.c trek.h /usr/include/setjmp.h X! lrscan.o: lrscan.c trek.h X! main.o: main.c trek.h /usr/include/stdio.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 /usr/include/setjmp.h X! move.o: move.c trek.h X! nova.o: nova.c trek.h X! out.o: out.c trek.h X! phaser.o: phaser.c trek.h getpar.h X! play.o: play.c trek.h getpar.h /usr/include/setjmp.h X! ram.o: ram.c trek.h X! ranf.o: ranf.c /usr/include/stdio.h X! rest.o: rest.c trek.h getpar.h X! schedule.o: schedule.c trek.h X! score.o: score.c trek.h getpar.h X! setup.o: setup.c trek.h getpar.h X! setwarp.o: setwarp.c trek.h getpar.h X shell.o: shell.c X! shield.o: shield.c trek.h getpar.h X! snova.o: snova.c trek.h X! srscan.o: srscan.c trek.h getpar.h X! systemname.o: systemname.c trek.h X! torped.o: torped.c /usr/include/stdio.h trek.h X utility.o: utility.c X! visual.o: visual.c trek.h X! warp.o: warp.c trek.h X! win.o: win.c trek.h getpar.h /usr/include/setjmp.h X! cgetc.o: cgetc.c /usr/include/stdio.h X! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/games/trek/main.c.old Sun Nov 20 22:08:27 1994 X--- ./usr/src/games/trek/main.c Sat Dec 27 09:19:32 2025 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.1.1 (2.11BSD GTE) 11/20/94"; X #endif X X # include "trek.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[] = "@(#)main.c 5.1.2 (2.11BSD) 2025/12/27"; X #endif X X # include "trek.h" X*************** X*** 171,177 **** X case 'p': /* set priority */ X if (getuid() != Mother) X goto badflag; X! if (scanf(-1, &av[0][2], "%d", &prio) > 0) X break; X X default: X--- 171,177 ---- X case 'p': /* set priority */ X if (getuid() != Mother) X goto badflag; X! if (sscanf(&av[0][2], "%d", &prio) > 0) X break; X X default: X*** ./usr/src/games/hack/hack.h.old Mon Dec 8 15:51:42 2025 X--- ./usr/src/games/hack/hack.h Thu Jan 1 13:01:40 2026 X*************** X*** 1,5 **** X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.h - version 1.0.3 */ X X #include "config.h" X X--- 1,5 ---- X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.h - version 1.0.4 (2.11BSD) 2025/12/25 */ X X #include "config.h" X X*************** X*** 25,31 **** X #include "def.obj.h" X #include "def.flag.h" X X- extern char *sprintf(); X #define plur(x) (((x) == 1) ? "" : "s") X X #define BUFSZ 256 /* for getlin buffers */ X--- 25,30 ---- X*** ./usr/src/games/hack/Makefile.old Mon Oct 3 16:14:22 2022 X--- ./usr/src/games/hack/Makefile Sun Dec 28 06:28:32 2025 X*************** X*** 1,15 **** X! # #(@) Makefile 1.3 (2.11BSD) 2022/10/2 X # X- # Hack Overlay Makefile. X- X # on some systems the termcap library is in -ltermcap X TERMLIB = -ltermlib X X- # make hack X GAME = hack X BINDIR = /usr/games X LIBDIR = /usr/games/lib/hackdir X- DESTDIR = X GAMEUID = daemon X CFLAGS = -O X X--- 1,11 ---- X! # #(@) Makefile 1.4 (2.11BSD) 2025/11/25 X # X # on some systems the termcap library is in -ltermcap X TERMLIB = -ltermlib X X GAME = hack X BINDIR = /usr/games X LIBDIR = /usr/games/lib/hackdir X GAMEUID = daemon X CFLAGS = -O X X*************** X*** 72,78 **** X # X BASE = strings.o hack.monst.o hack.Decl.o\ X hack.invent.o hack.dog.o hack.mon.o\ X! hack.engrave.o rnd.o hack.track.o X X OV1 = hack.shk.o hack.topl.o hack.o hack.end.o hack.trap.o X X--- 68,74 ---- X # X BASE = strings.o hack.monst.o hack.Decl.o\ X hack.invent.o hack.dog.o hack.mon.o\ X! rnd.o hack.track.o X X OV1 = hack.shk.o hack.topl.o hack.o hack.end.o hack.trap.o X X*************** X*** 88,94 **** X hack.options.o hack.pager.o hack.wield.o X X OV5 = hack.save.o hack.lev.o hack.mklev.o hack.mkshop.o hack.mkmaze.o\ X! hack.shknam.o hack.u_init.o\ X hack.rip.o hack.bones.o hack.worm.o hack.steal.o hack.version.o X X # Crypt *MUST be listed BEFORE $(HOBJ) X--- 84,90 ---- X hack.options.o hack.pager.o hack.wield.o X X OV5 = hack.save.o hack.lev.o hack.mklev.o hack.mkshop.o hack.mkmaze.o\ X! hack.engrave.o hack.shknam.o hack.u_init.o\ X hack.rip.o hack.bones.o hack.worm.o hack.steal.o hack.version.o X X # Crypt *MUST be listed BEFORE $(HOBJ) X*************** X*** 145,171 **** X @echo lint -axbh -DLINT ... X @lint -axbh -DLINT $(HACKCSRC) | sed '/_flsbuf/d' X X- X- diff: X- @- for i in $(SOURCES) $(AUX) ; do \ X- cmp -s $$i $D/$$i || \ X- ( echo diff $D/$$i $$i ; diff $D/$$i $$i ; echo ) ; done X- X- distribution: Makefile X- @- for i in READ_ME $(SOURCES) $(AUX) Makefile date.h hack.onames.h\ X- ; do \ X- cmp -s $$i $D/$$i || \ X- ( echo cp $$i $D ; cp $$i $D ) ; done X- # the distribution directory also contains the empty files X- # perm and record, and the informative files Porting and Bugs. X- X- X install: $(GAME) X! install -o $(GAMEUID) -m 4711 $(GAME) $(DESTDIR)$(BINDIR)/$(GAME) X! -rm -rf $(DESTDIR)/$(LIBDIR) X! -mkdir -p ${DESTDIR}/${LIBDIR} X! chown daemon ${DESTDIR}/${LIBDIR} X! chmod 700 ${DESTDIR}/${LIBDIR} X X # The make node `depend' has been commented out as the current dependency X # list is [now] not as simple as it used to be ... The reason for this is X--- 141,152 ---- 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! -rm -rf $(LIBDIR) X! -mkdir -p ${LIBDIR} X! chown daemon ${LIBDIR} X! chmod 700 ${LIBDIR} X X # The make node `depend' has been commented out as the current dependency X # list is [now] not as simple as it used to be ... The reason for this is X*** ./usr/src/games/phantasia/Makefile.old Tue Jan 7 20:47:07 2020 X--- ./usr/src/games/phantasia/Makefile Tue Dec 23 20:06:58 2025 X*************** X*** 1,4 **** X! # Makefile for Phantasia 3.3 (1.3 2.11BSD - 2020/1/7) X X # MODIFIED TO COMPILE WITHOUT 'XSTR'. X X--- 1,4 ---- X! # Makefile for Phantasia 3.3 (1.4 2.11BSD - 2025/11/25) X X # MODIFIED TO COMPILE WITHOUT 'XSTR'. X X*************** X*** 17,24 **** X LIBS = -lm -lcurses -ltermlib X # May need '-I/usr/include/sys' for 4.2bsd X CFLAGS = -I. -Dpdp11 X! SEPFLAG= -i X! DESTDIR= 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--- 17,23 ---- 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*************** X*** 61,70 **** X #phantasia: ${OFILES} ${NOOPT} strings.o X phantasia: ${OFILES} ${NOOPT} X # ${CC} ${OFILES} ${NOOPT} strings.o ${LIBS} -o phantasia X! -if [ X${SEPFLAG} = "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${SEPFLAG} = "X-n" ]; then \ X @echo "Need overlay scheme (HA!)"; \ X else \ X ${CC} ${OFILES} ${NOOPT} ${LIBS} -o phantasia; \ X--- 60,69 ---- 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*************** X*** 98,112 **** X # what the relative path is. X X install: all phantasia.0 X! rm -f ${DESTDIR}/usr/games/phantasia X! ln -s lib/phantasia/phantasia ${DESTDIR}/usr/games/phantasia X! -mkdir ${DESTDIR}${DEST} X! cp phantasia monsters phant.help ${DESTDIR}${DEST} X! chmod 755 ${DESTDIR}${DEST} X! chmod 4711 ${DESTDIR}${DEST}/phantasia X! chmod 644 ${DESTDIR}${DEST}/phant.help X ./setfiles X! install -m 444 -o bin -g bin phantasia.0 ${DESTDIR}/usr/man/cat6 X X phantasia.0: phant.nr X /usr/man/manroff phant.nr > phantasia.0 X--- 97,111 ---- 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*** ./usr/src/games/phantasia/setfiles.c.old Tue Jan 7 20:48:24 2020 X--- ./usr/src/games/phantasia/setfiles.c Wed Dec 24 09:38:25 2025 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)setfiles.c 1.1 (2.11BSD) 2020/1/7"; 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.2 (2.11BSD) 2025/12/23"; X #endif X X #include "phant.h" X*************** X*** 108,113 **** X--- 108,114 ---- 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 buildchar(stat) /* put in some default values */ X*** ./usr/src/games/sail/Makefile.old Thu Mar 13 12:51:22 2025 X--- ./usr/src/games/sail/Makefile Thu Dec 25 23:47:01 2025 X*************** X*** 3,14 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (Berkeley) 9/17/85 X # X X CTAGS = ctags -w X CFLAGS = -O X! SEPFLAG= -i X X CFILES = main.c pl_main.c pl_1.c pl_2.c pl_3.c pl_4.c pl_5.c pl_6.c pl_7.c \ X dr_main.c dr_1.c dr_2.c dr_3.c dr_4.c dr_5.c lo_main.c \ X--- 3,14 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/12/25 X # X X CTAGS = ctags -w X CFLAGS = -O X! LDFLAGS= -i X X CFILES = main.c pl_main.c pl_1.c pl_2.c pl_3.c pl_4.c pl_5.c pl_6.c pl_7.c \ X dr_main.c dr_1.c dr_2.c dr_3.c dr_4.c dr_5.c lo_main.c \ X*************** X*** 23,34 **** X X SAILMASTER = daemon X LOGFILE = lib/saillog X! TARGET = $(DESTDIR)/usr/games X X all: sail sail.0 X X sail: $(OBJS) X! $(CC) -o sail ${SEPFLAG} $(OBJS) $(LIBS) X X sail.0: sail.6 X /usr/man/manroff sail.6 > sail.0 X--- 23,34 ---- X X SAILMASTER = daemon X LOGFILE = lib/saillog X! TARGET = /usr/games X X all: sail sail.0 X X sail: $(OBJS) X! $(CC) -o sail ${LDFLAGS} $(OBJS) $(LIBS) X X sail.0: sail.6 X /usr/man/manroff sail.6 > sail.0 X*************** X*** 46,53 **** X rm -f $(OBJS) $(JUNKFILES) sail.0 X X install: sail $(TARGET)/$(LOGFILE) sail.0 X! install -s -m 4755 -o $(SAILMASTER) sail $(TARGET)/sail X! install -c -o bin -g bin -m 444 sail.0 ${DESTDIR}/usr/man/cat6/sail.0 X X logfile $(TARGET)/$(LOGFILE): X cp /dev/null $(TARGET)/$(LOGFILE) X--- 46,53 ---- X rm -f $(OBJS) $(JUNKFILES) sail.0 X X install: sail $(TARGET)/$(LOGFILE) sail.0 X! install -c -s -m 4755 -o $(SAILMASTER) sail $(TARGET)/sail X! install -c -o root -g staff -m 444 sail.0 /usr/man/cat6/sail.0 X X logfile $(TARGET)/$(LOGFILE): X cp /dev/null $(TARGET)/$(LOGFILE) X*** ./usr/src/games/btlgammon/Makefile.old Mon Jan 18 10:56:02 1993 X--- ./usr/src/games/btlgammon/Makefile Mon Dec 8 16:01:44 2025 X*************** X*** 1,36 **** X! # @(#)Makefile 4.2 (Berkeley) 9/7/85 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X btlgammon: btlgammon.c X! cc ${SEPFLAG} ${CFLAGS} -o btlgammon btlgammon.c X X install: btlgammon backrules X! install -s btlgammon ${DESTDIR}/usr/games/btlgammon X! install -c backrules ${DESTDIR}/usr/games/lib/backrules X X clean: X rm -f a.out core *.s *.o btlgammon X X! depend: X! cat x.c X! for i in btlgammon; do \ X! (echo $$i: $$i.c >>makedep; \ X! /bin/grep '^#[ ]*include' x.c $$i.c | sed \ X! -e 's,<\(.*\)>,"/usr/include/\1",' \ X! -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ X! -e 's/\.c//' >>makedep); done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep x.c X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X! X! # DO NOT DELETE THIS LINE -- make depend uses it X! X--- 1,17 ---- X! # @(#)Makefile 4.3 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X X btlgammon: btlgammon.c X! cc ${LDFLAGS} ${CFLAGS} -o btlgammon btlgammon.c X X install: btlgammon backrules X! install -c -s -m 755 btlgammon /usr/games/btlgammon X! install -c backrules /usr/games/lib/backrules X X clean: X rm -f a.out core *.s *.o btlgammon X X! depend: btlgammon.c X! mkdep ${CFLAGS} btlgammon.c X*** ./usr/src/games/hunt/Makefile.old Wed Feb 25 21:22:00 1987 X--- ./usr/src/games/hunt/Makefile Mon Dec 8 16:05:42 2025 X*************** X*** 1,3 **** X--- 1,4 ---- X+ # Makefile 2.0 (2.11BSD) 2025/11/25 X # X # Hunt X # Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold X*************** X*** 35,42 **** X DEFS= -I. -DBROADCAST -DRANDOM -DREFLECT -DMONITOR -DINTERNET \ X -DOOZE -DFLY -DVOLCANO X CFLAGS= -O $(DEFS) X! LDFLAGS= X! SEPFLAG= -i X PROFLAGS= X LD= /bin/ld X .SUFFIXES: .uu .obj .c,v X--- 36,42 ---- X DEFS= -I. -DBROADCAST -DRANDOM -DREFLECT -DMONITOR -DINTERNET \ X -DOOZE -DFLY -DVOLCANO X CFLAGS= -O $(DEFS) X! LDFLAGS= -i X PROFLAGS= X LD= /bin/ld X .SUFFIXES: .uu .obj .c,v X*************** X*** 55,65 **** X debug: hunt.dbg hunt.driver.dbg X X hunt.dbg: $(POBJ) pathname.dbg.o X! $(CC) ${SEPFLAG} $(LDFLAGS) -o hunt.dbg \ X $(POBJ) pathname.dbg.o -lcurses -ltermlib X X hunt.driver.dbg: $(DOBJ) pathname.dbg.o X! $(CC) ${SEPFLAG} $(PROFLAGS) $(LDFLAGS) -o hunt.driver.dbg \ X $(DOBJ) pathname.dbg.o X X # X--- 55,65 ---- X debug: hunt.dbg hunt.driver.dbg X X hunt.dbg: $(POBJ) pathname.dbg.o X! $(CC) $(LDFLAGS) -o hunt.dbg \ X $(POBJ) pathname.dbg.o -lcurses -ltermlib X X hunt.driver.dbg: $(DOBJ) pathname.dbg.o X! $(CC) $(PROFLAGS) $(LDFLAGS) -o hunt.driver.dbg \ X $(DOBJ) pathname.dbg.o X X # X*************** X*** 83,97 **** X # System installation X # X install: standard X! install -s hunt.driver $(DESTDIR)/usr/games/lib/hunt.driver X! install -s hunt $(DESTDIR)/usr/games/hunt X X hunt: $(POBJ) pathname.o X! $(CC) ${SEPFLAG} $(LDFLAGS) -o hunt $(POBJ) \ X pathname.o -lcurses -ltermlib X X hunt.driver: $(DOBJ) pathname.o X! $(CC) ${SEPFLAG} $(PROFLAGS) $(LDFLAGS) -o hunt.driver \ X $(DOBJ) pathname.o X X # X--- 83,97 ---- X # System installation X # X install: standard X! install -c -s -m 755 hunt.driver /usr/games/lib/hunt.driver X! install -c -s -m 755 hunt /usr/games/hunt X X hunt: $(POBJ) pathname.o X! $(CC) $(LDFLAGS) -o hunt $(POBJ) \ X pathname.o -lcurses -ltermlib X X hunt.driver: $(DOBJ) pathname.o X! $(CC) $(PROFLAGS) $(LDFLAGS) -o hunt.driver \ X $(DOBJ) pathname.o X X # X*** ./usr/src/games/hunt/hunt.h.old Tue Jan 7 20:44:27 2020 X--- ./usr/src/games/hunt/hunt.h Thu Dec 25 23:59:25 2025 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hunt.h 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.h 1.2 (2.11BSD) 2025/12/25"; X #endif X X # include X*************** X*** 300,306 **** X * function types X */ X X! char *getenv(), *malloc(), *sprintf(), *strcpy(), *strncpy(); X X IDENT *get_ident(); X X--- 300,306 ---- X * function types X */ X X! char *getenv(), *malloc(), *strcpy(), *strncpy(); X X IDENT *get_ident(); X X*** ./usr/src/games/hunt/playit.c.old Tue Jan 7 20:45:08 2020 X--- ./usr/src/games/hunt/playit.c Thu Dec 25 23:59:55 2025 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)playit.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[] = "@(#)playit.c 1.2 (2.11BSD) 2025/12/25"; X #endif X X # include X*************** X*** 43,49 **** X */ X static char ibuf[20]; X X! #define GETCHR(fd) (--(fd)->_cnt >= 0 ? *(fd)->_ptr++&0377 : getchr(fd)) X X /* X * playit: X--- 43,49 ---- X */ X static char ibuf[20]; X X! #define GETCHR(fd) (--(fd)->_r >= 0 ? *(fd)->_p++&0377 : getchr(fd)) X X /* X * playit: X*************** X*** 203,209 **** X send_stuff(); X if ((readfds & driver_mask) == 0) X goto one_more_time; X! return _filbuf(fd); X } X X /* X--- 203,209 ---- X send_stuff(); X if ((readfds & driver_mask) == 0) X goto one_more_time; X! return __srget(fd); X } X X /* X*** ./usr/src/games/rogue/Makefile.old Sun Dec 1 16:47:29 1996 X--- ./usr/src/games/rogue/Makefile Mon Dec 8 16:08:36 2025 X*************** X*** 9,15 **** X # software without specific written prior permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.3.1 (2.11BSD) 1996/12/1 X # X CFLAGS= -O -DUNIX -DUNIX_BSD4_2 X SRCS= curses.c \ X--- 9,15 ---- 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*************** X*** 71,78 **** X mkdep ${CFLAGS} ${SRCS} X X install: rogue X! install -s -o games -g bin -m 4700 rogue ${DESTDIR}/usr/games/hide X! (cd ${DESTDIR}/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 -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*** ./usr/src/games/Makefile.old Sat Jul 26 23:06:07 1997 X--- ./usr/src/games/Makefile Mon Dec 8 16:01:04 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.5 (2.11BSD) 1997/7/26 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X # Programs that live in subdirectories, and have makefiles of their own. X # X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6 (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 # X*************** X*** 33,54 **** X all: ${SUBDIR} ${STD} ${NSTD} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X ${STD}: X! cc ${CFLAGS} ${SEPFLAG} -o $@ $@.c X X install: ${STD} ${NSTD} X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X -for i in ${SCRIPT}; do \ X! (install -c -m 755 $$i.sh ${DESTDIR}/usr/games/$$i); done X -for i in ${STD} ${NSTD}; do \ X! (install -s -m 755 $$i ${DESTDIR}/usr/games/$$i); done X! cat >${DESTDIR}/usr/games/lib/cfscores /usr/games/lib/cfscores X X /* X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "wump.c 4.2 (2.11BSD) 2025/12/25"; X+ #endif X X #include X X /* X*************** X*** 388,398 **** X #include X drain() X { X! register FILE *port = stdin; X! register int iodes = fileno(port); X struct sgttyb arg; X X! port->_cnt = 0; X! port->_ptr = port->_base; X if(gtty(iodes,&arg) != -1) stty(iodes,&arg); X } X--- 388,396 ---- X #include X drain() X { X! register int iodes = fileno(stdin); X struct sgttyb arg; X X! fpurge(stdin); X if(gtty(iodes,&arg) != -1) stty(iodes,&arg); X } X*** ./usr/src/games/number.c.old Wed Aug 26 00:02:37 1987 X--- ./usr/src/games/number.c Sat Dec 27 09:25:15 2025 X*************** X*** 1,6 **** X X- static char sccsid[] = " number.c 4.1 82/10/24 "; X- X #include X X int flag; X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = " number.c 4.1 (2.11BSD) 2025/12/27"; X+ #endif X X #include X X int flag; X*************** X*** 195,200 **** X--- 196,202 ---- X } X X print(s) X+ char *s; X { X X if(flag) X*** ./usr/src/lib/c2/Makefile.old Sun May 6 16:22:17 1990 X--- ./usr/src/lib/c2/Makefile Tue Nov 25 14:22:31 2025 X*************** X*** 1,20 **** X! SEPFLAG=-i X CFLAGS= -O X X- DESTDIR= X LIB= /lib X X c2: c20.o c21.o X! cc ${CFLAGS} ${SEPFLAG} -o c2 c20.o c21.o X X c20.o c21.o: c2.h X X install: c2 X! -mv ${DESTDIR}${LIB}/c2 ${DESTDIR}${LIB}/oc2 X! install -s c2 ${DESTDIR}${LIB} X X restore: X! mv ${DESTDIR}${LIB}/oc2 ${DESTDIR}${LIB}/c2 X X clean: X rm -f *.o c2 X--- 1,21 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! X! LDFLAGS=-i X CFLAGS= -O X X LIB= /lib X X c2: c20.o c21.o X! cc ${CFLAGS} ${LDFLAGS} -o c2 c20.o c21.o X X c20.o c21.o: c2.h X X install: c2 X! -mv ${LIB}/c2 ${LIB}/oc2 X! install -s c2 ${LIB} X X restore: X! mv ${LIB}/oc2 ${LIB}/c2 X X clean: X rm -f *.o c2 X*** ./usr/src/lib/cpp/Makefile.old Fri Aug 29 20:35:16 2025 X--- ./usr/src/lib/cpp/Makefile Mon Dec 8 13:36:14 2025 X*************** X*** 1,8 **** X! # Makefile 2.2 (2.11BSD) 2025/8/29 X # X X # if machine has separate I/D X! SEPFLAG=-i X VMPGS = 12 X # else X # LDFLAGS = X--- 1,8 ---- X! # Makefile 2.3 (2.11BSD) 2025/11/25 X # X X # if machine has separate I/D X! LDFLAGS=-i X VMPGS = 12 X # else X # LDFLAGS = X*************** X*** 14,20 **** X all : cpp cpp.0 X X cpp : cpp.o cpc.o token.o X! $(CC) $(CFLAGS) $(SEPFLAG) -o cpp cpp.o cpc.o token.o -lvmf -lstubs X X cpp.0 : cpp.1 X /usr/man/manroff cpp.1 > cpp.0 X--- 14,20 ---- X all : cpp cpp.0 X X cpp : cpp.o cpc.o token.o X! $(CC) $(CFLAGS) $(LDFLAGS) -o cpp cpp.o cpc.o token.o -lvmf -lstubs X X cpp.0 : cpp.1 X /usr/man/manroff cpp.1 > cpp.0 X*************** X*** 24,27 **** X X install : cpp cpp.0 X install -s -m 755 -o root -g wheel cpp /lib X! install -m 444 -o bin -g bin cpp.0 /usr/man/cat1 X--- 24,27 ---- X X install : cpp cpp.0 X install -s -m 755 -o root -g wheel cpp /lib X! install -m 444 -o root -g staff cpp.0 /usr/man/cat1 X*** ./usr/src/lib/cpp/cpp.c.old Fri Aug 29 20:35:55 2025 X--- ./usr/src/lib/cpp/cpp.c Wed Dec 24 08:01:26 2025 X*************** X*** 1365,1371 **** X if (macget(begpos) == CONC) X goto bad; /* 6.10.3.3 p1 */ X X! if (redef && ifiles->idx != SYSINC) { X if (cmprepl(np->valoff, begpos) || X np->type != type || np->narg != narg) { /* not equal */ X np->valoff = begpos; X--- 1365,1371 ---- X if (macget(begpos) == CONC) X goto bad; /* 6.10.3.3 p1 */ X X! if (redef) { X if (cmprepl(np->valoff, begpos) || X np->type != type || np->narg != narg) { /* not equal */ X np->valoff = begpos; X*** ./usr/src/lib/ccom/TEST/Makefile.old Sat Nov 23 09:04:45 2019 X--- ./usr/src/lib/ccom/TEST/Makefile Tue Nov 25 14:28:31 2025 X*************** X*** 1,5 **** X CFLAGS= -O X! SEPFLAG= -i X LIB= /lib X ALL= tst_adec tst_rhh-g tst_pntint tst_asm tst_lgm-g \ X tst_sgncmp tst_assign old-assn X--- 1,7 ---- X+ # Makefile 2.0 (2.11BSD) 2025/11/25 X+ X CFLAGS= -O X! LDFLAGS= -i X LIB= /lib X ALL= tst_adec tst_rhh-g tst_pntint tst_asm tst_lgm-g \ X tst_sgncmp tst_assign old-assn X*************** X*** 47,53 **** X X old-assn: old-assn.l X lex old-assn.l X! ${CC} ${SEPFLAG} ${CFLAGS} -o old-assn lex.yy.c -lln X rm lex.yy.c X X clean: X--- 49,55 ---- X X old-assn: old-assn.l X lex old-assn.l X! ${CC} ${LDFLAGS} ${CFLAGS} -o old-assn lex.yy.c -lln X rm lex.yy.c X X clean: X*** ./usr/src/lib/ccom/c12.c.old Tue Jan 7 13:23:22 2020 X--- ./usr/src/lib/ccom/c12.c Thu Dec 25 19:31:25 2025 X*************** X*** 3,14 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c12.c 2.0 (2.11BSD) 2020/1/7"; X #endif X X #include "c1.h" X #include /* for MAX */ X X union tree * X optim(tree) X register union tree *tree; X--- 3,16 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c12.c 2.1 (2.11BSD) 2025/12/25"; X #endif X X #include "c1.h" X #include /* for MAX */ X X+ static char *divcheck = "Divide Check"; X+ X union tree * X optim(tree) X register union tree *tree; X*************** X*** 926,932 **** X } X } X if (v==0) X! werror("divide check"); X else X if (type==INT) X if (op==DIVIDE || op==UDIV) X--- 928,934 ---- X } X } X if (v==0) X! werror(divcheck); X else X if (type==INT) X if (op==DIVIDE || op==UDIV) X*************** X*** 1016,1022 **** X case DIVIDE: X case LDIV: X if (r==0) X! error("Divide check"); X else X l /= r; X break; X--- 1018,1024 ---- X case DIVIDE: X case LDIV: X if (r==0) X! error(divcheck); X else X l /= r; X break; X*************** X*** 1024,1030 **** X case MOD: X case LMOD: X if (r==0) X! error("Divide check"); X else X l %= r; X break; X--- 1026,1032 ---- X case MOD: X case LMOD: X if (r==0) X! error(divcheck); X else X l %= r; X break; X*** ./usr/src/lib/ccom/c10.c.old Thu Jun 20 00:24:38 1996 X--- ./usr/src/lib/ccom/c10.c Fri Dec 26 00:01:01 2025 X*************** X*** 6,12 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c10.c 2.1 (2.11BSD GTE) 10/4/94"; 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.2 (2.11BSD) 2025/12/25"; X #endif X X #include "c1.h" X*************** X*** 1370,1372 **** X--- 1370,1380 ---- X c = isfloat(tree); X printf("mov%.1s r%d,r%d\n", &c, r0, r1); X } X+ X+ char * X+ __pfcom() X+ { X+ asm(".globl fltused ; fltused:"); X+ return NULL; X+ } X+ X*** ./usr/src/lib/ccom/ansi.c.old Mon Mar 9 20:05:10 2020 X--- ./usr/src/lib/ccom/ansi.c Thu Dec 25 19:21:39 2025 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ansi.c 1.0 (2.11BSD) 2020/1/7"; X #endif X X #include "c0.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ansi.c 1.1 (2.11BSD) 2025/12/25"; X #endif X X #include "c0.h" X*************** X*** 216,222 **** X return p; X } X X! perr: error("call do not match prototype"); X return p; X } X X--- 216,222 ---- X return p; X } X X! perr: error("call does not match prototype"); X return p; X } X X*** ./usr/src/lib/libc/gen/Makefile.old Thu Jan 1 00:53:48 1998 X--- ./usr/src/lib/libc/gen/Makefile Fri Jan 2 18:45: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! # @(#)Makefile 5.7.11 (2.11BSD) 1997/12/31 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.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*************** X*** 73,318 **** X clean: X rm -f genlib genlib_p *.o profiled/*.o tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X! X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! abort.o: abort.c /usr/include/signal.h X! alarm.o: alarm.c /usr/include/sys/time.h /usr/include/time.h X! atoi.o: atoi.c X! atol.o: atol.c X! calloc.o: calloc.c X! closedir.o: closedir.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! closedir.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! closedir.o: /usr/include/signal.h /usr/include/sys/types.h X! closedir.o: /usr/include/sys/dir.h X! crypt.o: crypt.c X! ctime.o: ctime.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! ctime.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! ctime.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/time.h X! ctime.o: /usr/include/time.h /usr/include/tzfile.h X! ctype_.o: ctype_.c /usr/include/ctype.h X! daemon.o: daemon.c /usr/include/fcntl.h /usr/include/sys/types.h X! daemon.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! daemon.o: /usr/include/sys/ttydev.h /usr/include/paths.h X! devname.o: devname.c /usr/include/sys/types.h /usr/include/ndbm.h X! devname.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/paths.h X! devname.o: /usr/include/stdio.h X! err.o: err.c /usr/include/stdio.h /usr/include/varargs.h X! execvp.o: execvp.c /usr/include/errno.h X! fakcu.o: fakcu.c X! fstab.o: fstab.c /usr/include/fstab.h /usr/include/stdio.h /usr/include/ctype.h X! gcvt.o: gcvt.c X! getenv.o: getenv.c /usr/include/stdio.h X! getgrent.o: getgrent.c /usr/include/stdio.h /usr/include/grp.h X! getgrgid.o: getgrgid.c /usr/include/grp.h X! getgrnam.o: getgrnam.c /usr/include/grp.h X! getlogin.o: getlogin.c /usr/include/utmp.h X! getpass.o: getpass.c /usr/include/stdio.h /usr/include/signal.h X! getpass.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! getpass.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! getpwent.o: getpwent.c /usr/include/sys/types.h /usr/include/sys/file.h X! getpwent.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/stdio.h X! getpwent.o: /usr/include/pwd.h /usr/include/ndbm.h X! getloadavg.o: getloadavg.c /usr/include/sys/param.h X! getloadavg.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X! getloadavg.o: /usr/include/sys/types.h /usr/include/signal.h X! getloadavg.o: /usr/include/sys/types.h /usr/include/sys/sysctl.h X! getloadavg.o: /usr/include/sys/time.h /usr/include/time.h X! getloadavg.o: /usr/include/sys/resource.h /usr/include/sys/file.h X! getloadavg.o: /usr/include/fcntl.h /usr/include/sys/types.h X! getloadavg.o: /usr/include/sys/inode.h /usr/include/sys/text.h X! getloadavg.o: /usr/include/sys/proc.h /usr/include/sys/vm.h X! getloadavg.o: /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h X! getloadavg.o: /usr/include/sys/vmmac.h /usr/include/sys/vmmeter.h X! getloadavg.o: /usr/include/sys/vmsystm.h /usr/include/sys/map.h X! getloadavg.o: /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h X! getttyent.o: getttyent.c /usr/include/stdio.h /usr/include/strings.h X! getttyent.o: /usr/include/ttyent.h X! abort.o: abort.c /usr/include/signal.h X! alarm.o: alarm.c /usr/include/sys/time.h /usr/include/time.h X! atoi.o: atoi.c X! atol.o: atol.c X! calloc.o: calloc.c X! closedir.o: closedir.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! closedir.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! closedir.o: /usr/include/signal.h /usr/include/sys/types.h X! closedir.o: /usr/include/sys/dir.h X! crypt.o: crypt.c X! ctime.o: ctime.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! ctime.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! ctime.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/time.h X! ctime.o: /usr/include/time.h /usr/include/tzfile.h X! ctype_.o: ctype_.c /usr/include/ctype.h X! daemon.o: daemon.c /usr/include/fcntl.h /usr/include/sys/types.h X! daemon.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! daemon.o: /usr/include/sys/ttydev.h /usr/include/paths.h X! devname.o: devname.c /usr/include/sys/types.h /usr/include/ndbm.h X! devname.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/paths.h X! devname.o: /usr/include/stdio.h X! err.o: err.c /usr/include/stdio.h /usr/include/varargs.h X! execvp.o: execvp.c /usr/include/errno.h X! fakcu.o: fakcu.c X! fstab.o: fstab.c /usr/include/fstab.h /usr/include/stdio.h /usr/include/ctype.h X! gcvt.o: gcvt.c X! getenv.o: getenv.c /usr/include/stdio.h X! getgrent.o: getgrent.c /usr/include/stdio.h /usr/include/grp.h X! getgrgid.o: getgrgid.c /usr/include/grp.h X! getgrnam.o: getgrnam.c /usr/include/grp.h X! getlogin.o: getlogin.c /usr/include/utmp.h X! getpass.o: getpass.c /usr/include/stdio.h /usr/include/signal.h X! getpass.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! getpass.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! getpwent.o: getpwent.c /usr/include/sys/types.h /usr/include/sys/file.h X! getpwent.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/stdio.h X! getpwent.o: /usr/include/pwd.h /usr/include/ndbm.h X! getloadavg.o: getloadavg.c /usr/include/sys/param.h X! getloadavg.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X! getloadavg.o: /usr/include/sys/types.h /usr/include/signal.h X! getloadavg.o: /usr/include/sys/types.h /usr/include/sys/sysctl.h X! getloadavg.o: /usr/include/sys/time.h /usr/include/time.h X! getloadavg.o: /usr/include/sys/resource.h /usr/include/sys/file.h X! getloadavg.o: /usr/include/fcntl.h /usr/include/sys/types.h X! getloadavg.o: /usr/include/sys/inode.h /usr/include/sys/text.h X! getloadavg.o: /usr/include/sys/proc.h /usr/include/sys/vm.h X! getloadavg.o: /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h X! getloadavg.o: /usr/include/sys/vmmac.h /usr/include/sys/vmmeter.h X! getloadavg.o: /usr/include/sys/vmsystm.h /usr/include/sys/map.h X! getloadavg.o: /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h X! getttyent.o: getttyent.c /usr/include/stdio.h /usr/include/strings.h X! getttyent.o: /usr/include/ttyent.h X! getttynam.o: getttynam.c /usr/include/ttyent.h X! getusershell.o: getusershell.c /usr/include/sys/param.h X! getusershell.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X! getusershell.o: /usr/include/sys/types.h /usr/include/signal.h X! getusershell.o: /usr/include/sys/types.h /usr/include/sys/file.h X! getusershell.o: /usr/include/fcntl.h /usr/include/sys/types.h X! getusershell.o: /usr/include/sys/stat.h /usr/include/ctype.h X! getusershell.o: /usr/include/stdio.h X! getwd.o: getwd.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! getwd.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! getwd.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/stat.h X! getwd.o: /usr/include/sys/dir.h X! initgroups.o: initgroups.c /usr/include/stdio.h /usr/include/sys/param.h X! initgroups.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X! initgroups.o: /usr/include/sys/types.h /usr/include/signal.h X! initgroups.o: /usr/include/sys/types.h /usr/include/grp.h X! isatty.o: isatty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h X! isatty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! malloc.o: malloc.c X! mktemp.o: mktemp.c /usr/include/sys/types.h /usr/include/sys/file.h X! mktemp.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/sys/stat.h X! mktemp.o: /usr/include/errno.h /usr/include/stdio.h /usr/include/ctype.h X! ndbm.o: ndbm.c /usr/include/sys/types.h /usr/include/sys/stat.h X! ndbm.o: /usr/include/sys/file.h /usr/include/fcntl.h /usr/include/sys/types.h X! ndbm.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/ndbm.h X! nlist.o: nlist.c /usr/include/sys/types.h /usr/include/sys/file.h X! nlist.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/a.out.h X! nlist.o: /usr/include/sys/exec.h /usr/include/sys/types.h /usr/include/nlist.h X! nlist.o: /usr/include/sys/types.h /usr/include/stdio.h X! opendir.o: opendir.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! opendir.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! opendir.o: /usr/include/signal.h /usr/include/sys/types.h X! opendir.o: /usr/include/sys/dir.h X! perror.o: perror.c /usr/include/sys/types.h /usr/include/sys/uio.h X! popen.o: popen.c /usr/include/errno.h /usr/include/sys/signal.h X! popen.o: /usr/include/sys/types.h /usr/include/sys/wait.h /usr/include/stdio.h X! psignal.o: psignal.c /usr/include/signal.h X! qsort.o: qsort.c X! random.o: random.c /usr/include/stdio.h X! readdir.o: readdir.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! readdir.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! readdir.o: /usr/include/signal.h /usr/include/sys/types.h X! readdir.o: /usr/include/sys/dir.h X! regex.o: regex.c X! scandir.o: scandir.c /usr/include/sys/types.h /usr/include/sys/stat.h X! scandir.o: /usr/include/sys/dir.h X! seekdir.o: seekdir.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! seekdir.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! seekdir.o: /usr/include/signal.h /usr/include/sys/types.h X! seekdir.o: /usr/include/sys/dir.h X! setenv.o: setenv.c /usr/include/sys/types.h /usr/include/stdio.h X! siglist.o: siglist.c /usr/include/signal.h X! signal.o: signal.c /usr/include/signal.h X! siginterrupt.o: siginterrupt.c /usr/include/signal.h X! sleep.o: sleep.c /usr/include/sys/time.h /usr/include/time.h X! sleep.o: /usr/include/signal.h X! strcasecmp.o: strcasecmp.c X! strftime.o: strftime.c /usr/include/sys/types.h /usr/include/sys/time.h X! strftime.o: /usr/include/time.h /usr/include/tzfile.h /usr/include/string.h X! strftime.o: /usr/include/strings.h X! swab.o: swab.c X! sysctl.o: sysctl.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! sysctl.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! sysctl.o: /usr/include/signal.h /usr/include/sys/types.h X! sysctl.o: /usr/include/sys/sysctl.h /usr/include/sys/time.h /usr/include/time.h X! sysctl.o: /usr/include/sys/resource.h /usr/include/sys/file.h X! sysctl.o: /usr/include/fcntl.h /usr/include/sys/types.h X! sysctl.o: /usr/include/sys/inode.h /usr/include/sys/text.h X! sysctl.o: /usr/include/sys/proc.h /usr/include/sys/vm.h X! sysctl.o: /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h X! sysctl.o: /usr/include/sys/vmmac.h /usr/include/sys/vmmeter.h X! sysctl.o: /usr/include/sys/vmsystm.h /usr/include/sys/map.h X! sysctl.o: /usr/include/errno.h /usr/include/paths.h X! syslog.o: syslog.c /usr/include/sys/types.h /usr/include/sys/socket.h X! syslog.o: /usr/include/syslog.h /usr/include/sys/uio.h /usr/include/netdb.h X! syslog.o: /usr/include/errno.h /usr/include/fcntl.h /usr/include/sys/types.h X! syslog.o: /usr/include/paths.h /usr/include/stdio.h /usr/include/string.h X! syslog.o: /usr/include/strings.h /usr/include/time.h /usr/include/varargs.h X! system.o: system.c /usr/include/stdio.h /usr/include/sys/types.h X! system.o: /usr/include/sys/signal.h /usr/include/sys/wait.h X! telldir.o: telldir.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! telldir.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! telldir.o: /usr/include/signal.h /usr/include/sys/types.h X! telldir.o: /usr/include/sys/dir.h X! time.o: time.c /usr/include/sys/types.h /usr/include/sys/time.h X! time.o: /usr/include/time.h X! timezone.o: timezone.c /usr/include/sys/types.h /usr/include/sys/time.h X! timezone.o: /usr/include/time.h /usr/include/stdio.h /usr/include/tzfile.h X! ttyname.o: ttyname.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! ttyname.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! ttyname.o: /usr/include/signal.h /usr/include/sys/types.h X! ttyname.o: /usr/include/sys/dir.h /usr/include/sys/stat.h X! ttyslot.o: ttyslot.c /usr/include/ttyent.h X! ualarm.o: ualarm.c /usr/include/sys/time.h /usr/include/time.h X! usleep.o: usleep.c /usr/include/sys/time.h /usr/include/time.h X! usleep.o: /usr/include/signal.h X! valloc.o: valloc.c X! strdup.o: strdup.c /usr/include/sys/types.h /usr/include/stdio.h X! uname.o: uname.c /usr/include/sys/param.h /usr/include/sys/localopts.h X! uname.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! uname.o: /usr/include/signal.h /usr/include/sys/types.h X! uname.o: /usr/include/sys/sysctl.h /usr/include/sys/time.h /usr/include/time.h X! uname.o: /usr/include/sys/resource.h /usr/include/sys/file.h X! uname.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/sys/inode.h X! uname.o: /usr/include/sys/text.h /usr/include/sys/proc.h /usr/include/sys/vm.h X! uname.o: /usr/include/sys/vmparam.h /usr/include/machine/vmparam.h X! uname.o: /usr/include/sys/vmmac.h /usr/include/sys/vmmeter.h X! uname.o: /usr/include/sys/vmsystm.h /usr/include/sys/map.h X! uname.o: /usr/include/sys/utsname.h X! wait.o: wait.c /usr/include/sys/types.h /usr/include/sys/time.h X! wait.o: /usr/include/time.h /usr/include/sys/wait.h /usr/include/sys/resource.h X! wait3.o: wait3.c /usr/include/sys/types.h /usr/include/sys/time.h X! wait3.o: /usr/include/time.h /usr/include/sys/wait.h X! wait3.o: /usr/include/sys/resource.h X! waitpid.o: waitpid.c /usr/include/sys/types.h /usr/include/sys/time.h X! waitpid.o: /usr/include/time.h /usr/include/sys/wait.h X! waitpid.o: /usr/include/sys/resource.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 73,79 ---- X clean: X rm -f genlib genlib_p *.o profiled/*.o tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X*** ./usr/src/lib/libc/gen/err.c.old Fri Feb 3 23:05:33 1995 X--- ./usr/src/lib/libc/gen/err.c Sat Dec 27 08:35:49 2025 X*************** X*** 32,41 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)err.c 8.1.1 (2.11BSD GTE) 2/3/95"; X! #endif /* LIBC_SCCS and not lint */ X X #include X X #ifdef __STDC__ X #include X--- 32,43 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)err.c 8.1.2 (2.11BSD) 2025/12/27"; X! #endif X X #include X+ #include X+ #include X X #ifdef __STDC__ X #include X*************** X*** 43,49 **** X #include X #endif X X- extern int errno; X extern char *__progname; /* Program name, from crt0. */ X static void putprog(), putcolsp(); X X--- 45,50 ---- X*** ./usr/src/lib/libc/gen/syslog.c.old Sat Jul 15 22:50:18 1995 X--- ./usr/src/lib/libc/gen/syslog.c Fri Dec 26 00:02:18 2025 X*************** X*** 32,38 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)syslog.c 8.4.3 (2.11BSD) 1995/07/15"; X #endif /* LIBC_SCCS and not lint */ X X #include X--- 32,38 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)syslog.c 8.4.4 (2.11BSD) 2025/12/25"; X #endif /* LIBC_SCCS and not lint */ X X #include X*************** X*** 48,55 **** X #include X #include X X- #include X- X #define STDERR_FILENO 2 X X static int LogFile = -1; /* fd for log */ X--- 48,53 ---- X*************** X*** 73,95 **** X * print message on log file; output is intended for syslogd(8). X */ X void X! syslog(pri, fmt, va_alist) X! int pri; X! char *fmt; X! va_dcl X { X va_list ap; X X! va_start(ap); X vsyslog(pri, fmt, ap); X va_end(ap); X } X X void X! vsyslog(pri, fmt, ap) X! int pri; X! register char *fmt; X! va_list ap; X { X int cnt; X char ch; X--- 71,87 ---- X * print message on log file; output is intended for syslogd(8). X */ X void X! syslog(int pri, char *fmt, ...) X { X va_list ap; X X! va_start(ap, fmt); X vsyslog(pri, fmt, ap); X va_end(ap); X } X X void X! vsyslog(int pri, register char *fmt, va_list ap) X { X int cnt; X char ch; X*** ./usr/src/lib/libc/net/hosttable/Makefile.old Fri Jan 6 10:24:23 1989 X--- ./usr/src/lib/libc/net/hosttable/Makefile Sat Nov 29 14:02:23 2025 X*************** X*** 1,11 **** X- X # X # Copyright (c) 1983 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! # @(#)Makefile 5.4 (Berkeley) 9/5/85 X! # X X OBJS= gethnamadr.o gethostent.o X SRCS= gethnamadr.c gethostent.c X--- 1,9 ---- X # X # Copyright (c) 1983 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! # @(#)Makefile 5.5 (2.11BSD) 2025/11/29 X X OBJS= gethnamadr.o gethostent.o X SRCS= gethnamadr.c gethostent.c X*************** X*** 35,56 **** X rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X! X! # DO NOT DELETE THIS LINE -- make depend uses it X! X--- 33,37 ---- X rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o \ X tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X*** ./usr/src/lib/libc/net/named/Makefile.old Sat Jan 1 15:54:11 1994 X--- ./usr/src/lib/libc/net/named/Makefile Tue Nov 25 14:24:23 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.4 (Berkeley) 6/6/87 X # X X OBJS= gethnamadr.o sethostent.o X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.5 (2.11BSD) 2025/11/25 X # X X OBJS= gethnamadr.o sethostent.o X*************** X*** 12,18 **** X X CFLAGS= -O ${DEFS} X TAGSFILE= tags X- DESTDIR= X X .c.o: X ${CC} -p -c ${CFLAGS} $*.c X--- 12,17 ---- X*** ./usr/src/lib/libc/pdp/gen/Makefile.old Fri Apr 14 00:10:18 1995 X--- ./usr/src/lib/libc/pdp/gen/Makefile Sat Nov 29 07:42:04 2025 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.6.3 (2.11BSD GTE) 1995/04/13 X # X SRCS= _setjmp.s abs.s alloca.s atof.c bcmp.s bcopy.s bzero.s \ X ecvt.c fabs.s ffs.s frexp.s index.s insque.s ldexp.s ldfps.s \ X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6.4 (2.11BSD) 2025/11/29 X # X SRCS= _setjmp.s abs.s alloca.s atof.c bcmp.s bcopy.s bzero.s \ X ecvt.c fabs.s ffs.s frexp.s index.s insque.s ldexp.s ldfps.s \ X*************** X*** 49,101 **** X rm -f *.o profiled/*.o errs a.out core genlib genlib_p \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X X! _setjmp.o: _setjmp.s ./DEFS.h X! abs.o: abs.s ./DEFS.h X! alloca.o: alloca.s ./DEFS.h X atof.o: atof.c /usr/include/math.h /usr/include/ctype.h X! bcmp.o: bcmp.s ./DEFS.h X! bcopy.o: bcopy.s ./DEFS.h X! bzero.o: bzero.s ./DEFS.h X ecvt.o: ecvt.c X! fabs.o: fabs.s ./DEFS.h X! ffs.o: ffs.s ./DEFS.h X! frexp.o: frexp.s ./DEFS.h X! index.o: index.s ./DEFS.h X! insque.o: insque.s ./DEFS.h X! ldexp.o: ldexp.s ./DEFS.h X! modf.o: modf.s ./DEFS.h X! nsym.o: nsym.c /usr/include/a.out.h X! remque.o: remque.s ./DEFS.h X! rindex.o: rindex.s ./DEFS.h X rollback.o: rollback.s X! setjmp.o: setjmp.s ./DEFS.h X setjmperr.o: setjmperr.c /usr/include/setjmp.h X! strcat.o: strcat.s ./DEFS.h X! strcmp.o: strcmp.s ./DEFS.h X! strcpy.o: strcpy.s ./DEFS.h X! strlen.o: strlen.s ./DEFS.h X! strncat.o: strncat.s ./DEFS.h X! strncmp.o: strncmp.s ./DEFS.h X! strncpy.o: strncpy.s ./DEFS.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 49,90 ---- X rm -f *.o profiled/*.o errs a.out core genlib genlib_p \ X tags Makefile.bak X X! depend: $(SRCS) 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! _setjmp.o: _setjmp.s DEFS.h X! abs.o: abs.s DEFS.h X! alloca.o: alloca.s DEFS.h X atof.o: atof.c /usr/include/math.h /usr/include/ctype.h X! bcmp.o: bcmp.s DEFS.h X! bcopy.o: bcopy.s DEFS.h X! bzero.o: bzero.s DEFS.h X ecvt.o: ecvt.c X! fabs.o: fabs.s DEFS.h X! ffs.o: ffs.s DEFS.h X! frexp.o: frexp.s DEFS.h X! index.o: index.s DEFS.h X! insque.o: insque.s DEFS.h X! ldexp.o: ldexp.s DEFS.h X! ldfps.o: ldfps.s DEFS.h X! modf.o: modf.s DEFS.h X! nsym.o: nsym.c /usr/include/a.out.h /usr/include/sys/exec.h X! nsym.o: /usr/include/sys/types.h /usr/include/sys/select.h X! nsym.o: /usr/include/sys/types.h /usr/include/nlist.h /usr/include/sys/types.h X! remque.o: remque.s DEFS.h X! rindex.o: rindex.s DEFS.h X rollback.o: rollback.s X! setjmp.o: setjmp.s DEFS.h X setjmperr.o: setjmperr.c /usr/include/setjmp.h X! strcat.o: strcat.s DEFS.h X! strcmp.o: strcmp.s DEFS.h X! strcpy.o: strcpy.s DEFS.h X! strlen.o: strlen.s DEFS.h X! strncat.o: strncat.s DEFS.h X! strncmp.o: strncmp.s DEFS.h X! strncpy.o: strncpy.s DEFS.h X! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/pdp/crt/Makefile.old Sat Apr 9 03:07:04 1994 X--- ./usr/src/lib/libc/pdp/crt/Makefile Sat Nov 29 07:45:08 2025 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.1 (2.11BSD GTE) 4/9/94 X # X # X SRCS= aldiv.s almul.s alrem.s csv.s ldiv.s lmul.s lrem.s udiv.s \ 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.2 (2.11BSD) 2025/11/29 X # X # X SRCS= aldiv.s almul.s alrem.s csv.s ldiv.s lmul.s lrem.s udiv.s \ X*************** X*** 42,78 **** X rm -f *.o profiled/*.o errs a.out core crtlib crtlib_p \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X X! aldiv.o: aldiv.s ./DEFS.h X! almul.o: almul.s ./DEFS.h X! alrem.o: alrem.s ./DEFS.h X! csv.o: csv.s ./DEFS.h X! ldiv.o: ldiv.s ./DEFS.h X! lmul.o: lmul.s ./DEFS.h X! lrem.o: lrem.s ./DEFS.h X! udiv.o: udiv.s ./DEFS.h X! uldiv.o: uldiv.s ./DEFS.h X! ulrem.o: ulrem.s ./DEFS.h X! ulsh.o: ulsh.s ./DEFS.h X! ultof.o: ultof.s ./DEFS.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 42,63 ---- X rm -f *.o profiled/*.o errs a.out core crtlib crtlib_p \ X tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! aldiv.o: aldiv.s DEFS.h X! almul.o: almul.s DEFS.h X! alrem.o: alrem.s DEFS.h X! csv.o: csv.s DEFS.h X! ldiv.o: ldiv.s DEFS.h X! lmul.o: lmul.s DEFS.h X! lrem.o: lrem.s DEFS.h X! udiv.o: udiv.s DEFS.h X! uldiv.o: uldiv.s DEFS.h X! ulrem.o: ulrem.s DEFS.h X! ulsh.o: ulsh.s DEFS.h X! ultof.o: ultof.s DEFS.h X X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/pdp/csu/Makefile.old Tue Jan 7 20:57:35 2020 X--- ./usr/src/lib/libc/pdp/csu/Makefile Sat Nov 29 09:15:29 2025 X*************** X*** 3,14 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6.3 (2.11BSD) 2020/1/7 X # X # crt0 Normal C run time startoff X # mcrt0 C run time start off for profiling, ``prof'' conventions X # X- DESTDIR= X SRCS= crt0.s mon.c mcount.s X OBJS= crt0.o mcrt0.o mon.o X CFLAGS= -O ${DEFS} X--- 3,13 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6.4 (2.11BSD) 2025/11/29 X # X # crt0 Normal C run time startoff X # mcrt0 C run time start off for profiling, ``prof'' conventions X # X SRCS= crt0.s mon.c mcount.s X OBJS= crt0.o mcrt0.o mon.o X CFLAGS= -O ${DEFS} X*************** X*** 17,24 **** X all: ${OBJS} X X install: ${OBJS} X! install -c -m 0644 crt0.o ${DESTDIR}/lib/crt0.o X! install -c -m 0644 mcrt0.o ${DESTDIR}/lib/mcrt0.o X X crt0.o: crt0.s X /lib/cpp -t ${DEFS} ${DFLAGS} crt0.s | sed 's;^#;/;' | as -o x.o X--- 16,23 ---- X all: ${OBJS} X X install: ${OBJS} X! install -c -m 0644 crt0.o /lib/crt0.o X! install -c -m 0644 mcrt0.o /lib/mcrt0.o X X crt0.o: crt0.s X /lib/cpp -t ${DEFS} ${DFLAGS} crt0.s | sed 's;^#;/;' | as -o x.o X*************** X*** 53,80 **** X X lint: X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${DEFS} ${DFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X- # DO NOT DELETE THIS LINE -- make depend uses it X- X crt0.o: crt0.s X mon.o: mon.c X! mcount.o: mcount.s ./../sys/SYS.h /usr/include/syscall.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 52,64 ---- X X lint: X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X crt0.o: crt0.s X mon.o: mon.c X! mcount.o: mcount.s ../sys/SYS.h /usr/include/syscall.h X! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/pdp/net/Makefile.old Sat Apr 9 03:20:21 1994 X--- ./usr/src/lib/libc/pdp/net/Makefile Fri Dec 26 21:02:24 2025 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.6.1 (2.11 BSD) 4/9/94 X # X SRCS= htonl.s htons.s X OBJS= htonl.o htons.o X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6.2 (2.11BSD) 2025/11/29 X # X SRCS= htonl.s htons.s X OBJS= htonl.o htons.o X*************** X*** 38,64 **** X rm -f *.o profiled/*.o errs a.out core netlib netlib_p \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X X! htonl.o: htonl.s ./DEFS.h X! htons.o: htons.s ./DEFS.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 38,49 ---- X rm -f *.o profiled/*.o errs a.out core netlib netlib_p \ X tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! htonl.o: htonl.s DEFS.h X! htons.o: htons.s DEFS.h X X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/pdp/stdio/Makefile.old Tue Jan 7 21:41:11 2020 X--- ./usr/src/lib/libc/pdp/stdio/Makefile Sat Nov 29 09:13:54 2025 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.6.2 (2.11BSD) 2020/1/7 X # X # SRCS= doprnt.s ffltpr.s fgetc.s fgets.s fltpr.s fputc.s puts.s gets.s X # OBJS= doprnt.o ffltpr.o fgetc.o fgets.o fltpr.o fputc.o puts.o gets.o X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6.3 (2.11BSD) 2025/11/29 X # X # SRCS= doprnt.s ffltpr.s fgetc.s fgets.s fltpr.s fputc.s puts.s gets.s X # OBJS= doprnt.o ffltpr.o fgetc.o fgets.o fltpr.o fputc.o puts.o gets.o X*************** X*** 40,71 **** X rm -f *.o profiled/*.o errs a.out core stdiolib stdiolib_p \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! doprnt.o: doprnt.s ./DEFS.h X ffltpr.o: ffltpr.s X! fgetc.o: fgetc.s ./DEFS.h ./STDIO.h X! fgets.o: fgets.s ./DEFS.h ./STDIO.h X! fltpr.o: fltpr.s ./DEFS.h X! fputc.o: fputc.s ./DEFS.h ./STDIO.h X! gets.o: gets.s ./DEFS.h ./STDIO.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 40,56 ---- X rm -f *.o profiled/*.o errs a.out core stdiolib stdiolib_p \ X tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! doprnt.o: doprnt.s DEFS.h X ffltpr.o: ffltpr.s X! fgetc.o: fgetc.s DEFS.h STDIO.h X! fgets.o: fgets.s DEFS.h STDIO.h X! fltpr.o: fltpr.s DEFS.h X! fputc.o: fputc.s DEFS.h STDIO.h X! gets.o: gets.s DEFS.h STDIO.h X! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/pdp/compat-2.9/Makefile.old Wed Jan 18 22:11:59 1995 X--- ./usr/src/lib/libc/pdp/compat-2.9/Makefile Sat Nov 29 07:47:18 2025 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.2 (2.11BSD GTE) 1/18/95 X # X SRCS= fetchi.s fperr.s l3.c lock.s phys.s ucall.s X OBJS= fetchi.o fperr.o l3.o lock.o phys.o ucall.o 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.2 (2.11BSD) 2025/11/29 X # X SRCS= fetchi.s fperr.s l3.c lock.s phys.s ucall.s X OBJS= fetchi.o fperr.o l3.o lock.o phys.o ucall.o X*************** X*** 38,68 **** X rm -f *.o profiled/*.o errs a.out core compat-2.9lib compat-2.9lib_p \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! fetchi.o: fetchi.s ./SYS.h /usr/include/syscall.h X! fperr.o: fperr.s ./SYS.h /usr/include/syscall.h X l3.o: l3.c X! lock.o: lock.s ./SYS.h /usr/include/syscall.h X! phys.o: phys.s ./SYS.h /usr/include/syscall.h X! ucall.o: ucall.s ./SYS.h /usr/include/syscall.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 38,53 ---- X rm -f *.o profiled/*.o errs a.out core compat-2.9lib compat-2.9lib_p \ X tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! fetchi.o: fetchi.s SYS.h /usr/include/syscall.h X! fperr.o: fperr.s SYS.h /usr/include/syscall.h X l3.o: l3.c X! lock.o: lock.s SYS.h /usr/include/syscall.h X! phys.o: phys.s SYS.h /usr/include/syscall.h X! ucall.o: ucall.s SYS.h /usr/include/syscall.h X! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/pdp/Makefile.old Sat Apr 9 02:43:41 1994 X--- ./usr/src/lib/libc/pdp/Makefile Tue Dec 23 08:23:25 2025 X*************** X*** 3,14 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6.1 (2.11BSD GTE) 4/9/94 X # X # Machine dependent routines for the PDP are located here X # X COMPAT= compat-2.9 X! ALL= crt gen net stdio sys ${COMPAT} X TAGSFILE=tags X X pdplib pdplib_p: ${ALL} X--- 3,14 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6.2 (2.11BSD) 2025/11/29 X # X # Machine dependent routines for the PDP are located here X # X COMPAT= compat-2.9 X! ALL= crt gen net sys ${COMPAT} X TAGSFILE=tags X X pdplib pdplib_p: ${ALL} X*** ./usr/src/lib/libc/stdio/Makefile.old Tue Jul 29 22:17:17 1997 X--- ./usr/src/lib/libc/stdio/Makefile Tue Dec 23 08:38:03 2025 X*************** X*** 3,32 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4.1 (2.11BSD) 1997/7/29 X! # X! # Several routines have been rewritten in assembly language for the VAX and X! # PDP. If you are not running on a VAX or PDP, you should use the original X! # C sources which are included in this directory. Regretably we do not have X! # a C version of doprnt(). X! # X! #SRCS= ${STDSRC} ${VAXSRC} X! #OBJS= ${STDOBJ} ${VAXOBJ} X! SRCS= ${STDSRC} puts.c fputs.c X! OBJS= ${STDOBJ} puts.o fputs.o X X CFLAGS= -O ${DEFS} X X! STDSRC= clrerr.c doscan.c exit.c fdopen.c filbuf.c findiop.c flsbuf.c fopen.c \ X! fprintf.c fread.c freopen.c fseek.c ftell.c fwrite.c getchar.c getw.c \ X! printf.c putchar.c putw.c rew.c scanf.c setbuf.c setbuffer.c setvbuf.c \ X! sprintf.c strout.c ungetc.c vfprintf.c vprintf.c vsprintf.c X! VAXSRC= fgetc.c fgets.c fputc.c fputs.c gets.c puts.c X! STDOBJ= clrerr.o doscan.o exit.o fdopen.o filbuf.o findiop.o flsbuf.o fopen.o \ X! fprintf.o fread.o freopen.o fseek.o ftell.o fwrite.o getchar.o getw.o \ X! printf.o putchar.o putw.o rew.o scanf.o setbuf.o setbuffer.o setvbuf.o \ X! sprintf.o strout.o ungetc.o vfprintf.o vprintf.o vsprintf.o X! VAXOBJ= fgetc.o fgets.o fputc.o fputs.o gets.o puts.o X TAGSFILE=tags X X .c.o: X--- 3,28 ---- 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! SRCS= clrerr.c exit.c fclose.c fdopen.c findfp.c fflush.c fopen.c \ X! fprintf.c fpurge.c fread.c freopen.c fseek.c ftell.c fwrite.c fscanf.c \ X! fvwrite.c getc.c getchar.c getw.c makebuf.c rget.c fputc.c \ X! printf.c putc.c putchar.c putw.c rewind.c scanf.c setbuf.c setbuffer.c \ 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! printf.o putc.o putchar.o putw.o rewind.o scanf.o setbuf.o setbuffer.o \ 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*************** X*** 53,112 **** X rm -f stdiolib stdiolib_p *.o profiled/*.o tags Makefile.bak X X depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! clrerr.o: clrerr.c /usr/include/stdio.h X! doscan.o: doscan.c /usr/include/stdio.h /usr/include/ctype.h X exit.o: exit.c X! fdopen.o: fdopen.c /usr/include/sys/types.h /usr/include/sys/file.h X! fdopen.o: /usr/include/stdio.h X! filbuf.o: filbuf.c /usr/include/stdio.h /usr/include/sys/types.h X! filbuf.o: /usr/include/sys/stat.h X! findiop.o: findiop.c /usr/include/stdio.h /usr/include/errno.h X! flsbuf.o: flsbuf.c /usr/include/stdio.h /usr/include/sys/types.h X! flsbuf.o: /usr/include/sys/stat.h X! fopen.o: fopen.c /usr/include/sys/types.h /usr/include/sys/file.h X! fopen.o: /usr/include/stdio.h X! fprintf.o: fprintf.c /usr/include/stdio.h X! fread.o: fread.c /usr/include/stdio.h X! freopen.o: freopen.c /usr/include/sys/types.h /usr/include/sys/file.h X! freopen.o: /usr/include/stdio.h X! fseek.o: fseek.c /usr/include/stdio.h X! ftell.o: ftell.c /usr/include/stdio.h X! fwrite.o: fwrite.c /usr/include/stdio.h X! getchar.o: getchar.c /usr/include/stdio.h X! getw.o: getw.c /usr/include/stdio.h X! printf.o: printf.c /usr/include/stdio.h X! putchar.o: putchar.c /usr/include/stdio.h X! putw.o: putw.c /usr/include/stdio.h X! rew.o: rew.c /usr/include/stdio.h X! scanf.o: scanf.c /usr/include/stdio.h X! setbuf.o: setbuf.c /usr/include/stdio.h X! setbuffer.o: setbuffer.c /usr/include/stdio.h X! sprintf.o: sprintf.c /usr/include/stdio.h X! strout.o: strout.c /usr/include/stdio.h X! ungetc.o: ungetc.c /usr/include/stdio.h X! vfprintf.o: vfprintf.c /usr/include/stdio.h /usr/include/varargs.h X! vprintf.o: vprintf.c /usr/include/stdio.h /usr/include/varargs.h X! vsprintf.o: vsprintf.c /usr/include/stdio.h /usr/include/varargs.h X! puts.o: puts.c /usr/include/stdio.h X! fputs.o: fputs.c /usr/include/stdio.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 49,268 ---- X rm -f stdiolib stdiolib_p *.o profiled/*.o tags Makefile.bak X X depend: X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! clrerr.o: clrerr.c /usr/include/stdio.h /usr/include/sys/types.h X! clrerr.o: /usr/include/sys/select.h /usr/include/sys/types.h X! clrerr.o: /usr/include/stdarg.h X exit.o: exit.c X! fclose.o: fclose.c /usr/include/errno.h /usr/include/stdio.h X! fclose.o: /usr/include/sys/types.h /usr/include/sys/select.h X! fclose.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/stdlib.h X! fclose.o: local.h X! fdopen.o: fdopen.c /usr/include/sys/types.h /usr/include/sys/select.h X! fdopen.o: /usr/include/sys/types.h /usr/include/fcntl.h X! fdopen.o: /usr/include/sys/types.h /usr/include/unistd.h X! fdopen.o: /usr/include/sys/types.h /usr/include/stdint.h /usr/include/stdio.h X! fdopen.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/errno.h X! fdopen.o: local.h 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! findfp.o: local.h X! fflush.o: fflush.c /usr/include/errno.h /usr/include/stdio.h X! fflush.o: /usr/include/sys/types.h /usr/include/sys/select.h X! fflush.o: /usr/include/sys/types.h /usr/include/stdarg.h local.h X! fopen.o: fopen.c /usr/include/sys/types.h /usr/include/sys/select.h X! fopen.o: /usr/include/sys/types.h /usr/include/sys/stat.h /usr/include/fcntl.h X! fopen.o: /usr/include/sys/types.h /usr/include/stdio.h /usr/include/sys/types.h X! fopen.o: /usr/include/stdarg.h /usr/include/errno.h local.h X! fprintf.o: fprintf.c /usr/include/stdio.h /usr/include/sys/types.h X! fprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fprintf.o: /usr/include/stdarg.h /usr/include/stdarg.h X! fpurge.o: fpurge.c /usr/include/errno.h /usr/include/stdio.h X! fpurge.o: /usr/include/sys/types.h /usr/include/sys/select.h X! fpurge.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/stdlib.h X! fpurge.o: local.h X! fread.o: fread.c /usr/include/stdio.h /usr/include/sys/types.h X! fread.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fread.o: /usr/include/stdarg.h /usr/include/string.h /usr/include/sys/types.h X! freopen.o: freopen.c /usr/include/sys/types.h /usr/include/sys/select.h X! freopen.o: /usr/include/sys/types.h /usr/include/sys/stat.h X! freopen.o: /usr/include/fcntl.h /usr/include/sys/types.h /usr/include/errno.h X! freopen.o: /usr/include/unistd.h /usr/include/sys/types.h /usr/include/stdint.h X! freopen.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/stdarg.h X! freopen.o: /usr/include/stdlib.h local.h X! fseek.o: fseek.c /usr/include/sys/types.h /usr/include/sys/select.h X! fseek.o: /usr/include/sys/types.h /usr/include/fcntl.h /usr/include/sys/types.h X! fseek.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/stdarg.h X! fseek.o: /usr/include/stdlib.h /usr/include/errno.h local.h X! ftell.o: ftell.c /usr/include/stdio.h /usr/include/sys/types.h X! ftell.o: /usr/include/sys/select.h /usr/include/sys/types.h X! ftell.o: /usr/include/stdarg.h /usr/include/errno.h local.h X! fwrite.o: fwrite.c /usr/include/stdio.h /usr/include/sys/types.h X! fwrite.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fwrite.o: /usr/include/stdarg.h local.h fvwrite.h X! fscanf.o: fscanf.c /usr/include/stdio.h /usr/include/sys/types.h X! fscanf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fscanf.o: /usr/include/stdarg.h /usr/include/stdarg.h X! fvwrite.o: fvwrite.c /usr/include/stdio.h /usr/include/sys/types.h X! fvwrite.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fvwrite.o: /usr/include/stdarg.h /usr/include/string.h /usr/include/sys/types.h X! fvwrite.o: local.h fvwrite.h X! getc.o: getc.c /usr/include/stdio.h /usr/include/sys/types.h X! getc.o: /usr/include/sys/select.h /usr/include/sys/types.h X! getc.o: /usr/include/stdarg.h X! getchar.o: getchar.c /usr/include/stdio.h /usr/include/sys/types.h X! getchar.o: /usr/include/sys/select.h /usr/include/sys/types.h X! getchar.o: /usr/include/stdarg.h X! getw.o: getw.c /usr/include/stdio.h /usr/include/sys/types.h X! getw.o: /usr/include/sys/select.h /usr/include/sys/types.h X! getw.o: /usr/include/stdarg.h X! makebuf.o: makebuf.c /usr/include/sys/types.h /usr/include/sys/select.h X! makebuf.o: /usr/include/sys/types.h /usr/include/sys/stat.h X! makebuf.o: /usr/include/unistd.h /usr/include/sys/types.h /usr/include/stdint.h X! makebuf.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/stdarg.h X! makebuf.o: /usr/include/stdlib.h local.h X! rget.o: rget.c /usr/include/stdio.h /usr/include/sys/types.h X! rget.o: /usr/include/sys/select.h /usr/include/sys/types.h X! rget.o: /usr/include/stdarg.h X! fputc.o: fputc.c /usr/include/stdio.h /usr/include/sys/types.h X! fputc.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fputc.o: /usr/include/stdarg.h X! printf.o: printf.c /usr/include/stdio.h /usr/include/sys/types.h X! printf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! printf.o: /usr/include/stdarg.h /usr/include/stdarg.h X! putc.o: putc.c /usr/include/stdio.h /usr/include/sys/types.h X! putc.o: /usr/include/sys/select.h /usr/include/sys/types.h X! putc.o: /usr/include/stdarg.h X! putchar.o: putchar.c /usr/include/stdio.h /usr/include/sys/types.h X! putchar.o: /usr/include/sys/select.h /usr/include/sys/types.h X! putchar.o: /usr/include/stdarg.h X! putw.o: putw.c /usr/include/stdio.h /usr/include/sys/types.h X! putw.o: /usr/include/sys/select.h /usr/include/sys/types.h X! putw.o: /usr/include/stdarg.h X! rewind.o: rewind.c /usr/include/errno.h /usr/include/stdio.h X! rewind.o: /usr/include/sys/types.h /usr/include/sys/select.h X! rewind.o: /usr/include/sys/types.h /usr/include/stdarg.h X! scanf.o: scanf.c /usr/include/stdio.h /usr/include/sys/types.h X! scanf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! scanf.o: /usr/include/stdarg.h /usr/include/stdarg.h X! setbuf.o: setbuf.c /usr/include/stdio.h /usr/include/sys/types.h X! setbuf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! setbuf.o: /usr/include/stdarg.h X! setbuffer.o: setbuffer.c /usr/include/stdio.h /usr/include/sys/types.h X! setbuffer.o: /usr/include/sys/select.h /usr/include/sys/types.h X! setbuffer.o: /usr/include/stdarg.h X! setvbuf.o: setvbuf.c /usr/include/stdio.h /usr/include/sys/types.h X! setvbuf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! setvbuf.o: /usr/include/stdarg.h /usr/include/stdlib.h local.h X! snprintf.o: snprintf.c /usr/include/stdio.h /usr/include/sys/types.h X! snprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! snprintf.o: /usr/include/stdarg.h /usr/include/stdarg.h X! sscanf.o: sscanf.c /usr/include/stdio.h /usr/include/sys/types.h X! sscanf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! sscanf.o: /usr/include/stdarg.h /usr/include/string.h /usr/include/sys/types.h X! sscanf.o: /usr/include/stdarg.h local.h X! stdio.o: stdio.c /usr/include/fcntl.h /usr/include/sys/types.h X! stdio.o: /usr/include/sys/select.h /usr/include/sys/types.h X! stdio.o: /usr/include/unistd.h /usr/include/sys/types.h /usr/include/stdint.h X! stdio.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/stdarg.h X! stdio.o: local.h X! tmpfile.o: tmpfile.c /usr/include/sys/types.h /usr/include/sys/select.h X! tmpfile.o: /usr/include/sys/types.h /usr/include/signal.h /usr/include/unistd.h X! tmpfile.o: /usr/include/sys/types.h /usr/include/stdint.h /usr/include/errno.h X! tmpfile.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/stdarg.h X! tmpfile.o: /usr/include/paths.h X! tmpnam.o: tmpnam.c /usr/include/sys/types.h /usr/include/sys/select.h X! tmpnam.o: /usr/include/sys/types.h /usr/include/stdio.h X! tmpnam.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/unistd.h X! tmpnam.o: /usr/include/sys/types.h /usr/include/stdint.h 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! sprintf.o: /usr/include/machine/limits.h local.h X! ungetc.o: ungetc.c /usr/include/stdio.h /usr/include/sys/types.h X! ungetc.o: /usr/include/sys/select.h /usr/include/sys/types.h X! ungetc.o: /usr/include/stdarg.h /usr/include/stdlib.h /usr/include/string.h X! ungetc.o: /usr/include/sys/types.h local.h X! vfprintf.o: vfprintf.c /usr/include/stdarg.h /usr/include/stdlib.h X! vfprintf.o: /usr/include/stdio.h /usr/include/sys/types.h X! vfprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! vfprintf.o: /usr/include/stdarg.h /usr/include/limits.h X! vfprintf.o: /usr/include/machine/limits.h local.h X! vfscanf.o: vfscanf.c /usr/include/stdio.h /usr/include/sys/types.h X! vfscanf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! vfscanf.o: /usr/include/stdarg.h /usr/include/stdlib.h /usr/include/ctype.h X! vfscanf.o: /usr/include/stdarg.h local.h X! vprintf.o: vprintf.c /usr/include/stdio.h /usr/include/sys/types.h X! vprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! vprintf.o: /usr/include/stdarg.h X! vscanf.o: vscanf.c /usr/include/stdio.h /usr/include/sys/types.h X! vscanf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! vscanf.o: /usr/include/stdarg.h X! fpfcom.o: fpfcom.c /usr/include/stdio.h /usr/include/sys/types.h X! fpfcom.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fpfcom.o: /usr/include/stdarg.h local.h X! vsnprintf.o: vsnprintf.c /usr/include/stdio.h /usr/include/sys/types.h X! vsnprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! vsnprintf.o: /usr/include/stdarg.h X! vsprintf.o: vsprintf.c /usr/include/stdio.h /usr/include/sys/types.h X! vsprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! vsprintf.o: /usr/include/stdarg.h /usr/include/limits.h X! vsprintf.o: /usr/include/machine/limits.h X! wbuf.o: wbuf.c /usr/include/stdio.h /usr/include/sys/types.h X! wbuf.o: /usr/include/sys/select.h /usr/include/sys/types.h X! wbuf.o: /usr/include/stdarg.h local.h X! flags.o: flags.c /usr/include/sys/types.h /usr/include/sys/select.h X! flags.o: /usr/include/sys/types.h /usr/include/sys/file.h /usr/include/fcntl.h X! flags.o: /usr/include/sys/types.h /usr/include/stdio.h /usr/include/sys/types.h X! flags.o: /usr/include/stdarg.h /usr/include/errno.h X! refill.o: refill.c /usr/include/errno.h /usr/include/stdio.h X! refill.o: /usr/include/sys/types.h /usr/include/sys/select.h X! refill.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/stdlib.h X! refill.o: local.h X! wsetup.o: wsetup.c /usr/include/stdio.h /usr/include/sys/types.h X! wsetup.o: /usr/include/sys/select.h /usr/include/sys/types.h X! wsetup.o: /usr/include/stdarg.h /usr/include/stdlib.h local.h X! pfcom.o: pfcom.c /usr/include/stdarg.h /usr/include/stdlib.h X! pfcom.o: /usr/include/stdio.h /usr/include/sys/types.h X! pfcom.o: /usr/include/sys/select.h /usr/include/sys/types.h X! pfcom.o: /usr/include/stdarg.h local.h X! acvt.o: acvt.c /usr/include/stdio.h /usr/include/sys/types.h X! acvt.o: /usr/include/sys/select.h /usr/include/sys/types.h X! acvt.o: /usr/include/stdarg.h local.h X! puts.o: puts.c /usr/include/stdio.h /usr/include/sys/types.h X! puts.o: /usr/include/sys/select.h /usr/include/sys/types.h X! puts.o: /usr/include/stdarg.h /usr/include/string.h /usr/include/sys/types.h X! puts.o: fvwrite.h X! fputs.o: fputs.c /usr/include/stdio.h /usr/include/sys/types.h X! fputs.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fputs.o: /usr/include/stdarg.h /usr/include/string.h /usr/include/sys/types.h X! fputs.o: fvwrite.h X! fgetc.o: fgetc.c /usr/include/stdio.h /usr/include/sys/types.h X! fgetc.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fgetc.o: /usr/include/stdarg.h X! fgets.o: fgets.c /usr/include/stdio.h /usr/include/sys/types.h X! fgets.o: /usr/include/sys/select.h /usr/include/sys/types.h X! fgets.o: /usr/include/stdarg.h X! gets.o: gets.c /usr/include/unistd.h /usr/include/sys/types.h 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! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/stdio/clrerr.c.old Sun Mar 9 22:48:15 1986 X--- ./usr/src/lib/libc/stdio/clrerr.c Fri Dec 26 21:04:18 2025 X*************** X*** 1,12 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)clrerr.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X #include X #undef clearerr X X! clearerr(iop) X! register FILE *iop; X { X! iop->_flag &= ~(_IOERR|_IOEOF); X } X--- 1,48 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)clrerr.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X #undef clearerr X X! void X! clearerr(FILE *fp) X { X! __sclearerr(fp); X } X*** ./usr/src/lib/libc/stdio/fdopen.c.old Sun Mar 9 22:48:59 1986 X--- ./usr/src/lib/libc/stdio/fdopen.c Fri Dec 26 21:04:26 2025 X*************** X*** 1,62 **** 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(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fdopen.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X- /* X- * Unix routine to do an "fopen" on file descriptor X- * The mode has to be repeated because you can't query its X- * status X- */ X- X #include X! #include X #include X X FILE * X! fdopen(fd, mode) X! register char *mode; X { X! extern FILE *_findiop(); X! static int nofile = -1; X! register FILE *iop; X X! if (nofile < 0) X nofile = getdtablesize(); X X! if (fd < 0 || fd >= nofile) X return (NULL); X X! iop = _findiop(); X! if (iop == NULL) X return (NULL); X! X! iop->_cnt = 0; X! iop->_file = fd; X! iop->_bufsiz = 0; X! iop->_base = iop->_ptr = NULL; X! X! switch (*mode) { X! case 'r': X! iop->_flag = _IOREAD; X! break; X! case 'a': X! lseek(fd, (off_t)0, L_XTND); X! /* fall into ... */ X! case 'w': X! iop->_flag = _IOWRT; X! break; X! default: X return (NULL); X } X X! if (mode[1] == '+') X! iop->_flag = _IORW; X! X! return (iop); X } X--- 1,82 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fdopen.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X! #include X! #include X #include X+ #include X+ #include "local.h" X X FILE * X! fdopen(int fd, const char *mode) X { X! register FILE *fp; X! static int nofile; X! int flags, oflags, fdflags, tmp; X X! if (nofile == 0) X nofile = getdtablesize(); X X! if ((flags = __sflags(mode, &oflags)) == 0) X return (NULL); X X! /* Make sure the mode the user wants is a subset of the actual mode. */ X! if ((fdflags = fcntl(fd, F_GETFL, 0)) < 0) X return (NULL); X! tmp = fdflags & O_ACCMODE; X! if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { X! errno = EINVAL; X return (NULL); X } X X! if ((fp = __sfp()) == NULL) X! return (NULL); X! fp->_flags = flags; X! /* X! * If opened for appending, but underlying descriptor does not have X! * O_APPEND bit set, assert __SAPP so that __swrite() will lseek to X! * end before each write. X! */ X! if ((oflags & O_APPEND) && !(fdflags & O_APPEND)) X! fp->_flags |= __SAPP; X! fp->_file = fd; X! return (fp); X } X*** ./usr/src/lib/libc/stdio/fgetc.c.old Mon Dec 26 16:48:38 1988 X--- ./usr/src/lib/libc/stdio/fgetc.c Fri Dec 26 21:04:33 2025 X*************** X*** 1,11 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fgetc.c 5.3 (Berkeley) 3/4/87"; X! #endif LIBC_SCCS and not lint X X #include X X! fgetc(fp) X! register FILE *fp; X { X! return(getc(fp)); X } X--- 1,47 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fgetc.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X X! int X! fgetc(FILE *fp) X { X! return (__sgetc(fp)); X } X*** ./usr/src/lib/libc/stdio/fopen.c.old Sun Mar 9 22:50:20 1986 X--- ./usr/src/lib/libc/stdio/fopen.c Fri Dec 26 21:03:57 2025 X*************** X*** 1,62 **** 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(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fopen.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X #include X! #include X #include X X FILE * X! fopen(file, mode) X! char *file; X! register char *mode; X { X! register FILE *iop; X! register f, rw, oflags; X! extern FILE *_findiop(); X X! iop = _findiop(); X! if (iop == NULL) X return (NULL); X! X! rw = (mode[1] == '+'); X! X! switch (*mode) { X! case 'a': X! oflags = O_CREAT | (rw ? O_RDWR : O_WRONLY); X! break; X! case 'r': X! oflags = rw ? O_RDWR : O_RDONLY; X! break; X! case 'w': X! oflags = O_TRUNC | O_CREAT | (rw ? O_RDWR : O_WRONLY); X! break; X! default: X return (NULL); X } X X! f = open(file, oflags, 0666); X! if (f < 0) X! return (NULL); X! X! if (*mode == 'a') X! lseek(f, (off_t)0, L_XTND); X! X! iop->_cnt = 0; X! iop->_file = f; X! iop->_bufsiz = 0; X! if (rw) X! iop->_flag = _IORW; X! else if (*mode == 'r') X! iop->_flag = _IOREAD; X! else X! iop->_flag = _IOWRT; X! iop->_base = iop->_ptr = NULL; X! return (iop); X } X--- 1,79 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fopen.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X! #include X! #include X #include X+ #include X+ #include "local.h" X X+ #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) X+ X FILE * X! fopen(const char *file, const char *mode) X { X! register FILE *fp; X! register int f; X! int flags, oflags; X X! if ((flags = __sflags(mode, &oflags)) == 0) X return (NULL); X! if ((fp = __sfp()) == NULL) X return (NULL); X+ if ((f = open(file, oflags, DEFFILEMODE)) < 0) { X+ fp->_flags = 0; /* release */ X+ return (NULL); X } X+ fp->_file = f; X+ fp->_flags = flags; X X! /* X! * When opening in append mode, even though we use O_APPEND, X! * we need to seek to the end so that ftell() gets the right X! * answer. If the user then alters the seek pointer, or X! * the file extends, this will fail, but there is not much X! * we can do about this. (We could set __SAPP and check in X! * fseek and ftell.) X! */ X! if (oflags & O_APPEND) X! (void) __sseek((void *)fp, (fpos_t)0, SEEK_END); X! return (fp); X } X*** ./usr/src/lib/libc/stdio/fprintf.c.old Sun Mar 9 22:50:32 1986 X--- ./usr/src/lib/libc/stdio/fprintf.c Fri Dec 26 21:05:07 2025 X*************** X*** 1,32 **** 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(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fprintf.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X! fprintf(iop, fmt, args) X! register FILE *iop; X! char *fmt; X { X! char localbuf[BUFSIZ]; X X! if (iop->_flag & _IONBF) { X! iop->_flag &= ~_IONBF; X! iop->_ptr = iop->_base = localbuf; X! iop->_bufsiz = BUFSIZ; X! _doprnt(fmt, &args, iop); X! fflush(iop); X! iop->_flag |= _IONBF; X! iop->_base = NULL; X! iop->_bufsiz = NULL; X! iop->_cnt = 0; X! } else X! _doprnt(fmt, &args, iop); X! return(ferror(iop)? EOF: 0); X } X--- 1,54 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fprintf.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X X! int X! fprintf(FILE *fp, const char *fmt, ...) X { X! int ret; X! va_list ap; X X! va_start(ap, fmt); X! ret = __svfprintf(fp, fmt, ap); X! va_end(ap); X! return (ret); X } X*** ./usr/src/lib/libc/stdio/fputc.c.old Mon Dec 26 16:48:45 1988 X--- ./usr/src/lib/libc/stdio/fputc.c Fri Dec 26 21:05:30 2025 X*************** X*** 1,12 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fputc.c 5.3 (Berkeley) 3/4/87"; X! #endif LIBC_SCCS and not lint X X #include X X! fputc(c, fp) X! register c; X! register FILE *fp; X { X! return(putc(c, fp)); X } X--- 1,47 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fputc.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X X! int X! fputc(int c, register FILE *fp) X { X! return (__sputc(c, fp)); X } X*** ./usr/src/lib/libc/stdio/fputs.c.old Sun Mar 9 22:51:03 1986 X--- ./usr/src/lib/libc/stdio/fputs.c Fri Dec 26 21:05:57 2025 X*************** X*** 1,41 **** X! /* X! * Copyright (c) 1984 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(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fputs.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X! fputs(s, iop) X! register char *s; X! register FILE *iop; X { X! register r = 0; X! register c; X! int unbuffered; X! char localbuf[BUFSIZ]; X X! unbuffered = iop->_flag & _IONBF; X! if (unbuffered) { X! iop->_flag &= ~_IONBF; X! iop->_ptr = iop->_base = localbuf; X! iop->_bufsiz = BUFSIZ; X! } X! X! while (c = *s++) X! r = putc(c, iop); X! X! if (unbuffered) { X! fflush(iop); X! iop->_flag |= _IONBF; X! iop->_base = NULL; X! iop->_bufsiz = NULL; X! iop->_cnt = 0; X! } X! X! return(r); X } X--- 1,59 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fputs.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X! #include "fvwrite.h" X X! /* X! * Write the given string to the given file. X! */ X! int X! fputs(const char *s, FILE *fp) X { X! struct __suio uio; X! struct __siov iov; X X! iov.iov_base = (void *)s; X! iov.iov_len = uio.uio_resid = strlen(s); X! uio.uio_iov = &iov; X! uio.uio_iovcnt = 1; X! return (__sfvwrite(fp, &uio)); X } X*** ./usr/src/lib/libc/stdio/fread.c.old Sun Mar 15 04:13:26 1987 X--- ./usr/src/lib/libc/stdio/fread.c Fri Dec 26 21:06:52 2025 X*************** X*** 1,46 **** 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(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fread.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X! fread(ptr, size, count, iop) X! register char *ptr; X! unsigned size, count; X! register FILE *iop; X { X! register unsigned s; X! int c; X X! s = size * count; X! while (s > 0) { X! if (iop->_cnt < s) { X! if (iop->_cnt > 0) { X! bcopy(iop->_ptr, ptr, iop->_cnt); X! ptr += iop->_cnt; X! s -= iop->_cnt; X! } X! /* X! * filbuf clobbers _cnt & _ptr, X! * so don't waste time setting them. X! */ X! if ((c = _filbuf(iop)) == EOF) X! break; X! *ptr++ = c; X! s--; X } X- if (iop->_cnt >= s) { X- bcopy(iop->_ptr, ptr, s); X- iop->_ptr += s; X- iop->_cnt -= s; X- return (count); X- } X } X! return (size != 0 ? count - ((s + size - 1) / size) : 0); X } X--- 1,78 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fread.c 8.3 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X X! size_t X! fread(void *buf, size_t size, size_t count, register FILE *fp) X { X! register size_t resid; X! register char *p; X! register int r; X! size_t total; X X! /* X! * The ANSI standard requires a return value of 0 for a count X! * or a size of 0. Peculiarily, it imposes no such requirements X! * on fwrite; it only requires fread to be broken. X! */ X! if ((resid = count * size) == 0) X! return (0); X! if (fp->_r < 0) X! fp->_r = 0; X! total = resid; X! p = buf; X! while (resid > (r = fp->_r)) { X! (void)memcpy((void *)p, (void *)fp->_p, (size_t)r); X! fp->_p += r; X! /* fp->_r = 0 ... done in __srefill */ X! p += r; X! resid -= r; X! if (__srefill(fp)) { X! /* no more input: return partial result */ X! return ((total - resid) / size); X } X } X! (void)memcpy((void *)p, (void *)fp->_p, resid); X! fp->_r -= resid; X! fp->_p += resid; X! return (count); X } X*** ./usr/src/lib/libc/stdio/freopen.c.old Sun Mar 9 22:51:30 1986 X--- ./usr/src/lib/libc/stdio/freopen.c Fri Dec 26 10:23:20 2025 X*************** X*** 1,59 **** 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(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)freopen.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X #include X! #include X #include X X FILE * X! freopen(file, mode, iop) X! char *file; X! register char *mode; X! register FILE *iop; X { X! register f, rw, oflags; X X! rw = (mode[1] == '+'); X X! fclose(iop); X X! switch (*mode) { X! case 'a': X! oflags = O_CREAT | (rw ? O_RDWR : O_WRONLY); X! break; X! case 'r': X! oflags = rw ? O_RDWR : O_RDONLY; X! break; X! case 'w': X! oflags = O_TRUNC | O_CREAT | (rw ? O_RDWR : O_WRONLY); X! break; X! default: X! return (NULL); X } X X! f = open(file, oflags, 0666); X! if (f < 0) X return (NULL); X X! if (*mode == 'a') X! lseek(f, (off_t)0, L_XTND); X X! iop->_cnt = 0; X! iop->_file = f; X! iop->_bufsiz = 0; X! if (rw) X! iop->_flag = _IORW; X! else if (*mode == 'r') X! iop->_flag = _IOREAD; X! else X! iop->_flag = _IOWRT; X! iop->_base = iop->_ptr = NULL; X! return (iop); X } X--- 1,152 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)freopen.c 8.2 (2.11BSD) 2025/12/26"; X! #endif /* LIBC_SCCS and not lint */ X X #include X! #include X! #include X! #include X! #include X #include X+ #include X+ #include "local.h" X X+ /* X+ * Re-direct an existing, open (probably) file to some other file. X+ * ANSI is written such that the original file gets closed if at X+ * all possible, no matter what. X+ */ X FILE * X! freopen(const char *file, const char *mode, register FILE *fp) X { X! register struct __sfops *sf; X! register int f; X! int flags, isopen, oflags, sverrno, wantfd; X! void *c; X X! if ((flags = __sflags(mode, &oflags)) == 0) { X! (void) fclose(fp); X! return (NULL); X! } X X! sf = fp->_fops; X! c = COOKIE(fp); X! /* X! * There are actually programs that depend on being able to "freopen" X! * descriptors that weren't originally open. Keep this from breaking. X! * Remember whether the stream was open to begin with, and which file X! * descriptor (if any) was associated with it. If it was attached to X! * a descriptor, defer closing it; freopen("/dev/stdin", "r", stdin) X! * should work. This is unnecessary if it was not a Unix file. X! */ X! if (fp->_flags == 0) { X! fp->_flags = __SEOF; /* hold on to it */ X! isopen = 0; X! wantfd = -1; X! } else { X! /* flush the stream; ANSI doesn't require this. */ X! if (fp->_flags & __SWR) X! (void) __sflush(fp); X! /* if close is NULL, closing is a no-op, hence pointless */ X! isopen = sf->_close != NULL; X! if ((wantfd = fp->_file) < 0 && isopen) { X! (void) (*sf->_close)(c); X! isopen = 0; X! } X! } X X! /* Get a new descriptor to refer to the new file. */ X! f = open(file, oflags, DEFFILEMODE); X! if (f < 0 && isopen) { X! /* If out of fd's close the old one and try again. */ X! if (errno == ENFILE || errno == EMFILE) { X! (void) (*sf->_close)(c); X! isopen = 0; X! f = open(file, oflags, DEFFILEMODE); X! } X } X+ sverrno = errno; X X! /* X! * Finish closing fp. Even if the open succeeded above, we cannot X! * keep fp->_base: it may be the wrong size. This loses the effect X! * of any setbuffer calls, but stdio has always done this before. X! */ X! if (isopen && f != wantfd) X! (void) (*sf->_close)(c); X! if (fp->_flags & __SMBF) X! free((char *)fp->_bf._base); X! fp->_w = 0; X! fp->_r = 0; X! fp->_p = NULL; X! fp->_bf._base = NULL; X! fp->_bf._size = 0; X! fp->_lbfsize = 0; X! X! if (sf->_ub._base) X! free(sf->_ub._base); X! if (HASLB(sf)) X! FREELB(sf); X! sf->_lb._size = 0; X! X! if (f < 0) { /* did not get it after all */ X! fp->_flags = 0; /* set it free */ X! errno = sverrno; /* restore in case _close clobbered */ X return (NULL); X+ } X X! /* X! * If reopening something that was open before on a real file, try X! * to maintain the descriptor. Various C library routines (perror) X! * assume stderr is always fd STDERR_FILENO, even if being freopen'd. X! */ X! if (wantfd >= 0 && f != wantfd) { X! if (dup2(f, wantfd) >= 0) { X! (void) close(f); X! f = wantfd; X! } X! } X X! fp->_flags = flags; X! fp->_file = f; X! if (ISFALL(fp)) X! free(fp->_fops); X! fp->_fops = &__sdefops; X! return (fp); X } X*** ./usr/src/lib/libc/stdio/fseek.c.old Sun Mar 9 22:51:46 1986 X--- ./usr/src/lib/libc/stdio/fseek.c Fri Dec 26 21:07:27 2025 X*************** X*** 1,64 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fseek.c 5.3 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X /* X! * Seek for standard library. Coordinates with buffering. X */ X X! #include X X! long lseek(); X! X! fseek(iop, offset, ptrname) X! register FILE *iop; X! long offset; X { X! register resync, c; X! long p = -1; /* can't happen? */ X X! iop->_flag &= ~_IOEOF; X! if (iop->_flag&_IOREAD) { X! if (ptrname<2 && iop->_base && X! !(iop->_flag&_IONBF)) { X! c = iop->_cnt; X! p = offset; X! if (ptrname==0) { X! long curpos = lseek(fileno(iop), 0L, 1); X! if (curpos == -1) X! return (-1); X! p += c - curpos; X! } else X! offset -= c; X! if(!(iop->_flag&_IORW) && c>0&&p<=c X! && p>=iop->_base-iop->_ptr){ X! iop->_ptr += (int)p; X! iop->_cnt -= (int)p; X! return(0); X! } X! resync = offset&01; X! } else X! resync = 0; X! if (iop->_flag & _IORW) { X! iop->_ptr = iop->_base; X! iop->_flag &= ~_IOREAD; X! resync = 0; X! } X! p = lseek(fileno(iop), offset-resync, ptrname); X! iop->_cnt = 0; X! if (resync && p != -1) X! if (getc(iop) == EOF) X! p = -1; X } X! else if (iop->_flag & (_IOWRT|_IORW)) { X! p = fflush(iop); X! if (iop->_flag & _IORW) { X! iop->_cnt = 0; X! iop->_flag &= ~_IOWRT; X! iop->_ptr = iop->_base; X } X! return(lseek(fileno(iop), offset, ptrname) == -1 || p == EOF ? X! -1 : 0); X } X! return(p==-1?-1:0); X } X--- 1,144 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fseek.c 8.4 (2.11BSD) 2025/12/26"; X! #endif X X+ #include X+ #include X+ #include X+ #include X+ #include X+ #include "local.h" X+ X /* X! * ragge X! * Remove fseek optimizations. Not likely that it will make any sense X! * on pdp11. X */ X X! #define POS_ERR (-(fpos_t)1) X X! /* X! * Seek the given file to the given offset. X! * `Whence' must be one of the three SEEK_* macros. X! */ X! int X! fseek(register FILE *fp, long offset, int whence) X { X! register fpos_t (*seekfn)(void *, fpos_t, int); X! fpos_t target, curoff; X! size_t n; X! void *c; X X! /* X! * Have to be able to seek. X! */ X! if ((seekfn = fp->_fops->_seek) == NULL) { X! errno = ESPIPE; /* historic practice */ X! return (EOF); X } X! c = COOKIE(fp); X! X! /* X! * Change any SEEK_CUR to SEEK_SET, and check `whence' argument. X! * After this, whence is either SEEK_SET or SEEK_END. X! */ X! switch (whence) { X! X! case SEEK_CUR: X! /* X! * In order to seek relative to the current stream offset, X! * we have to first find the current stream offset a la X! * ftell (see ftell for details). X! */ X! if (fp->_flags & __SOFF) X! curoff = fp->_offset; X! else { X! curoff = (*seekfn)(c, (fpos_t)0, SEEK_CUR); X! if (curoff == -1L) X! return (EOF); X } X! if (fp->_flags & __SRD) { X! curoff -= fp->_r; X! if (HASUB(fp) || (fp->_flags & __SUNC)) X! curoff -= fp->_ur; X! } else if (fp->_flags & __SWR && fp->_p != NULL) X! curoff += fp->_p - fp->_bf._base; X! X! offset += curoff; X! whence = SEEK_SET; X! break; X! X! case SEEK_SET: X! case SEEK_END: X! curoff = 0; /* XXX just to keep gcc quiet */ X! break; X! X! default: X! errno = EINVAL; X! return (EOF); X } X! X! /* X! * Can only optimise if: X! * reading (and not reading-and-writing); X! * not unbuffered; and X! * this is a `regular' Unix file (and hence seekfn==__sseek). X! * We must check __NBF first, because it is possible to have __NBF X! * and __SOPT both set. X! */ X! if (fp->_bf._base == NULL) X! __smakebuf(fp); X! X! /* X! * We get here if we cannot optimise the seek ... just X! * do it. Allow the seek function to change fp->_bf._base. X! */ X! if (__sflush(fp) || X! (*seekfn)(c, (fpos_t)offset, whence) == POS_ERR) { X! return (EOF); X! } X! /* success: clear EOF indicator and discard ungetc() data */ X! if (HASUB(fp)) X! FREEUB(fp); X! fp->_p = fp->_bf._base; X! fp->_r = 0; X! /* fp->_w = 0; */ /* unnecessary (I think...) */ X! fp->_flags &= ~__SEOF; X! return (0); X } X*** ./usr/src/lib/libc/stdio/ftell.c.old Sun Mar 9 22:51:55 1986 X--- ./usr/src/lib/libc/stdio/ftell.c Fri Dec 26 21:07:54 2025 X*************** X*** 1,35 **** X! #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)ftell.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X! X! /* X! * Return file offset. X! * Coordinates with buffering. X */ X X! #include X! long lseek(); X X X! long ftell(iop) X! register FILE *iop; X { X! register long tres; X! register adjust; X X! if (iop->_cnt < 0) X! iop->_cnt = 0; X! if (iop->_flag&_IOREAD) X! adjust = - iop->_cnt; X! else if (iop->_flag&(_IOWRT|_IORW)) { X! adjust = 0; X! if (iop->_flag&_IOWRT && iop->_base && (iop->_flag&_IONBF)==0) X! adjust = iop->_ptr - iop->_base; X! } else X! return(-1); X! tres = lseek(fileno(iop), 0L, 1); X! if (tres<0) X! return(tres); X! tres += adjust; X! return(tres); X } X--- 1,91 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X! #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)ftell.c 8.3 (2.11BSD) 2025/12/26"; X! #endif X X+ #include X+ #include X+ #include "local.h" X X! /* X! * ftell: return current offset. X! */ X! long X! ftell(register FILE *fp) X { X! register struct __sfops *sf; X! register fpos_t pos; X! void *c; X X! sf = fp->_fops; X! if (sf->_seek == NULL) { X! errno = ESPIPE; /* historic practice */ X! return (-1L); X! } X! c = COOKIE(fp); X! X! /* X! * Find offset of underlying I/O object, then X! * adjust for buffered bytes. X! */ X! if (fp->_flags & __SOFF) X! pos = fp->_offset; X! else { X! pos = (*sf->_seek)(c, (fpos_t)0, SEEK_CUR); X! if (pos == -1L) X! return (pos); X! } X! if (fp->_flags & __SRD) { X! /* X! * Reading. Any unread characters (including X! * those from ungetc) cause the position to be X! * smaller than that in the underlying object. X! */ X! pos -= fp->_r; X! if (HASUB(fp) || (fp->_flags & __SUNC)) X! pos -= fp->_ur; X! } else if (fp->_flags & __SWR && fp->_p != NULL) { X! /* X! * Writing. Any buffered characters cause the X! * position to be greater than that in the X! * underlying object. X! */ X! pos += fp->_p - fp->_bf._base; X! } X! return (pos); X } X*** ./usr/src/lib/libc/stdio/fwrite.c.old Sun Mar 15 04:12:54 1987 X--- ./usr/src/lib/libc/stdio/fwrite.c Fri Dec 26 21:08:21 2025 X*************** X*** 1,49 **** 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(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fwrite.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X! fwrite(ptr, size, count, iop) X! register char *ptr; X! unsigned size, count; X! register FILE *iop; X { X! register unsigned s; X X! s = size * count; X! if (iop->_flag & _IOLBF) X! while (s > 0) { X! if (--iop->_cnt > -iop->_bufsiz && *ptr != '\n') X! *iop->_ptr++ = *ptr++; X! else if (_flsbuf(*(unsigned char *)ptr++, iop) == EOF) X! break; X! s--; X! } X! else while (s > 0) { X! if (iop->_cnt < s) { X! if (iop->_cnt > 0) { X! bcopy(ptr, iop->_ptr, iop->_cnt); X! ptr += iop->_cnt; X! iop->_ptr += iop->_cnt; X! s -= iop->_cnt; X! } X! if (_flsbuf(*(unsigned char *)ptr++, iop) == EOF) X! break; X! s--; X! } X! if (iop->_cnt >= s) { X! bcopy(ptr, iop->_ptr, s); X! iop->_ptr += s; X! iop->_cnt -= s; X! return (count); X! } X! } X! return (size != 0 ? count - ((s + size - 1) / size) : 0); X } X--- 1,72 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X! * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)fwrite.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include "local.h" X! #include "fvwrite.h" X X! /* X! * Write `count' objects (each size `size') from memory to the given file. X! * Return the number of whole objects written. X! */ X! size_t X! fwrite(buf, size, count, fp) X! const void *buf; X! size_t size, count; X! FILE *fp; X { X! size_t n; X! struct __suio uio; X! struct __siov iov; X X! iov.iov_base = (void *)buf; X! uio.uio_resid = iov.iov_len = n = count * size; X! uio.uio_iov = &iov; X! uio.uio_iovcnt = 1; X! X! /* X! * The usual case is success (__sfvwrite returns 0); X! * skip the divide if this happens, since divides are X! * generally slow and since this occurs whenever size==0. X! */ X! if (__sfvwrite(fp, &uio) == 0) X! return (count); X! return ((n - uio.uio_resid) / size); X } X*** ./usr/src/lib/libc/stdio/getchar.c.old Tue Feb 24 00:00:22 1987 X--- ./usr/src/lib/libc/stdio/getchar.c Fri Dec 26 21:08:47 2025 X*************** X*** 1,16 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)getchar.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X /* X * A subroutine version of the macro getchar. X */ X- #define USE_STDIO_MACROS X #include X X #undef getchar X X! getchar() X { X! return(getc(stdin)); X } X--- 1,52 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)getchar.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X /* X * A subroutine version of the macro getchar. X */ X #include X X #undef getchar X X! int X! getchar(void) X { X! return (__sgetc(stdin)); X } X*** ./usr/src/lib/libc/stdio/gets.c.old Sun Mar 9 22:52:27 1986 X--- ./usr/src/lib/libc/stdio/gets.c Fri Dec 26 21:09:10 2025 X*************** X*** 1,21 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)gets.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X char * X! gets(s) X! char *s; X { X! register c; X! register char *cs; X X! cs = s; X! while ((c = getchar()) != '\n' && c != EOF) X! *cs++ = c; X! if (c == EOF && cs==s) X! return(NULL); X! *cs++ = '\0'; X! return(s); X } X--- 1,67 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)gets.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X X char * X! gets(char *buf) X { X! register int c; X! register char *s; X! static int warned; X! static char w[] = X! "warning: this program uses gets(), which is unsafe.\r\n"; X X! if (!warned) { X! (void) write(STDERR_FILENO, w, sizeof(w) - 1); X! warned = 1; X! } X! for (s = buf; (c = __sgetc(stdin)) != '\n';) X! if (c == EOF) X! if (s == buf) X! return (NULL); X! else X! break; X! else X! *s++ = c; X! *s = 0; X! return (buf); X } X*** ./usr/src/lib/libc/stdio/getw.c.old Tue Jan 11 00:00:18 1994 X--- ./usr/src/lib/libc/stdio/getw.c Fri Dec 26 21:09:32 2025 X*************** X*** 1,38 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)getw.c 5.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X #include X X! getw(iop) X! register FILE *iop; X { X! register i; X! register char *p; X! int w; X X! p = (char *)&w; X! for (i=sizeof(int); --i>=0;) X! *p++ = getc(iop); X! if (feof(iop)) X! return(EOF); X! return(w); X } X- X- #ifdef pdp11 X- long X- getlw(iop) X- register FILE *iop; X- { X- register i; X- register char *p; X- long w; X- X- p = (char *)&w; X- for (i=sizeof(long); --i>=0;) X- *p++ = getc(iop); X- if (feof(iop)) X- return(EOF); X- return(w); X- } X- #endif X--- 1,49 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)getw.c 8.2 (2.11BSD) 2025/12/26"; X #endif X X #include X X! int X! getw(FILE *fp) X { X! int x; X X! return (fread((void *)&x, sizeof(x), 1, fp) == 1 ? x : EOF); X } X*** ./usr/src/lib/libc/stdio/printf.c.old Sun Mar 9 22:52:47 1986 X--- ./usr/src/lib/libc/stdio/printf.c Fri Dec 26 21:09:58 2025 X*************** X*** 1,12 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)printf.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X! printf(fmt, args) X! char *fmt; X { X! _doprnt(fmt, &args, stdout); X! return(ferror(stdout)? EOF: 0); X } X--- 1,54 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)printf.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X X! int X! printf(char const *fmt, ...) X { X! int ret; X! va_list ap; X! X! va_start(ap, fmt); X! ret = __svfprintf(stdout, fmt, ap); X! va_end(ap); X! return (ret); X } X*** ./usr/src/lib/libc/stdio/putchar.c.old Tue Feb 24 00:00:22 1987 X--- ./usr/src/lib/libc/stdio/putchar.c Fri Dec 26 21:10:20 2025 X*************** X*** 1,17 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)putchar.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X- /* X- * A subroutine version of the macro putchar X- */ X- #define USE_STDIO_MACROS X #include X X #undef putchar X X! putchar(c) X! register c; X { X! putc(c, stdout); X } X--- 1,54 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)putchar.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X X #undef putchar X X! /* X! * A subroutine version of the macro putchar X! */ X! int X! putchar(int c) X { X! register FILE *so = stdout; X! X! return (__sputc(c, so)); X } X*** ./usr/src/lib/libc/stdio/puts.c.old Sun Mar 9 22:53:06 1986 X--- ./usr/src/lib/libc/stdio/puts.c Fri Dec 26 21:10:38 2025 X*************** X*** 1,15 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)puts.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X! puts(s) X! register char *s; X { X! register c; X X! while (c = *s++) X! putchar(c); X! return(putchar('\n')); X } X--- 1,63 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)puts.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X! #include "fvwrite.h" X X! /* X! * Write the given string to stdout, appending a newline. X! */ X! int X! puts(char const *s) X { X! size_t c = strlen(s); X! struct __suio uio; X! struct __siov iov[2]; X X! iov[0].iov_base = (void *)s; X! iov[0].iov_len = c; X! iov[1].iov_base = "\n"; X! iov[1].iov_len = 1; X! uio.uio_resid = c + 1; X! uio.uio_iov = &iov[0]; X! uio.uio_iovcnt = 2; X! return (__sfvwrite(stdout, &uio) ? EOF : '\n'); X } X*** ./usr/src/lib/libc/stdio/scanf.c.old Sun Mar 9 22:53:34 1986 X--- ./usr/src/lib/libc/stdio/scanf.c Fri Dec 26 21:11:03 2025 X*************** X*** 1,33 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)scanf.c 5.2 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X! #include X X! scanf(fmt, args) X! char *fmt; X { X! return(_doscan(stdin, fmt, &args)); X! } X X! fscanf(iop, fmt, args) X! FILE *iop; X! char *fmt; X! { X! return(_doscan(iop, fmt, &args)); X! } X! X! sscanf(str, fmt, args) X! register char *str; X! char *fmt; X! { X! FILE _strbuf; X! X! _strbuf._flag = _IOREAD|_IOSTRG; X! _strbuf._ptr = _strbuf._base = str; X! _strbuf._cnt = 0; X! while (*str++) X! _strbuf._cnt++; X! _strbuf._bufsiz = _strbuf._cnt; X! return(_doscan(&_strbuf, fmt, &args)); X } X--- 1,54 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)scanf.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X X! int X! scanf(char const *fmt, ...) X { X! int ret; X! va_list ap; X X! va_start(ap, fmt); X! ret = __svfscanf(stdin, fmt, ap); X! va_end(ap); X! return (ret); X } X*** ./usr/src/lib/libc/stdio/setbuffer.c.old Tue Jul 29 23:31:41 1997 X--- ./usr/src/lib/libc/stdio/setbuffer.c Fri Dec 26 21:11:25 2025 X*************** X*** 35,51 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)setbuffer.c 8.1.1 (2.11BSD) 1997/7/29"; X! #endif /* LIBC_SCCS and not lint */ X X #include X- #include X X void X! setbuffer(fp, buf, size) X! register FILE *fp; X! char *buf; X! int size; X { X X (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); X--- 35,47 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)setbuffer.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X X void X! setbuffer(register FILE *fp, char *buf, int size) X { X X (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); X*************** X*** 55,62 **** X * set line buffering X */ X int X! setlinebuf(fp) X! FILE *fp; X { X X return (setvbuf(fp, (char *)NULL, _IOLBF, (size_t)0)); X--- 51,57 ---- X * set line buffering X */ X int X! setlinebuf(FILE *fp) X { X X return (setvbuf(fp, (char *)NULL, _IOLBF, (size_t)0)); X*** ./usr/src/lib/libc/stdio/setvbuf.c.old Tue Jul 29 22:05:56 1997 X--- ./usr/src/lib/libc/stdio/setvbuf.c Fri Dec 26 21:11:47 2025 X*************** X*** 35,90 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)setvbuf.c 8.1.1 (2.11BSD) 1997/7/27"; X! #endif /* LIBC_SCCS and not lint */ X X #include X #include X! #include X X /* X- * This has been slightly trimmed from the 4.4BSD version for use with 2.11BSD. X- * In particular 1) the flag names were changed back to the original ones X- * since I didn't feel like porting all of 4.4's stdio package right now and X- * 2) The constant BUFSIZ is used rather than importing the "optimum buffer X- * size selection" logic from 4.4 (besides, a PDP11 can't afford more than 1kb X- * most of the time anyhow). X- * X * Set one of the three kinds of buffering, optionally including X * a buffer. X */ X! setvbuf(fp, buf, mode, size) X! register FILE *fp; X! char *buf; X! register int mode; X! size_t size; X { X! int ret; X! register int flags; X X! /* X! * Verify arguments. Note, buf and size are ignored when setting _IONBF. X! */ X if (mode != _IONBF) X if ((mode != _IOFBF && mode != _IOLBF) || (int)size < 0) X return (EOF); X X /* X! * Write current buffer, if any. Discard unread input, cancel X! * line buffering, and free old buffer if malloc()ed. X */ X- (void)fflush(fp); X- fp->_cnt = fp->_bufsiz = 0; X- flags = fp->_flag; X- if (flags & _IOMYBUF) X- free((void *)fp->_base); X- flags &= ~(_IOLBF | _IONBF | _IOMYBUF); X ret = 0; X X /* If setting unbuffered mode, skip all the hard work. */ X if (mode == _IONBF) X goto nbf; X X if (size == 0) { X buf = NULL; /* force local allocation */ X size = BUFSIZ; X--- 35,91 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)setvbuf.c 8.3 (2.11BSD) 2025/12/26"; X! #endif X X #include X #include X! #include "local.h" X X /* X * Set one of the three kinds of buffering, optionally including X * a buffer. X */ X! int X! setvbuf(register FILE *fp, char *buf, register int mode, register size_t size) X { X! register int ret, flags; X X! /* X! * Verify arguments. The `int' limit on `size' is due to this X! * particular implementation. Note, buf and size are ignored X! * when setting _IONBF. X! */ X if (mode != _IONBF) X if ((mode != _IOFBF && mode != _IOLBF) || (int)size < 0) X return (EOF); X X /* X! * Write current buffer, if any. Discard unread input (including X! * ungetc data), cancel line buffering, and free old buffer if X! * malloc()ed. We also clear any eof condition, as if this were X! * a seek. X */ X ret = 0; X+ (void)__sflush(fp); X+ if (HASUB(fp)) X+ FREEUB(fp); X+ fp->_r = fp->_lbfsize = 0; X+ flags = fp->_flags; X+ if (flags & __SMBF) X+ free((void *)fp->_bf._base); X+ flags &= ~(__SLBF | __SNBF | __SMBF | __SOPT | __SNPT | __SEOF); X X /* If setting unbuffered mode, skip all the hard work. */ X if (mode == _IONBF) X goto nbf; X X+ /* X+ * Find optimal I/O size for seek optimization. This also returns X+ * a `tty flag' to suggest that we check isatty(fd), but we do not X+ * care since our caller told us how to buffer. X+ */ X+ flags |= __SNPT; X if (size == 0) { X buf = NULL; /* force local allocation */ X size = BUFSIZ; X*************** X*** 92,98 **** X X /* Allocate buffer if needed. */ X if (buf == NULL) { X! if ((buf = (char *)malloc(size)) == NULL) { X /* X * Unable to honor user's request. We will return X * failure, but try again with file system size. X--- 93,99 ---- X X /* Allocate buffer if needed. */ X if (buf == NULL) { X! if ((buf = malloc(size)) == NULL) { X /* X * Unable to honor user's request. We will return X * failure, but try again with file system size. X*************** X*** 100,129 **** X ret = EOF; X if (size != BUFSIZ) { X size = BUFSIZ; X! buf = (char *)malloc(size); X } X } X if (buf == NULL) { X /* No luck; switch to unbuffered I/O. */ X nbf: X! fp->_flag = flags | _IONBF; X! fp->_base = fp->_ptr = NULL; X return (ret); X } X! flags |= _IOMYBUF; X } X X /* X! * Fix up the FILE fields. If in r/w mode, go to the unknown state X! * so that the the first read performs its initial call to _filbuf and X! * the first write has an empty buffer to fill. X */ X if (mode == _IOLBF) X! flags |= _IOLBF; X! if (flags & _IORW) X! flags &= ~(_IOREAD | _IOWRT); X! fp->_flag = flags; X! fp->_base = fp->_ptr = (char *)buf; X! fp->_bufsiz = size; X return (ret); X } X--- 101,157 ---- X ret = EOF; X if (size != BUFSIZ) { X size = BUFSIZ; X! buf = malloc(size); X } X } X if (buf == NULL) { X /* No luck; switch to unbuffered I/O. */ X nbf: X! fp->_flags = flags | __SNBF; X! fp->_w = 0; X! fp->_bf._base = fp->_p = fp->_nbuf; X! fp->_bf._size = 1; X return (ret); X } X! flags |= __SMBF; X } X X /* X! * Kill any seek optimization if the buffer is not the X! * right size. X! * X! * SHOULD WE ALLOW MULTIPLES HERE (i.e., ok iff (size % BUFSIZ) == 0)? X */ X+ if (size != BUFSIZ) X+ flags |= __SNPT; X+ X+ /* X+ * Fix up the FILE fields, and set __cleanup for output flush on X+ * exit (since we are buffered in some way). X+ */ X if (mode == _IOLBF) X! flags |= __SLBF; X! fp->_flags = flags; X! fp->_bf._base = fp->_p = (unsigned char *)buf; X! fp->_bf._size = size; X! /* fp->_lbfsize is still 0 */ X! if (flags & __SWR) { X! /* X! * Begin or continue writing: see __swsetup(). Note X! * that __SNBF is impossible (it was handled earlier). X! */ X! if (flags & __SLBF) { X! fp->_w = 0; X! fp->_lbfsize = -fp->_bf._size; X! } else X! fp->_w = size; X! } else { X! /* begin/continue reading, or stay in intermediate state */ X! fp->_w = 0; X! } X! #if 0 X! __cleanup = _cleanup; X! #endif X! X return (ret); X } X*** ./usr/src/lib/libc/stdio/sprintf.c.old Wed Apr 5 21:29:31 1995 X--- ./usr/src/lib/libc/stdio/sprintf.c Fri Dec 26 21:12:11 2025 X*************** X*** 1,36 **** X! /* X! * Copyright (c) 1988 Regents of the University of California. X! * All rights reserved. X * X! * Redistribution and use in source and binary forms are permitted X! * provided that the above copyright notice and this paragraph are X! * duplicated in all such forms and that any documentation, X! * advertising materials, and other materials related to such X! * distribution and use acknowledge that the software was developed X! * by the University of California, Berkeley. The name of the X! * University may not be used to endorse or promote products derived X! * from this software without specific prior written permission. X! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR X! * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X! * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)vsprintf.c 5.2.1 (2.11BSD) 1995/04/02"; X! #endif /* LIBC_SCCS and not lint */ X X! #include X X int X! sprintf(str, fmt, args) X! char *str, *fmt; X { X! FILE _strbuf; X X! _strbuf._flag = _IOWRT+_IOSTRG; X! _strbuf._ptr = str; X! _strbuf._cnt = 32767; X! _doprnt(fmt, &args, &_strbuf); X! *_strbuf._ptr = 0; X! return(_strbuf._ptr - str); X } X--- 1,61 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)sprintf.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X! #include X! #include X! #include X! #include "local.h" X X int X! sprintf(char *str, char const *fmt, ...) X { X! int ret; X! va_list ap; X! FILE f; X X! f._flags = __SWR | __SSTR; X! f._bf._base = f._p = (unsigned char *)str; X! f._bf._size = f._w = INT_MAX; X! va_start(ap, fmt); X! ret = __svfprintf(&f, fmt, ap); X! va_end(ap); X! *f._p = 0; X! return (ret); X } X*** ./usr/src/lib/libc/stdio/ungetc.c.old Wed Mar 26 20:08:43 1986 X--- ./usr/src/lib/libc/stdio/ungetc.c Fri Dec 26 21:12:30 2025 X*************** X*** 1,24 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)ungetc.c 5.3 (Berkeley) 3/26/86"; X! #endif LIBC_SCCS and not lint X X #include X X! ungetc(c, iop) X! register FILE *iop; X { X! if (c == EOF || (iop->_flag & (_IOREAD|_IORW)) == 0 || X! iop->_ptr == NULL || iop->_base == NULL) X return (EOF); X X! if (iop->_ptr == iop->_base) X! if (iop->_cnt == 0) X! iop->_ptr++; X! else X return (EOF); X X! iop->_cnt++; X! *--iop->_ptr = c; X X return (c); X } X--- 1,157 ---- X+ /*- X+ * Copyright (c) 1990, 1993 X+ * The Regents of the University of California. All rights reserved. X+ * X+ * This code is derived from software contributed to Berkeley by X+ * Chris Torek. 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+ X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)ungetc.c 8.3 (2.11BSD) 2025/12/26"; X! #endif X X #include X+ #include X+ #include X+ #include "local.h" X X! #define PBUFSZ 8 /* Use small pushback buffer */ X! X! /* X! * Expand the ungetc buffer `in place'. That is, adjust fp->_p when X! * the buffer moves, so that it points the same distance from the end, X! * and move the bytes in the buffer around as necessary so that they X! * are all at the end (stack-style). X! */ X! static int X! __submore(register FILE *fp) X { X! register int i; X! register unsigned char *p; X! X! /* copy fops (if needed) */ X! if (fp->_fops == &__sdefops && __scopyfops(fp)) X! return EOF; X! X! if (fp->_fops->_ub._base == NULL) { X! /* X! * Get a new buffer (rather than expanding the old one). X! */ X! if ((p = malloc((size_t)PBUFSZ)) == NULL) X! return (EOF); X! fp->_fops->_ub._base = p; X! fp->_fops->_ub._size = PBUFSZ; X! p += PBUFSZ - sizeof(fp->_ubuf); X! for (i = sizeof(fp->_ubuf); --i >= 0;) X! p[i] = fp->_ubuf[i]; X! fp->_p = p; X! fp->_flags &= ~__SUNC; X! return (0); X! } X! i = fp->_fops->_ub._size; X! p = realloc(fp->_fops->_ub._base, i << 1); X! if (p == NULL) X return (EOF); X+ /* no overlap (hence can use memcpy) because we doubled the size */ X+ (void)memcpy((void *)(p + i), (void *)p, (size_t)i); X+ fp->_p = p + i; X+ fp->_fops->_ub._base = p; X+ fp->_fops->_ub._size = i << 1; X+ return (0); X+ } X X! int X! ungetc(int c, register FILE *fp) X! { X! if (c == EOF) X! return (EOF); X! if ((fp->_flags & __SRD) == 0) { X! /* X! * Not already reading: no good unless reading-and-writing. X! * Otherwise, flush any current write stuff. X! */ X! if ((fp->_flags & __SRW) == 0) X return (EOF); X+ if (fp->_flags & __SWR) { X+ if (__sflush(fp)) X+ return (EOF); X+ fp->_flags &= ~__SWR; X+ fp->_w = 0; X+ fp->_lbfsize = 0; X+ } X+ fp->_flags |= __SRD; X+ } X+ c = (unsigned char)c; X X! /* X! * If we are in the middle of ungetc'ing, just continue. X! * This may require expanding the current ungetc buffer. X! */ X! if (HASUB(fp)) { X! if (fp->_r >= fp->_fops->_ub._size && __submore(fp)) X! return (EOF); X! *--fp->_p = c; X! fp->_r++; X! return (c); X! } else if (fp->_flags & __SUNC) { X! /* only builtin buffer used, need to allocate more */ X! if (__submore(fp)) X! return (EOF); X! *--fp->_p = c; X! fp->_r++; X! return (c); X! } X! fp->_flags &= ~__SEOF; X X+ /* X+ * If we can handle this by simply backing up, do so, X+ * but never replace the original character. X+ * (This makes sscanf() work when scanning `const' data.) X+ */ X+ if (fp->_bf._base != NULL && fp->_p > fp->_bf._base && X+ fp->_p[-1] == c) { X+ fp->_p--; X+ fp->_r++; X+ return (c); X+ } X+ X+ /* X+ * Create an ungetc buffer. X+ * Initially, we will use the `reserve' buffer. X+ */ X+ fp->_ur = fp->_r; X+ fp->_up = fp->_p; X+ fp->_ubuf[sizeof(fp->_ubuf) - 1] = c; X+ fp->_p = &fp->_ubuf[sizeof(fp->_ubuf) - 1]; X+ fp->_flags |= __SUNC; X+ fp->_r = 1; X return (c); X } X*** ./usr/src/lib/libc/stdio/vfprintf.c.old Mon Dec 26 16:00:21 1988 X--- ./usr/src/lib/libc/stdio/vfprintf.c Fri Dec 26 21:13:54 2025 X*************** X*** 1,47 **** X /* X! * Copyright (c) 1988 Regents of the University of California. X * All rights reserved. X * X! * Redistribution and use in source and binary forms are permitted X! * provided that the above copyright notice and this paragraph are X! * duplicated in all such forms and that any documentation, X! * advertising materials, and other materials related to such X! * distribution and use acknowledge that the software was developed X! * by the University of California, Berkeley. The name of the X! * University may not be used to endorse or promote products derived X! * from this software without specific prior written permission. X! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR X! * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X! * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)vfprintf.c 5.2 (Berkeley) 6/27/88"; X! #endif /* LIBC_SCCS and not lint */ X X #include X! #include X X int X! vfprintf(iop, fmt, ap) X! FILE *iop; X! char *fmt; X! va_list ap; X { X! int len; X! char localbuf[BUFSIZ]; X X! if (iop->_flag & _IONBF) { X! iop->_flag &= ~_IONBF; X! iop->_ptr = iop->_base = localbuf; X! len = _doprnt(fmt, ap, iop); X! (void) fflush(iop); X! iop->_flag |= _IONBF; X! iop->_base = NULL; X! iop->_bufsiz = 0; X! iop->_cnt = 0; X! } else X! len = _doprnt(fmt, ap, iop); X X! return (ferror(iop) ? EOF : len); X } X--- 1,301 ---- X /* X! * Copyright (c) 2020 Anders Magnusson (ragge@tethuvudet.se). X * 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! * X! * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X! * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X! * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X! * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X! * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X! * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X! * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X! * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X! * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)wbuf.c 1.0 (2.11BSD) 2025/12/26"; X! #endif X X+ #include X+ #include X #include X! #include X X+ #include "local.h" X+ X+ #define SZBUF 84 /* Max # of digits (est.) */ X+ X+ /* X+ * matchtab[] contains everything that can be matched in a format string. X+ * mjump[] corresponds to matchtab to tell which case entry to go to. X+ */ X+ char matchtab[] = { X+ '-', '+', ' ', '#', '0', /* flags */ X+ #define LCBASE 5 X+ 'j', 'z', 't', 'L', 'h', 'l', /* length/conversion */ X+ #define NUMBASE 11 X+ '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '*', /* prec digits */ X+ #define IBASE 22 X+ 'o', 'u', 'd', 'i', 'x', 'X', 'p', /* integer etc */ X+ #define SPBASE 29 X+ 'c', 'n', 's', /* specials */ X+ #define FPBASE 32 X+ 'f', 'F', 'e', 'E', 'g', 'G', 'a', 'A', /* floating point */ X+ #define CBASE 40 X+ 'O', 'U', 'D', 0 /* compat */ X+ }; X+ X+ int lmods[] = { FLADJ, FPLUS, FSPC, FALT, FZERO, MLONG, 0, 0, 0, MCHAR, MLONG }; X+ int convtab[] = { 0, CDEC, CSGN+CDEC, CSGN+CDEC, CHEX, CHEX+CUC, FALT }; X+ char _hextab[] = "0123456789ABCDEF"; X+ X+ int gnum(char **, struct prinfo *); X+ void prstr(char *b, char *e, struct prinfo *pi); X+ void putwth(register struct prinfo *pi); X+ X int X! __svfprintf(FILE *iob, const char *fmt, va_list ap) X { X! struct prinfo pri; X! char *lastw; X! register char *mtab; X! register int ch; X! register char *chp; X! unsigned long l; X! char buf[SZBUF]; X X! pri.nwrtn = 0; X! pri.iob = iob; X! pri.app = ≈ X! pri.bend = buf + (pri.nallo = SZBUF); X X! loop: X! chp = fmt; X! lastw = chp; X! while (*chp && *chp != '%') X! chp++; X! if (chp != lastw) X! prstr(lastw, chp, &pri); X! if (*chp++ == 0) X! return pri.nwrtn; X! fmt = chp; X! pri.ndigit = 1; X! pri.width = pri.flags = 0; X! for (;;) { X! for (ch = 0, mtab = matchtab; *mtab; mtab++, ch++) X! if (*mtab == *fmt) X! break; X! fmt++; X! if (*mtab == 0) { X! prstr(fmt-1, fmt, &pri); X! goto loop; X! } X! X! if (ch < NUMBASE) { X! pri.flags += lmods[ch]; X! if (pri.flags & FLADJ) X! pri.flags &= ~FZERO; X! continue; X! X! } else if (ch < IBASE) { X! fmt--; X! if ((pri.width = gnum(&fmt, &pri)) < 0) X! pri.width = -pri.width, pri.flags |= FLADJ; X! pri.ndigit = 1; X! if (*fmt == '.') { X! fmt++; X! pri.ndigit = gnum(&fmt, &pri); X! pri.flags |= NDFND; X! } X! continue; X! X! } else if (ch < SPBASE) { X! intfmt: mtab = (char *)&pri.flags; X! #define FLAGP *(int *)mtab X! FLAGP |= convtab[ch - IBASE]; X! X! ch = pri.width; X! if ((FLAGP & NDFND) && ch < pri.ndigit) X! ch = pri.ndigit; X! if (ch > pri.nallo) X! pri.bend = alloca(pri.nallo = ch) + ch; X! X! #ifdef __pdp11__ X! if (FLAGP & (MLONG|MLLONG)) { X! l = *(long *)ap; ap += 3; X! } else X! l = *(int *)ap++; X! ap++; X! #else X! l = (FLAGP & (MLONG|MLLONG)) ? X! va_arg(ap, long) : (long)va_arg(ap, int); X! #endif X! X! if (FLAGP & CSGN) { X! FLAGP &= ~FALT; X! if ((long)l < 0) X! l = -(long)l, FLAGP |= ISNEG; X! } else { X! FLAGP &= ~(FSPC|FPLUS); X! if ((FLAGP & (MLONG|MLLONG)) == 0) X! l = (unsigned int)l; X! } X! X! ch = 8; X! if (FLAGP & CDEC) X! ch = 10; X! if (FLAGP & CHEX) { X! ch <<= 1; X! if (l == 0) X! FLAGP &= ~FALT; X! } X! mtab = chp = pri.bend; X! X! if (l == 0 && pri.ndigit) X! *--chp = '0'; X! while (l) { X! *--chp = _hextab[l % ch]; X! if ((pri.flags & CUC) == 0) X! *chp |= ' '; /* make lowercase */ X! l /= ch; X! } X! } else if (ch < FPBASE) { X! if (*mtab == 'c') { X! #ifdef __pdp11__ X! chp = ap++; X! mtab = ap++; X! #else X! char *cw = va_arg(ap, int); X! mtab = chp = &cw; X! mtab++; X! #endif X! } else if (*mtab == 's') { // s X! mtab = chp = va_arg(ap, char *); X! ch = INT_MAX; /* XXX */ X! if (pri.flags & NDFND) X! ch = pri.ndigit; X! while (*mtab != 0 && mtab - chp < ch) X! mtab++; X! } else { /* 'n' */ X! /* XXX missing char/short/long check */ X! *va_arg(ap, int *) = pri.nwrtn; X! goto loop; X! } X! pri.flags &= ~(FALT|FPLUS|FSPC|NDFND); X! } else if (ch < CBASE) { X! chp = __pfcom(*mtab, &pri); X! mtab = pri.bend; X! } else { // compat X! pri.flags |= MLONG; X! ch -= (CBASE-IBASE); X! goto intfmt; X! } X! /* X! * Input: X! * bbeg, bend = beginning and end of buffer. X! * will do width padding and aligning. X! * X! * R-adj0 Z+ width num X! * X! * L-adj Z+ num width_ X! * L-adj.p Z+ prec num width X! * X! * R-adj+ Width Z+ prec num X! * R-adj_.p width Z+ prec num X! * R-adj_ width Z+ num X! * R-adj Z+ num X! */ X! /* mtab == end buffer, chp == beg buffer */ X! ch = pri.flags; X! if (ch & NDFND) { X! pri.ndigit -= (mtab - chp); X! while (pri.ndigit-- > 0) X! *--chp = '0'; X! } else if (ch & FZERO) { X! pri.width -= (mtab - chp); X! if (ch & (FALT|ISNEG|FPLUS|FSPC)) { X! pri.width--; X! if (ch & CHEX) X! pri.width--; X! } X! if ((ch & (CHEX|CDEC|FALT)) == FALT && pri.width > 0) X! pri.width++; X! X! while (pri.width-- > 0) X! *--chp = '0'; X! } X! if (ch & FALT) { X! if (ch & CHEX) { X! *--chp = 'X'; X! if ((ch & CUC) == 0) X! *chp = 'x'; X! } X! if (*chp != '0') X! *--chp = '0'; X! } else if (ch & ISNEG) X! *--chp = '-'; X! else if (ch & FPLUS) X! *--chp = '+'; X! else if (ch & FSPC) X! *--chp = ' '; X! pri.width -= (mtab - chp); X! X! if ((ch &= FLADJ) == 0) X! putwth(&pri); X! prstr(chp, mtab, &pri); X! if (ch) X! putwth(&pri); X! X! break; X! } X! X! goto loop; X! } X! X! /* X! * Get size of a field. X! */ X! static int X! gnum(char **f, struct prinfo *pi) X! { X! register int n = 0; X! register char *fmt = *f; X! X! if (*fmt == '*') { X! n = va_arg(*pi->app, int); X! fmt++; X! } else { X! while (*fmt >= '0' && *fmt <= '9') X! n = n * 10 + *fmt++ - '0'; X! } X! *f = fmt; X! return n; X! } X! X! static void X! prstr(register char *b, char *e, register struct prinfo *pi) X! { X! pi->nwrtn += e - b; X! while (b < e) X! fputc(*b++, pi->iob); X! } X! X! static void X! putwth(register struct prinfo *pi) X! { X! register int w = pi->width; X! X! while (w-- > 0) X! fputc(' ', pi->iob), pi->nwrtn++; X } X*** ./usr/src/lib/libc/stdio/vprintf.c.old Mon Dec 26 16:00:21 1988 X--- ./usr/src/lib/libc/stdio/vprintf.c Fri Dec 26 21:14:15 2025 X*************** X*** 1,34 **** X! /* X! * Copyright (c) 1988 Regents of the University of California. X! * All rights reserved. X * X! * Redistribution and use in source and binary forms are permitted X! * provided that the above copyright notice and this paragraph are X! * duplicated in all such forms and that any documentation, X! * advertising materials, and other materials related to such X! * distribution and use acknowledge that the software was developed X! * by the University of California, Berkeley. The name of the X! * University may not be used to endorse or promote products derived X! * from this software without specific prior written permission. X! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR X! * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X! * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)vprintf.c 5.2 (Berkeley) 6/27/88"; X! #endif /* LIBC_SCCS and not lint */ X X #include X- #include X X int X! vprintf(fmt, ap) X! char *fmt; X! va_list ap; X { X! int len; X! X! len = _doprnt(fmt, ap, stdout); X! return (ferror(stdout) ? EOF : len); X } X--- 1,47 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)vprintf.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X X int X! vprintf(char const *fmt, va_list ap) X { X! return (vfprintf(stdout, fmt, ap)); X } X*** ./usr/src/lib/libc/stdio/vsprintf.c.old Mon Apr 3 00:14:18 1995 X--- ./usr/src/lib/libc/stdio/vsprintf.c Fri Dec 26 21:14:33 2025 X*************** X*** 1,38 **** X! /* X! * Copyright (c) 1988 Regents of the University of California. X! * All rights reserved. X * X! * Redistribution and use in source and binary forms are permitted X! * provided that the above copyright notice and this paragraph are X! * duplicated in all such forms and that any documentation, X! * advertising materials, and other materials related to such X! * distribution and use acknowledge that the software was developed X! * by the University of California, Berkeley. The name of the X! * University may not be used to endorse or promote products derived X! * from this software without specific prior written permission. X! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR X! * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X! * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)vsprintf.c 5.2.1 (2.11BSD) 1995/04/02"; X! #endif /* LIBC_SCCS and not lint */ X X #include X! #include X X int X! vsprintf(str, fmt, ap) X! char *str, *fmt; X! va_list ap; X { X FILE f; X X! f._flag = _IOWRT+_IOSTRG; X! f._ptr = str; X! f._cnt = 32767; X! _doprnt(fmt, ap, &f); X! *f._ptr = 0; X! return (f._ptr - str); X } X--- 1,56 ---- X! /*- X! * Copyright (c) 1990, 1993 X! * The Regents of the University of California. All rights reserved. X * X! * This code is derived from software contributed to Berkeley by X! * Chris Torek. 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 X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)vsprintf.c 8.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X! #include X X int X! vsprintf(char *str, const char *fmt, va_list ap) X { X+ int ret; X FILE f; X X! f._flags = __SWR | __SSTR; X! f._bf._base = f._p = (unsigned char *)str; X! f._bf._size = f._w = INT_MAX; X! ret = vfprintf(&f, fmt, ap); X! *f._p = 0; X! return (ret); X } X*** ./usr/src/lib/libc/inet/Makefile.old Wed Feb 4 23:18:59 1987 X--- ./usr/src/lib/libc/inet/Makefile Sat Nov 29 14:03:36 2025 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 (Berkeley) 9/5/85 X # X X SRCS= inet_addr.c inet_network.c \ 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.11BSDs) 2025/11/29 X # X X SRCS= inet_addr.c inet_network.c \ X*************** X*** 39,70 **** X rm -f inetlib inetlib_p *.o profiled/*.o errs a.out core \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! inet_addr.o: inet_addr.c /usr/include/sys/types.h /usr/include/ctype.h X inet_addr.o: /usr/include/netinet/in.h X! inet_network.o: inet_network.c /usr/include/sys/types.h /usr/include/ctype.h X! inet_netof.o: inet_netof.c /usr/include/sys/types.h /usr/include/netinet/in.h X! inet_ntoa.o: inet_ntoa.c /usr/include/sys/types.h /usr/include/netinet/in.h X! inet_lnaof.o: inet_lnaof.c /usr/include/sys/types.h /usr/include/netinet/in.h X! inet_maddr.o: inet_maddr.c /usr/include/sys/types.h /usr/include/netinet/in.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 39,66 ---- X rm -f inetlib inetlib_p *.o profiled/*.o errs a.out core \ X tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! inet_addr.o: inet_addr.c /usr/include/sys/types.h /usr/include/sys/select.h X! inet_addr.o: /usr/include/sys/types.h /usr/include/ctype.h X inet_addr.o: /usr/include/netinet/in.h X! inet_network.o: inet_network.c /usr/include/sys/types.h X! inet_network.o: /usr/include/sys/select.h /usr/include/sys/types.h X! inet_network.o: /usr/include/netinet/in.h /usr/include/ctype.h X! inet_netof.o: inet_netof.c /usr/include/sys/param.h X! inet_netof.o: /usr/include/sys/localopts.h /usr/include/sys/stddef.h X! inet_netof.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! inet_netof.o: /usr/include/sys/select.h /usr/include/sys/types.h X! inet_netof.o: /usr/include/signal.h /usr/include/sys/types.h X! inet_netof.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X! inet_ntoa.o: inet_ntoa.c /usr/include/sys/types.h /usr/include/sys/select.h X! inet_ntoa.o: /usr/include/sys/types.h /usr/include/netinet/in.h X! inet_lnaof.o: inet_lnaof.c /usr/include/sys/types.h /usr/include/sys/select.h X! inet_lnaof.o: /usr/include/sys/types.h /usr/include/netinet/in.h X! inet_maddr.o: inet_maddr.c /usr/include/sys/types.h /usr/include/sys/select.h X! inet_maddr.o: /usr/include/sys/types.h /usr/include/netinet/in.h X! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/ns/Makefile.old Wed Feb 4 23:19:12 1987 X--- ./usr/src/lib/libc/ns/Makefile Sat Nov 29 09:55:27 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.1 (Berkeley) 1/29/86 X # X X SRCS= ns_addr.c ns_ntoa.c X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.2 (2.11BSD) 2025/11/29 X # X X SRCS= ns_addr.c ns_ntoa.c X*************** X*** 35,61 **** X rm -f nslib nslib_p *.o profiled/*.o errs a.out core \ X tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X X! ns_addr.o: ns_addr.c /usr/include/sys/types.h /usr/include/netns/ns.h X! ns_ntoa.o: ns_ntoa.c /usr/include/sys/types.h /usr/include/netns/ns.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 35,48 ---- X rm -f nslib nslib_p *.o profiled/*.o errs a.out core \ X tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! ns_addr.o: ns_addr.c /usr/include/sys/types.h /usr/include/sys/select.h X! ns_addr.o: /usr/include/sys/types.h /usr/include/netns/ns.h X! ns_ntoa.o: ns_ntoa.c /usr/include/sys/types.h /usr/include/sys/select.h X! ns_ntoa.o: /usr/include/sys/types.h /usr/include/netns/ns.h X X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/compat-4.1/Makefile.old Sat Jan 21 19:54:29 1995 X--- ./usr/src/lib/libc/compat-4.1/Makefile Sat Nov 29 07:48:16 2025 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.1 (2.11BSD GTE) 1/21/95 X # X CFLAGS= -O ${DEFS} X SRCS=ftime.c gtty.c nice.c pause.c rand.c stty.c \ 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 SRCS=ftime.c gtty.c nice.c pause.c rand.c stty.c \ X*************** X*** 35,72 **** X clean: X rm -f compat-4.1lib compat-4.1lib_p *.o profiled/*.o tags Makefile.bak X X! depend: X! for i in ${SRCS}; do \ X! cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! ftime.o: ftime.c /usr/include/sys/types.h /usr/include/sys/time.h X! ftime.o: /usr/include/time.h X gtty.o: gtty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h X gtty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! nice.o: nice.c /usr/include/sys/time.h /usr/include/time.h X! nice.o: /usr/include/sys/resource.h X! pause.o: pause.c X rand.o: rand.c X stty.o: stty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h X stty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! times.o: times.c /usr/include/sys/time.h /usr/include/time.h X! times.o: /usr/include/sys/resource.h X! utime.o: utime.c /usr/include/sys/time.h /usr/include/time.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 35,63 ---- X clean: X rm -f compat-4.1lib compat-4.1lib_p *.o profiled/*.o tags Makefile.bak X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! ftime.o: ftime.c /usr/include/sys/types.h /usr/include/sys/select.h X! ftime.o: /usr/include/sys/types.h /usr/include/sys/time.h X! ftime.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/sys/types.h X gtty.o: gtty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h X gtty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! nice.o: nice.c /usr/include/sys/time.h /usr/include/sys/types.h X! nice.o: /usr/include/sys/select.h /usr/include/sys/types.h /usr/include/time.h X! nice.o: /usr/include/sys/types.h /usr/include/sys/resource.h X! pause.o: pause.c /usr/include/signal.h X rand.o: rand.c X stty.o: stty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h X stty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! times.o: times.c /usr/include/sys/time.h /usr/include/sys/types.h X! times.o: /usr/include/sys/select.h /usr/include/sys/types.h /usr/include/time.h X! times.o: /usr/include/sys/types.h /usr/include/sys/resource.h X! times.o: /usr/include/sys/types.h /usr/include/sys/times.h X! utime.o: utime.c /usr/include/sys/time.h /usr/include/sys/types.h X! utime.o: /usr/include/sys/select.h /usr/include/sys/types.h /usr/include/time.h X! utime.o: /usr/include/sys/types.h /usr/include/sys/types.h X! X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/compat-sys5/Makefile.old Fri Jan 12 02:05:02 1996 X--- ./usr/src/lib/libc/compat-sys5/Makefile Thu Dec 25 23:53:40 2025 X*************** X*** 1,10 **** X! # Makefile 1.6 1996/1/11 X # X CFLAGS= -O ${DEFS} X # strchr and strrchr.c are not used. The assembly versions in pdp/gen are X # used instead. X! SRCS= memccpy.c memchr.c memcmp.c memcpy.c memset.c tmpnam.c X! OBJS= memccpy.o memchr.o memcmp.o memcpy.o memset.o tmpnam.o X TAGSFILE=tags X X .c.o: X--- 1,10 ---- X! # Makefile 1.7 (2.11BSD) 2025/12/25 X # X CFLAGS= -O ${DEFS} X # strchr and strrchr.c are not used. The assembly versions in pdp/gen are X # used instead. X! SRCS= memccpy.c memchr.c memcmp.c memcpy.c memset.c X! OBJS= memccpy.o memchr.o memcmp.o memcpy.o memset.o X TAGSFILE=tags X X .c.o: X*** ./usr/src/lib/libc/stdlib/Makefile.old Fri Jan 12 16:38:09 1996 X--- ./usr/src/lib/libc/stdlib/Makefile Sat Nov 29 07:49:22 2025 X*************** X*** 1,5 **** X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1995/1/12 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.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*** ./usr/src/lib/libc/string/Makefile.old Thu Mar 21 00:07:51 1996 X--- ./usr/src/lib/libc/string/Makefile Sat Nov 29 07:50:03 2025 X*************** X*** 1,5 **** X # X! # @(#)Makefile 1.2 (2.11BSD GTE) 1996/3/20 X # X # This is the Makefile for the 'string' functions. New routines ported from X # 4.4BSD's libc/string directory go here but existing libc/gen files are X--- 1,5 ---- X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/29 X # X # This is the Makefile for the 'string' functions. New routines ported from X # 4.4BSD's libc/string directory go here but existing libc/gen files are X*** ./usr/src/lib/libc/Makefile.old Sun Sep 25 21:31:13 2022 X--- ./usr/src/lib/libc/Makefile Wed Dec 24 20:30:16 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.19.3 (2.11BSD) 2022/9/17 X # X # The system has two monitoring schemes, utilizing either ``prof'' X # or ``gprof''. DFLMON determines the default profiler; mon.o X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.19.4 (2.11BSD) 2025/11/25 X # X # The system has two monitoring schemes, utilizing either ``prof'' X # or ``gprof''. DFLMON determines the default profiler; mon.o X*************** X*** 27,34 **** X # X # To compile a non-floating point versions of some standard library X # routines add -DNONFP. This will speed up some operations if you don't X! # have hardware floating point. To compile a non-separate I&D version add X! # -DNONSEPARATE. X # X # There are two possible methods of doing host name look up. They are X # to use the name server or /etc/hosts. HOSTLOOKUP defines which method X--- 27,33 ---- X # X # To compile a non-floating point versions of some standard library X # routines add -DNONFP. This will speed up some operations if you don't X! # have hardware floating point. X # X # There are two possible methods of doing host name look up. They are X # to use the name server or /etc/hosts. HOSTLOOKUP defines which method X*************** X*** 43,49 **** X HOSTLOOKUP= named X #HOSTLOOKUP= hosttable X # X- DESTDIR= X INSTALL=install -m 644 X DFLMON= mon.o X MACHINE=pdp X--- 42,47 ---- X*************** X*** 60,69 **** X ar x ../net/${HOSTLOOKUP}/hostlib; \ X ar cr ../libc.a `lorder *.o | tsort` \ X ../${MACHINE}/csu/${DFLMON} X! ar ma findiop.o libc.a exit.o X ar ma exit.o libc.a fakcu.o X! ar ma fltpr.o libc.a doprnt.o X! ar ma doprnt.o libc.a ffltpr.o X rm -rf tmp X mkdir tmp X cd tmp; \ X--- 58,67 ---- X ar x ../net/${HOSTLOOKUP}/hostlib; \ X ar cr ../libc.a `lorder *.o | tsort` \ X ../${MACHINE}/csu/${DFLMON} X! ar ma findfp.o libc.a exit.o X ar ma exit.o libc.a fakcu.o X! ar ma pfcom.o libc.a vfprintf.o X! ar ma vfprintf.o libc.a fpfcom.o X rm -rf tmp X mkdir tmp X cd tmp; \ X*************** X*** 71,80 **** X ar x ../net/${HOSTLOOKUP}/hostlib_p; \ X ar cr ../libc_p.a `lorder *.o | tsort` \ X ../${MACHINE}/csu/${DFLMON} X! ar ma findiop.o libc_p.a exit.o X ar ma exit.o libc_p.a fakcu.o X! ar ma fltpr.o libc_p.a doprnt.o X! ar ma doprnt.o libc_p.a ffltpr.o X rm -rf tmp X X ${MACHINE}/csu ${ALL} net/${HOSTLOOKUP}: FRC X--- 69,78 ---- X ar x ../net/${HOSTLOOKUP}/hostlib_p; \ X ar cr ../libc_p.a `lorder *.o | tsort` \ X ../${MACHINE}/csu/${DFLMON} X! ar ma findfp.o libc_p.a exit.o X ar ma exit.o libc_p.a fakcu.o X! ar ma pfcom.o libc_p.a vfprintf.o X! ar ma vfprintf.o libc_p.a fpfcom.o X rm -rf tmp X X ${MACHINE}/csu ${ALL} net/${HOSTLOOKUP}: FRC X*************** X*** 84,94 **** X @sleep 1 X X install: libc.a libc_p.a X! ${INSTALL} libc.a ${DESTDIR}/lib/libc.a X! ranlib ${DESTDIR}/lib/libc.a X! ${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a X! ranlib ${DESTDIR}/usr/lib/libc_p.a X! cd ${MACHINE}/csu; make DESTDIR=${DESTDIR} install X X tags: X for i in ${ALL}; do \ X--- 82,92 ---- X @sleep 1 X X install: libc.a libc_p.a X! ${INSTALL} libc.a /lib/libc.a X! ranlib /lib/libc.a X! ${INSTALL} libc_p.a /usr/lib/libc_p.a X! ranlib /usr/lib/libc_p.a X! cd ${MACHINE}/csu; make install X X tags: X for i in ${ALL}; do \ X*************** X*** 100,106 **** X clean: X for i in ${MACHINE}/csu ${ALL} net/hosttable net/named; \ X do (cd $$i; make ${MFLAGS} clean); done X! rm -rf tmp X X depend: X for i in ${MACHINE}/csu ${ALL} net/hosttable net/named; \ X--- 98,104 ---- X clean: X for i in ${MACHINE}/csu ${ALL} net/hosttable net/named; \ X do (cd $$i; make ${MFLAGS} clean); done X! rm -rf tmp libc.a libc_p.a X X depend: X for i in ${MACHINE}/csu ${ALL} net/hosttable net/named; \ X*** ./usr/src/lib/pcc/Makefile.old Sun Aug 4 11:57:03 1991 X--- ./usr/src/lib/pcc/Makefile Tue Nov 25 14:26:41 2025 X*************** X*** 1,5 **** X # X! # Makefile 1.13 86/03/11 X # X # Makefile for PCC X # X--- 1,5 ---- X # X! # Makefile 1.14 (2.11BSD) 2025/11/25 X # X # Makefile for PCC X # X*************** X*** 81,87 **** X $(CC) -c $(COPTS) stab.c X X install: all X! install -s ${TESTDIR}/ccom ${DESTDIR}/lib/ccom X X GREP= egrep X X--- 81,87 ---- X $(CC) -c $(COPTS) stab.c X X install: all X! install -s ${TESTDIR}/ccom /lib/ccom X X GREP= egrep X X*** ./usr/src/lib/libkern/Makefile.old Sun Dec 3 19:01:25 2000 X--- ./usr/src/lib/libkern/Makefile Mon Dec 8 15:15:05 2025 X*************** X*** 1,5 **** X # X! # @(#)Makefile 1.3 (2.11BSD) 2000/11/13 X # X # This is the Makefile for 'libkern.a'. These are the specially compiled X # versions of libc.a routines which the kernel and network use. X--- 1,5 ---- X # X! # @(#)Makefile 1.4 (2.11BSD) 2025/11/25 X # X # This is the Makefile for 'libkern.a'. These are the specially compiled X # versions of libc.a routines which the kernel and network use. X*************** X*** 49,56 **** X mkdep ${CFLAGS} ${SRCS} X X install: FRC libkern.a X! install -o root -g bin -m 644 libkern.a ${DESTDIR}/usr/lib/libkern.a X! ranlib ${DESTDIR}/usr/lib/libkern.a X X FRC: X rm -f ${SRCS} X--- 49,56 ---- X mkdep ${CFLAGS} ${SRCS} X X install: FRC libkern.a X! install -o root -g staff -m 644 libkern.a /usr/lib/libkern.a X! ranlib /usr/lib/libkern.a X X FRC: X rm -f ${SRCS} X*** ./usr/src/lib/Makefile.old Thu Jan 11 22:30:41 1996 X--- ./usr/src/lib/Makefile Tue Nov 25 14:21:41 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4.1 (2.11BSD) 1996/1/11 X # X- DESTDIR= X CFLAGS= -O X- SEPFLAG= -i X TAGSFILE=tags X X # Programs that live in subdirectories, and have makefiles of their own. X--- 3,11 ---- 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/25 X # X CFLAGS= -O X TAGSFILE=tags X X # Programs that live in subdirectories, and have makefiles of their own. X*************** X*** 17,30 **** X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make SEPFLAG=${SEPFLAG} ${MFLAGS} X X FRC: X X install: X -for i in ${SUBDIR}; do \ X! (cd $$i; make SEPFLAG=${SEPFLAG} ${MFLAGS} \ X! DESTDIR=${DESTDIR} install); done X X tags: X cd libc; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags X--- 15,28 ---- X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X install: X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} \ X! install); done X X tags: X cd libc; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags SHAR_EOF fi if test -f 'OLD499C.patch' then echo shar: "will not over-write existing file 'OLD499C.patch'" else sed 's/^X//' << \SHAR_EOF > 'OLD499C.patch' X*** ./usr/src/libexec/ctimed/Makefile.old Tue Jun 25 22:34:04 1996 X--- ./usr/src/libexec/ctimed/Makefile Mon Dec 8 20:45:56 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/6/25 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/6/25 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= ctimed.c X OBJS= ctimed.o X X--- 1,10 ---- X # X # Public Domain. 1996/6/25 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= ctimed.c X OBJS= ctimed.o X X*************** X*** 11,17 **** X all: ctimed X X ctimed: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} ctimed tags X--- 11,17 ---- X all: ctimed X X ctimed: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} ctimed tags X*************** X*** 20,26 **** X mkdep ${CFLAGS} ${SRCS} X X install: ctimed X! install -s -o root -g bin -m 755 ctimed ${DESTDIR}/usr/libexec/ctimed X X lint: ${SRCS} X lint -hax ${SRCS} X--- 20,26 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ctimed X! install -c -s -o root -g staff -m 755 ctimed /usr/libexec/ctimed X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/tcpd/Makefile.old Sat Nov 16 15:41:54 1996 X--- ./usr/src/libexec/tcpd/Makefile Mon Dec 8 20:51:01 2025 X*************** X*** 1,5 **** X! # @(#) Makefile 1.20 1996/11/16 X! # Tailored and trimmed version created for 2.11BSD on April 7, 1995. X X REAL_DAEMON_DIR=/usr/libexec X RANLIB = ranlib # have ranlib (BSD-ish UNIX) X--- 1,4 ---- 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*************** X*** 48,64 **** X hosts5access.0 hosts3access.0 hosts_options.0 tcpdchk.0 tcpdmatch.0 X X install: all X! install -s -m 1751 -o root -g staff tcpd /usr/libexec/tcpd X! install -s -m 751 -o root -g staff tcpdmatch /usr/ucb/tcpdmatch X! install -s -m 751 -o root -g staff try-from /usr/ucb/try-from X! install -s -m 751 -o root -g staff safe_finger /usr/ucb/safe_finger X! install -s -m 751 -o root -g staff tcpdchk /usr/ucb/tcpdchk X! install -c -m 444 -o bin -g bin hosts3access.0 /usr/man/cat3/hosts_access.0 X! install -c -m 444 -o bin -g bin hosts5access.0 /usr/man/cat5/hosts_access.0 X! install -c -m 444 -o bin -g bin hosts_options.0 /usr/man/cat5/hosts_options.0 X! install -c -m 444 -o bin -g bin tcpd.0 /usr/man/cat8/tcpd.0 X! install -c -m 444 -o bin -g bin tcpdchk.0 /usr/man/cat8/tcpdchk.0 X! install -c -m 444 -o bin -g bin tcpdmatch.0 /usr/man/cat8/tcpdmatch.0 X X clean: X rm -f tcpd miscd safe_finger tcpdmatch tcpdchk try-from *.[oa] *.core \ X--- 47,63 ---- X hosts5access.0 hosts3access.0 hosts_options.0 tcpdchk.0 tcpdmatch.0 X X install: all X! install -c -s -m 1755 -o root -g staff tcpd /usr/libexec/tcpd X! install -c -s -m 755 -o root -g staff tcpdmatch /usr/ucb/tcpdmatch X! install -c -s -m 755 -o root -g staff try-from /usr/ucb/try-from X! install -c -s -m 755 -o root -g staff safe_finger /usr/ucb/safe_finger X! install -c -s -m 755 -o root -g staff tcpdchk /usr/ucb/tcpdchk X! install -c -m 444 -o root -g staff hosts3access.0 /usr/man/cat3/hosts_access.0 X! install -c -m 444 -o root -g staff hosts5access.0 /usr/man/cat5/hosts_access.0 X! install -c -m 444 -o root -g staff hosts_options.0 /usr/man/cat5/hosts_options.0 X! install -c -m 444 -o root -g staff tcpd.0 /usr/man/cat8/tcpd.0 X! install -c -m 444 -o root -g staff tcpdchk.0 /usr/man/cat8/tcpdchk.0 X! install -c -m 444 -o root -g staff tcpdmatch.0 /usr/man/cat8/tcpdmatch.0 X X clean: X rm -f tcpd miscd safe_finger tcpdmatch tcpdchk try-from *.[oa] *.core \ X*** ./usr/src/libexec/getNAME/Makefile.old Thu Oct 24 23:15:05 1996 X--- ./usr/src/libexec/getNAME/Makefile Mon Dec 8 20:46:24 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/10/24 - sms X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/10/24 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= getNAME.c X OBJS= getNAME.o X X--- 1,10 ---- X # X # Public Domain. 1996/10/24 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= getNAME.c X OBJS= getNAME.o X X*************** X*** 11,17 **** X all: getNAME X X getNAME: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} getNAME tags X--- 11,17 ---- X all: getNAME X X getNAME: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} getNAME tags X*************** X*** 20,26 **** X mkdep ${CFLAGS} ${SRCS} X X install: getNAME X! install -s -o root -g bin -m 755 getNAME ${DESTDIR}/usr/libexec/getNAME X X lint: ${SRCS} X lint -hax ${SRCS} X--- 20,26 ---- X mkdep ${CFLAGS} ${SRCS} X X install: getNAME X! install -c -s -o root -g staff -m 755 getNAME /usr/libexec/getNAME X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/makekey/Makefile.old Thu Oct 24 23:18:10 1996 X--- ./usr/src/libexec/makekey/Makefile Fri Dec 26 00:15:12 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/10/24 - sms X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/10/24 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= makekey.c X OBJS= makekey.o X X--- 1,10 ---- X # X # Public Domain. 1996/10/24 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/12/26 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= makekey.c X OBJS= makekey.o X X*************** X*** 11,17 **** X all: makekey X X makekey: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} makekey tags X--- 11,17 ---- X all: makekey X X makekey: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} makekey tags X*************** X*** 20,26 **** X mkdep ${CFLAGS} ${SRCS} X X install: makekey X! install -s -o root -g bin -m 755 makekey ${DESTDIR}/usr/libexec/makekey X X lint: ${SRCS} X lint -hax ${SRCS} X--- 20,26 ---- X mkdep ${CFLAGS} ${SRCS} X X install: makekey X! install -c -s -o root -g staff -m 755 makekey /usr/libexec/makekey X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/telnetd/Makefile.old Fri Mar 21 18:53:03 2025 X--- ./usr/src/libexec/telnetd/Makefile Mon Dec 8 15:33:52 2025 X*************** X*** 1,8 **** X # X! # @(#)Makefile 2.0 (2.11BSD) 2023/4/26 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= telnetd.c gettytab.c subr.c init.c X OBJS= telnetd.o gettytab.o subr.o init.o X MAN= telnetd.0 X--- 1,8 ---- X # X! # @(#)Makefile 2.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= telnetd.c gettytab.c subr.c init.c X OBJS= telnetd.o gettytab.o subr.o init.o X MAN= telnetd.0 X*************** X*** 12,18 **** X all: telnetd telnetd.0 X X telnetd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X ${OBJS}: ../getty/gettytab.h X X--- 12,18 ---- X all: telnetd telnetd.0 X X telnetd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X ${OBJS}: ../getty/gettytab.h X X*************** X*** 26,33 **** X mkdep ${CFLAGS} ${SRCS} X X install: telnetd ${MAN} X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -c -s -o root -g bin -m 755 telnetd ${DESTDIR}/usr/libexec/telnetd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 26,33 ---- X mkdep ${CFLAGS} ${SRCS} X X install: telnetd ${MAN} X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 telnetd /usr/libexec/telnetd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/rshd/Makefile.old Sat Nov 16 16:21:03 1996 X--- ./usr/src/libexec/rshd/Makefile Mon Dec 8 20:46:33 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= rshd.c X OBJS= rshd.o X MAN= rshd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= rshd.c X OBJS= rshd.o X MAN= rshd.0 X*************** X*** 13,19 **** X all: rshd rshd.0 X X rshd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X rshd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: rshd rshd.0 X X rshd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X rshd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: rshd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 rshd ${DESTDIR}/usr/libexec/rshd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rshd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 rshd /usr/libexec/rshd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/rlogind/Makefile.old Sat Nov 30 17:42:47 1996 X--- ./usr/src/libexec/rlogind/Makefile Mon Dec 8 20:47:27 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= rlogind.c X OBJS= rlogind.o X MAN= rlogind.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= rlogind.c X OBJS= rlogind.o X MAN= rlogind.0 X*************** X*** 13,19 **** X all: rlogind rlogind.0 X X rlogind: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} -lutil X X rlogind.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: rlogind rlogind.0 X X rlogind: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} -lutil X X rlogind.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: rlogind X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 rlogind ${DESTDIR}/usr/libexec/rlogind X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rlogind X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 rlogind /usr/libexec/rlogind X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/rexecd/Makefile.old Sat Nov 16 16:28:27 1996 X--- ./usr/src/libexec/rexecd/Makefile Mon Dec 8 20:47:31 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= rexecd.c X OBJS= rexecd.o X MAN= rexecd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= rexecd.c X OBJS= rexecd.o X MAN= rexecd.0 X*************** X*** 13,19 **** X all: rexecd rexecd.0 X X rexecd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X rexecd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: rexecd rexecd.0 X X rexecd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X rexecd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: rexecd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 rexecd ${DESTDIR}/usr/libexec/rexecd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rexecd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 rexecd /usr/libexec/rexecd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/rexecd/rexecd.c.old Sun Dec 25 02:08:22 1988 X--- ./usr/src/libexec/rexecd/rexecd.c Fri Dec 26 00:30:16 2025 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[] = "@(#)rexecd.c 5.4 (Berkeley) 5/9/86"; 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) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rexecd.c 5.5 (2.11BSD) 2025/12/26"; X! #endif X X #include X #include X*************** X*** 26,37 **** X #include X #include X #include X X! extern errno; X! struct passwd *getpwnam(); X! char *crypt(), *rindex(), *strncat(), *sprintf(); X! /*VARARGS1*/ X! int error(); X X /* X * remote execute server: X--- 24,33 ---- X #include X #include X #include X+ #include X+ #include X X! extern int errno; X X /* X * remote execute server: X*************** X*** 198,204 **** X exit(1); X } X X- /*VARARGS1*/ X error(fmt, a1, a2, a3) X char *fmt; X int a1, a2, a3; X--- 194,199 ---- X*** ./usr/src/libexec/fingerd/Makefile.old Sat Nov 16 16:35:41 1996 X--- ./usr/src/libexec/fingerd/Makefile Mon Dec 8 20:47:34 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= fingerd.c X OBJS= fingerd.o X MAN= fingerd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= fingerd.c X OBJS= fingerd.o X MAN= fingerd.0 X*************** X*** 13,19 **** X all: fingerd fingerd.0 X X fingerd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X fingerd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: fingerd fingerd.0 X X fingerd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X fingerd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: fingerd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 fingerd ${DESTDIR}/usr/libexec/fingerd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: fingerd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 fingerd /usr/libexec/fingerd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/tftpd/Makefile.old Sat Nov 30 17:45:49 1996 X--- ./usr/src/libexec/tftpd/Makefile Mon Dec 8 20:47:37 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= tftpd.c tftpsubs.c X OBJS= tftpd.o tftpsubs.o X MAN= tftpd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= tftpd.c tftpsubs.c X OBJS= tftpd.o tftpsubs.o X MAN= tftpd.0 X*************** X*** 13,19 **** X all: tftpd tftpd.0 X X tftpd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X tftpd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: tftpd tftpd.0 X X tftpd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X tftpd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: tftpd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 tftpd ${DESTDIR}/usr/libexec/tftpd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: tftpd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 tftpd /usr/libexec/tftpd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/ftpd/Makefile.old Sat Nov 16 16:58:38 1996 X--- ./usr/src/libexec/ftpd/Makefile Mon Dec 8 20:47:56 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O -DSETPROCTITLE X! SEPFLAG= -i X SRCS= ftpd.c ftpcmd.c glob.c logwtmp.c popen.c vers.c X OBJS= ftpd.o ftpcmd.o glob.o logwtmp.o popen.o vers.o X MAN= ftpd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O -DSETPROCTITLE X! LDFLAGS= -i X SRCS= ftpd.c ftpcmd.c glob.c logwtmp.c popen.c vers.c X OBJS= ftpd.o ftpcmd.o glob.o logwtmp.o popen.o vers.o X MAN= ftpd.0 X*************** X*** 13,19 **** X all: ftpd ftpd.0 X X ftpd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X ftpd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: ftpd ftpd.0 X X ftpd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X ftpd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: ftpd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 ftpd ${DESTDIR}/usr/libexec/ftpd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ftpd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 ftpd /usr/libexec/ftpd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/ftpd/ftpd.c.old Mon May 14 22:10:17 2001 X--- ./usr/src/libexec/ftpd/ftpd.c Fri Dec 26 00:08:41 2025 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.3 (2.11BSD) 2001/4/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.4 (2.11BSD) 2025/12/26"; X #endif X X /* X*************** X*** 50,56 **** X #include X #include X #include X- #include X #include "pathnames.h" X X #ifndef MAXHOSTNAMELEN X--- 50,55 ---- X*** ./usr/src/libexec/comsat/Makefile.old Sat Nov 16 17:02:30 1996 X--- ./usr/src/libexec/comsat/Makefile Mon Dec 8 20:48:21 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= comsat.c X OBJS= comsat.o X MAN= comsat.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= comsat.c X OBJS= comsat.o X MAN= comsat.0 X*************** X*** 13,19 **** X all: comsat comsat.0 X X comsat: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X comsat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: comsat comsat.0 X X comsat: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X comsat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: comsat X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 comsat ${DESTDIR}/usr/libexec/comsat X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: comsat X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 comsat /usr/libexec/comsat X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/talkd/Makefile.old Sat Nov 16 17:09:24 1996 X--- ./usr/src/libexec/talkd/Makefile Mon Dec 8 20:48:24 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= announce.c print.c process.c table.c talkd.c X OBJS= announce.o print.o process.o table.o talkd.o X MAN= talkd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= announce.c print.c process.c table.c talkd.c X OBJS= announce.o print.o process.o table.o talkd.o X MAN= talkd.0 X*************** X*** 13,19 **** X all: talkd talkd.0 X X talkd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X talkd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: talkd talkd.0 X X talkd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X talkd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: talkd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 talkd ${DESTDIR}/usr/libexec/ntalkd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: talkd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 talkd /usr/libexec/ntalkd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/getty/Makefile.old Mon Apr 28 21:40:10 1997 X--- ./usr/src/libexec/getty/Makefile Mon Dec 8 20:48:28 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 1997/4/28 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG=-i X X OBJS= main.o init.o subr.o gettytab.o get_date.o X X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.3 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS=-i X X OBJS= main.o init.o subr.o gettytab.o get_date.o X X*************** X*** 14,23 **** X all: getty X X getty: ${OBJS} X! ${CC} ${SEPFLAG} -o getty ${OBJS} X X install: all X! install -s -m 555 -o bin -g bin getty ${DESTDIR}/usr/libexec/getty X X clean: X rm -f getty ${OBJS} a.out core errs X--- 13,22 ---- X all: getty X X getty: ${OBJS} X! ${CC} ${LDFLAGS} -o getty ${OBJS} X X install: all X! install -c -s -m 555 -o root -g staff getty /usr/libexec/getty X X clean: X rm -f getty ${OBJS} a.out core errs X*** ./usr/src/libexec/popper/Makefile.old Thu Mar 13 12:51:22 2025 X--- ./usr/src/libexec/popper/Makefile Fri Dec 26 00:15:26 2025 X*************** X*** 1,6 **** X! #@(#)@(#)Makefile 2.6.1 1996/11/27 X X- DESTDIR = X CSRCS = pop_dele.c pop_dropcopy.c pop_dropinfo.c \ X pop_get_command.c pop_get_subcommand.c pop_init.c \ X pop_last.c pop_list.c pop_log.c pop_lower.c \ X--- 1,5 ---- X! # @(#)Makefile 2.6.2 (2.11BSD) 2025/11/25 X X CSRCS = pop_dele.c pop_dropcopy.c pop_dropinfo.c \ X pop_get_command.c pop_get_subcommand.c pop_init.c \ X pop_last.c pop_list.c pop_log.c pop_lower.c \ X*************** X*** 35,44 **** X CFLAGS = -O -DBIND43 X TARGET = popper X TAR = ${TARGET}.tar X! INSTALLDIR = ${DESTDIR}/usr/libexec X MANPAGE = popper.8 X CATPAGE = popper.0 X! MANDIR = ${DESTDIR}/usr/man/cat8 X X all: ${TARGET} ${CATPAGE} X X--- 34,43 ---- X CFLAGS = -O -DBIND43 X TARGET = popper X TAR = ${TARGET}.tar X! INSTALLDIR = /usr/libexec X MANPAGE = popper.8 X CATPAGE = popper.0 X! MANDIR = /usr/man/cat8 X X all: ${TARGET} ${CATPAGE} X X*************** X*** 62,68 **** X X install: ${TARGET} ${CATPAGE} X install -c -m 700 -o root -g staff ${TARGET} ${INSTALLDIR} X! install -c -o bin -g bin -m 444 ${CATPAGE} ${MANDIR} X X ${CATPAGE}: ${MANPAGE} X nroff -h -man ${MANPAGE} > ${CATPAGE} X--- 61,67 ---- X X install: ${TARGET} ${CATPAGE} X install -c -m 700 -o root -g staff ${TARGET} ${INSTALLDIR} X! install -c -o root -g staff -m 444 ${CATPAGE} ${MANDIR} X X ${CATPAGE}: ${MANPAGE} X nroff -h -man ${MANPAGE} > ${CATPAGE} X*** ./usr/src/libexec/popper/pop_msg.c.old Wed Apr 3 17:25:34 1991 X--- ./usr/src/libexec/popper/pop_msg.c Fri Dec 26 21:17:35 2025 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_msg.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X #include X- #include X #include "popper.h" X X /* X--- 4,17 ---- 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_msg.c 2.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X #include X #include X #include "popper.h" X X /* X*************** X*** 19,39 **** X * msg: Send a formatted line to the POP client X */ X X! pop_msg(va_alist) X! va_dcl X { X! POP * p; X! int stat; /* POP status indicator */ X! char * format; /* Format string for the message */ X va_list ap; X register char * mp; X char message[MAXLINELEN]; X X! va_start(ap); X! p = va_arg(ap, POP *); X! stat = va_arg(ap, int); X! format = va_arg(ap, char *); X! va_end(ap); X X /* Point to the message buffer */ X mp = message; X--- 18,31 ---- X * msg: Send a formatted line to the POP client X */ X X! pop_msg(POP *p, int stat, char *format) X { X! X va_list ap; X register char * mp; X char message[MAXLINELEN]; X X! va_start(ap, format); X X /* Point to the message buffer */ X mp = message; X*************** X*** 49,60 **** X X /* Append the message (formatted, if necessary) */ X if (format) X- #ifdef HAVE_VSPRINTF X vsprintf(mp,format,ap); X! #else X! (void)sprintf(mp,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], X! ((int *)ap)[3],((int *)ap)[4]); X! #endif HAVE_VSPRINTF X X /* Log the message if debugging is turned on */ X #ifdef DEBUG X--- 41,48 ---- X X /* Append the message (formatted, if necessary) */ X if (format) X vsprintf(mp,format,ap); X! va_end(ap); X X /* Log the message if debugging is turned on */ X #ifdef DEBUG X*** ./usr/src/libexec/popper/pop_log.c.old Wed Apr 3 17:25:33 1991 X--- ./usr/src/libexec/popper/pop_log.c Fri Dec 26 21:17:29 2025 X*************** X*** 4,17 **** 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_log.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X- #include X #include "popper.h" X X /* X--- 4,16 ---- 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_log.c 2.2 (2.11BSD) 2025/12/26"; X! #endif X X #include X #include X #include "popper.h" X X /* X*************** X*** 20,45 **** X X static char msgbuf[MAXLINELEN]; X X! pop_log(va_alist) X! va_dcl X { X! va_list ap; X! POP * p; X! int stat; X! char * format; X X! va_start(ap); X! p = va_arg(ap,POP *); X! stat = va_arg(ap,int); X! format = va_arg(ap,char *); X! va_end(ap); X X- #ifdef HAVE_VSPRINTF X vsprintf(msgbuf,format,ap); X- #else X- (void)sprintf (msgbuf,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], X- ((int *)ap)[3],((int *)ap)[4],((int *)ap)[5]); X- #endif HAVE_VSPRINTF X X if (p->debug && p->trace) { X (void)fprintf(p->trace,"%s\n",msgbuf); X--- 19,33 ---- X X static char msgbuf[MAXLINELEN]; X X! pop_log(POP *p, int stat, char *format, ...) X { X! va_list ap; X X! va_start(ap, format); X! vsprintf(msgbuf, format, ap); X! va_end(ap); X X vsprintf(msgbuf,format,ap); X X if (p->debug && p->trace) { X (void)fprintf(p->trace,"%s\n",msgbuf); X*** ./usr/src/libexec/identd/Makefile.old Thu Mar 13 12:51:22 2025 X--- ./usr/src/libexec/identd/Makefile Fri Dec 26 00:04:55 2025 X*************** X*** 6,25 **** X # X # Update: 26 September 2024 - add idecrypt.0 to install target X # X! # Last update: 13 December 1996 - 2.11BSD specific version created. X # X # Please send bug fixes/bug reports to: Peter Eriksson X X! # Modify it below to suit your particular system, or specify it X! # on the command line (like "make DESTROOT=/usr/wheel sunos4") X! # X! DESTDIR= X X- BINDIR=$(DESTDIR)/usr/sbin X- EXECDIR=$(DESTDIR)/usr/libexec X- CONFDIR=$(DESTDIR)/etc X- MANDIR=$(DESTDIR)/usr/man/cat8 X- X # Global compile-time and link-time options X # X # Please note the the INCLUDE_CRYPT option needs a DES library. You can X--- 6,20 ---- X # X # Update: 26 September 2024 - add idecrypt.0 to install target X # X! # Last update: 13 December 1996 - 1.0 (2.11BSD) X # X # Please send bug fixes/bug reports to: Peter Eriksson X X! BINDIR=/usr/sbin X! EXECDIR=/usr/libexec X! CONFDIR=/etc X! MANDIR=/usr/man/cat8 X X # Global compile-time and link-time options X # X # Please note the the INCLUDE_CRYPT option needs a DES library. You can X*************** X*** 48,54 **** X X X identd.8: identd.man X! sed -e 's,xDESTDIRx,$(EXECDIR),g' -e 's,xCONFDIRx,$(CONFDIR),g' $? > $@ X X identd.0: identd.8 X /usr/man/manroff identd.8 > identd.0 X--- 43,49 ---- X X X identd.8: identd.man X! sed -e 's,xCONFDIRx,$(CONFDIR),g' $? > $@ X X identd.0: identd.8 X /usr/man/manroff identd.8 > identd.0 X*************** X*** 57,71 **** X /usr/man/manroff idecrypt.man > idecrypt.0 X X identconn: identconn.sh X! sed -e 's,xDESTROOTx,$(DESTROOT),g' $? > $@ X X install: identd identd.0 idecrypt.0 identconn itest idecrypt X! install -c -o bin -g bin -m 444 identd.0 $(MANDIR)/identd.0 X! install -m 755 identd $(EXECDIR)/identd X! install -m 755 identconn $(BINDIR)/identconn X! install -c -o bin -g bin -m 444 idecrypt.0 $(MANDIR)/idecrypt.0 X! install -m 755 idecrypt $(BINDIR)/idecrypt X! install -o root -g kmem -m 2555 itest ${BINDIR}/itest X X tests: X (cd testdir ; make) X--- 52,66 ---- X /usr/man/manroff idecrypt.man > idecrypt.0 X X identconn: identconn.sh X! cat $? > $@ X X install: identd identd.0 idecrypt.0 identconn itest idecrypt X! install -c -o root -g staff -m 444 identd.0 $(MANDIR)/identd.0 X! install -c -m 755 identd $(EXECDIR)/identd X! install -c -m 755 identconn $(BINDIR)/identconn X! install -c -o root -g staff -m 444 idecrypt.0 $(MANDIR)/idecrypt.0 X! install -c -m 755 idecrypt $(BINDIR)/idecrypt X! install -c -o root -g kmem -m 2555 itest ${BINDIR}/itest X X tests: X (cd testdir ; make) X*** ./usr/src/libexec/identd/identd.man.old Sun Aug 11 15:58:37 1996 X--- ./usr/src/libexec/identd/identd.man Fri Dec 26 00:14:52 2025 X*************** X*** 1,12 **** X! .\" @(#)identd.8 1.9 92/02/11 Lysator X .\" Copyright (c) 1992 Peter Eriksson, Lysator, Linkoping University. X .\" This software has been released into the public domain. X .\" X .TH IDENTD 8 "27 May 1992" X .SH NAME X! identd, in.identd \- TCP/IP IDENT protocol server X .SH SYNOPSIS X! .B xDESTDIRx/[in.]identd X .RB [ \-i | \-w | \-b ] X .RB [ \-t ] X .RB [ \-u ] X--- 1,12 ---- X! .\" @(#)identd.8 1.11 (2.11BSD) 2025/11/25 X .\" Copyright (c) 1992 Peter Eriksson, Lysator, Linkoping University. X .\" This software has been released into the public domain. X .\" X .TH IDENTD 8 "27 May 1992" X .SH NAME X! identd \- TCP/IP IDENT protocol server X .SH SYNOPSIS X! .B /usr/libexec/identd X .RB [ \-i | \-w | \-b ] X .RB [ \-t ] X .RB [ \-u ] X*** ./usr/src/libexec/identd/identconn.sh.old Fri Dec 13 23:08:49 1996 X--- ./usr/src/libexec/identd/identconn.sh Fri Dec 26 00:14:34 2025 X*************** X*** 1,6 **** X #! /bin/sh X! : X! PATH=/usr/bin:/usr/sbin:/usr/ucb:xDESTROOTx/bin ; export PATH X X netstat -f inet -n | grep ESTAB | itest X X--- 1,8 ---- X #! /bin/sh X! X! # @(#)identconn.sh 1.1 (2.11BSD) 2025/12/26 X! X! PATH=/usr/bin:/usr/sbin:/usr/ucb ; export PATH X X netstat -f inet -n | grep ESTAB | itest X X*** ./usr/src/libexec/acctd/Makefile.old Sun Jul 25 23:18:28 1999 X--- ./usr/src/libexec/acctd/Makefile Mon Dec 8 20:48:32 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1999/2/19 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 1999/2/19 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= acctd.c X OBJS= acctd.o X MAN= acctd.0 X--- 1,10 ---- X # X # Public Domain. 1999/2/19 - Steven Schultz X # X! # @(#)Makefile 1.3 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= acctd.c X OBJS= acctd.o X MAN= acctd.0 X*************** X*** 13,19 **** X all: acctd acctd.0 X X acctd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X acctd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: acctd acctd.0 X X acctd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X acctd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: acctd X! install -s -o root -g bin -m 700 acctd ${DESTDIR}/usr/libexec/acctd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN} X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: acctd X! install -c -s -o root -g staff -m 700 acctd /usr/libexec/acctd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8/${MAN} X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/libexec/acctd/acctd.c.old Sun Jul 25 23:18:28 1999 X--- ./usr/src/libexec/acctd/acctd.c Fri Dec 26 00:07:59 2025 X*************** X*** 1,7 **** X /* X! * Steven Schultz - sms@moe.2bsd.com X * X! * @(#)acctd.c 1.0 (2.11BSD) 1999/2/10 X * X * acctd - process accounting daemon 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*************** X*** 13,19 **** X #include X #include X #include X- #include X #include X #include X #include X--- 13,18 ---- X*************** X*** 453,466 **** X */ X X void X! die(str, va_alist) X! char *str; X! va_dcl X { X va_list ap; X X openlog("acctd", LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON); X! va_start(ap); X vsyslog(LOG_ERR, str, ap); X va_end(ap); X exit(1); X--- 452,463 ---- X */ X X void X! die(char *str, ...) X { X va_list ap; X X openlog("acctd", LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON); X! va_start(ap, str); X vsyslog(LOG_ERR, str, ap); X va_end(ap); X exit(1); X*************** X*** 467,480 **** X } X X void X! reportit(str, va_alist) X! char *str; X! va_dcl X { X va_list ap; X X openlog("acctd", LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON); X! va_start(ap); X vsyslog(LOG_WARNING, str, ap); X va_end(ap); X } X--- 464,475 ---- X } X X void X! reportit(char *str, ...) X { X va_list ap; X X openlog("acctd", LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON); X! va_start(ap, str); X vsyslog(LOG_WARNING, str, ap); X va_end(ap); X } X*** ./usr/src/libexec/Makefile.old Tue Aug 17 01:00:02 1999 X--- ./usr/src/libexec/Makefile Tue Nov 25 14:30:14 2025 X*************** X*** 1,11 **** X # X # Steven Schultz - put in the public domain 1996/6/25. X # X! # @(#)Makefile 1.6 (2.11BSD) 1999/5/7 X # X- DESTDIR= X CFLAGS= -O X- SEPFLAG= -i X TAGSFILE=tags X X SUBDIR= acctd comsat ctimed fingerd ftpd getNAME getty identd makekey \ X--- 1,9 ---- 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*************** X*** 14,27 **** X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make SEPFLAG=${SEPFLAG} ${MFLAGS} X X FRC: X X install: X -for i in ${SUBDIR}; do \ X! (cd $$i; make SEPFLAG=${SEPFLAG} ${MFLAGS} \ X! DESTDIR=${DESTDIR} install); done X X tags: X cd libc; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags X--- 12,25 ---- X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X install: X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} \ X! install); done X X tags: X cd libc; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags X*** ./usr/src/local/zmodem/Makefile.old Sun Jan 28 19:29:29 1996 X--- ./usr/src/local/zmodem/Makefile Mon Dec 8 15:33:53 2025 X*************** X*** 1,12 **** X # Driver makefile for zmodem. Calls makefile.generic. X X- DESTDIR= X CC=cc X CFLAGS=-O -DV7 -DMD=2 -DTXBSIZE=8192 -DNFGVMIN X! SEPFLAG=-i X ROFF = /usr/man/manroff X! DESTBIN = $(DESTDIR)/usr/local X! DESTMAN = $(DESTDIR)/usr/local/man/cat1 X X INSTALL = /usr/bin/install X X--- 1,12 ---- 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*************** X*** 15,25 **** X all: $(OBJ) rz.0 sz.0 X X sz: sz.o X! $(CC) ${SEPFLAG} sz.o -o sz X size sz X X rz: rz.o X! $(CC) ${SEPFLAG} rz.o -o rz X size rz X X rz.0: rz.1 X--- 15,25 ---- 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*************** X*** 32,38 **** 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 bin -g bin sz.0 ${DESTMAN} X rm -f $(DESTBIN)/sb $(DESTBIN)/sx X ln $(DESTBIN)/sz $(DESTBIN)/sb X ln $(DESTBIN)/sz $(DESTBIN)/sx X--- 32,38 ---- 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 ln $(DESTBIN)/sz $(DESTBIN)/sx X*** ./usr/src/local/zmodem/sz.c.old Sun Jun 14 02:17:32 1992 X--- ./usr/src/local/zmodem/sz.c Sat Dec 27 09:28:40 2025 X*************** X*** 1,12 **** X! #define VERSION "sz 3.07 2-02-90" X #define PUBDIR "/usr/spool/uucppublic" X X! /*% cc -compat -M2 -Ox -K -i -DTXBSIZE=16384 -DNFGVMIN -DREADCHECK sz.c -lx -o sz; size sz X! X! /*% cc -Zi -DXX -DNFGVMIN -DREADCHECK sz.c -lx -o xsz; size xsz X! <-xtx-*> cc -Osal -DTXBSIZE=32768 -DSV sz.c -lx -o $B/sz; size $B/sz X! X! **************************************************************************** X * X * sz.c By Chuck Forsberg, Omen Technology INC X * X--- 1,7 ---- X! #define VERSION "sz 3.08 (2.11BSD) 2025/12/27" X #define PUBDIR "/usr/spool/uucppublic" X X! /**************************************************************************** X * X * sz.c By Chuck Forsberg, Omen Technology INC X * X*************** X*** 1184,1191 **** X #endif X X X- /* VARARGS1 */ X vfile(f, a, b, c, d) X long a, b, c, d; X { X if (Verbose > 2) { X--- 1179,1186 ---- X #endif X X X vfile(f, a, b, c, d) X+ char *f; X long a, b, c, d; X { X if (Verbose > 2) { X*** ./usr/src/local/zmodem/rz.c.old Sun Jun 14 02:15:48 1992 X--- ./usr/src/local/zmodem/rz.c Sat Dec 27 09:30:35 2025 X*************** X*** 1,9 **** X! #define VERSION "3.02 6-04-89" X #define PUBDIR "/usr/spool/uucppublic" X X! /*% cc -compat -M2 -Ox -K -i -DMD % -o rz; size rz; X! <-xtx-*> cc386 -Ox -DMD rz.c -o $B/rz; size $B/rz X! * X * rz.c By Chuck Forsberg X * X * cc -O rz.c -o rz USG (3.0) Unix X--- 1,7 ---- X! #define VERSION "3.03 (2.11BSD) 2025/12/27" X #define PUBDIR "/usr/spool/uucppublic" X X! /* X * rz.c By Chuck Forsberg X * X * cc -O rz.c -o rz USG (3.0) Unix X*************** X*** 93,120 **** X * USG UNIX (3.0) ioctl conventions courtesy Jeff Martin X */ X X- #ifdef vax11c X- #include X- #include X- #define LOGFILE "rzlog.tmp" X- #include X- #include X- #include X- #include X- #include X- #define OS "VMS" X- #define BUFREAD X- extern int errno; X- #define SS_NORMAL SS$_NORMAL X- X- #ifndef PROGNAME X- #define PROGNAME "rz" X- #endif X- X- X- #else X- X- X #define SS_NORMAL 0 X #define LOGFILE "/tmp/rzlog" X #include X--- 91,96 ---- X*************** X*** 122,130 **** X #include X #include X #include X- extern int errno; X- FILE *popen(); X- #endif X X #define OK 0 X #define FALSE 0 X--- 98,103 ---- X*************** X*** 400,405 **** X--- 373,379 ---- X */ X /* VARARGS1 */ X vfile(f, a, b, c, d) X+ char *f; X long a, b, c, d; X { X if (Verbose > 2) { X*** ./usr/src/local/afio/Makefile.old Fri Jan 22 23:41:44 1993 X--- ./usr/src/local/afio/Makefile Mon Dec 8 21:03:08 2025 X*************** X*** 1,4 **** X! ## X ## I wrote this Makefile, based on comments in the source. -rich $alz. X ## Define INDEX to use index() in place of strchr() (v7, BSD). X 1 = -DINDEX X--- 1,5 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! X ## I wrote this Makefile, based on comments in the source. -rich $alz. X ## Define INDEX to use index() in place of strchr() (v7, BSD). X 1 = -DINDEX X*************** X*** 30,37 **** X $(CC) -i $(CFLAGS) -o afio afio.o X X install: all X! install -s -c -m 0751 afio ${DESTDIR}/usr/local/afio X! install -c -m 444 -o bin -g bin afio.0 ${DESTDIR}/usr/local/man/cat1 X X afio.0: afio.1 X rm -f afio.0 X--- 31,38 ---- X $(CC) -i $(CFLAGS) -o afio afio.o X X install: all X! install -c -s -m 0751 afio /usr/local/afio X! install -c -m 444 -o root -g staff afio.0 /usr/local/man/cat1 X X afio.0: afio.1 X rm -f afio.0 X*** ./usr/src/local/mkovmake/Makefile.old Sun Jan 28 18:51:56 1996 X--- ./usr/src/local/mkovmake/Makefile Mon Dec 8 21:04:11 2025 X*************** X*** 1,8 **** X! # X! # Revised 1996/1/28 X! # X CFLAGS= -O X! SEPFLAG= -i X SRCS= mkovmake.c X OBJS= mkovmake.o X MANSRC= mkovmake.1 X--- 1,6 ---- X! # Makefile 2.1 (2.11BSD) 2025/11/25 X CFLAGS= -O X! LDFLAGS= -i X SRCS= mkovmake.c X OBJS= mkovmake.o X MANSRC= mkovmake.1 X*************** X*** 11,24 **** X all: mkovmake ${MAN} X X mkovmake: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS} X X clean: X rm -f ${OBJS} core mkovmake ${MAN} X X install: all ${MAN} X! install -s -o bin -g bin -m 755 mkovmake ${DESTDIR}/usr/local X! install -c -m 444 -o bin -g bin ${MAN} ${DESTDIR}/usr/local/man/cat1 X X ${MAN}: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 9,22 ---- X all: mkovmake ${MAN} X X mkovmake: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${CFLAGS} ${OBJS} X X clean: X rm -f ${OBJS} core mkovmake ${MAN} X X install: all ${MAN} X! install -c -s -o root -g staff -m 755 mkovmake /usr/local X! install -c -m 444 -o root -g staff ${MAN} /usr/local/man/cat1 X X ${MAN}: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*** ./usr/src/local/ddd/Makefile.old Mon Jan 25 23:56:08 1993 X--- ./usr/src/local/ddd/Makefile Mon Dec 8 21:04:02 2025 X*************** X*** 1,4 **** X! # Makefile for ddd X X DEFS = -DBSD X CFLAGS = -O $(DEFS) X--- 1,4 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X DEFS = -DBSD X CFLAGS = -O $(DEFS) X*************** X*** 5,11 **** X X CC = cc X LINT = lint X- CP = install -s -m 755 X RM = rm -f X X SRC = ddd.c X--- 5,10 ---- X*************** X*** 30,37 **** X touch lint X X install: all X! $(CP) $(BIN) ${DESTDIR}$(BINDIR) X! install -m 444 -o bin -g bin $(MAN) ${DESTDIR}$(MANDIR) X X $(MAN): $(MANSRC) X /usr/man/manroff $(MANSRC) > $(MAN) X--- 29,36 ---- X touch lint X X install: all X! install -c -s -m 755 $(BIN) $(BINDIR) X! install -c -m 444 -o root -g staff $(MAN) $(MANDIR) X X $(MAN): $(MANSRC) X /usr/man/manroff $(MANSRC) > $(MAN) X*** ./usr/src/local/ddd/ddd.c.old Wed Sep 26 19:38:58 1990 X--- ./usr/src/local/ddd/ddd.c Fri Dec 26 00:34:33 2025 X*************** X*** 1,5 **** X /* X! * ddd.c - double dd (version 2) X * X * Copyright 1988 Helsinki University of Technology. X * All rights reserved. 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*************** X*** 34,40 **** X #ifdef BSD X #include /* for union wait */ X #include /* for O_RDONLY and O_WRONLY */ X- extern char *sprintf(); X #endif X X #ifdef SYSV X--- 34,39 ---- X*** ./usr/src/local/mtools/Makefile.old Fri Jan 22 23:43:03 1993 X--- ./usr/src/local/mtools/Makefile Mon Dec 8 21:04:21 2025 X*************** X*** 1,6 **** X! # X! # Makefile for Mtools 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--- 1,5 ---- 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*************** X*** 129,136 **** X nroff -man Mwrite.1 > mwrite.0 X X install: $(PROGS) $(MANPAGES) X! install -s -m 755 -o bin $(PROGS) ${DESTDIR}$(BINDIR) X! install -c -m 444 -o bin -g bin *.0 ${DESTDIR}$(MANDIR) X X clean: X rm -f $(PROGS) *.0 *.o X--- 128,135 ---- X nroff -man Mwrite.1 > mwrite.0 X X install: $(PROGS) $(MANPAGES) X! install -c -s -m 755 -o root $(PROGS) $(BINDIR) X! install -c -m 444 -o root -g staff *.0 $(MANDIR) X X clean: X rm -f $(PROGS) *.0 *.o X*** ./usr/src/local/welcome/Makefile.old Sun Jan 28 21:52:22 1996 X--- ./usr/src/local/welcome/Makefile Mon Dec 8 21:04:26 2025 X*************** X*** 1,10 **** X! # X! # Makefile for welcome. Revised 1996/1/28 X! # X! DESTDIR= X BINDIR= /usr/local X CFLAGS= -O X! SEPFLAG= -i X PROGRAM= welcome X SRCS= welcome.c X OBJS= welcome.o X--- 1,8 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! X BINDIR= /usr/local X CFLAGS= -O X! LDFLAGS= -i X PROGRAM= welcome X SRCS= welcome.c X OBJS= welcome.o X*************** X*** 14,24 **** X all: ${PROGRAM} ${MAN} X X ${PROGRAM}: ${OBJS} X! ${CC} ${SEPFLAG} ${CFLAGS} -o $@ ${OBJS} ${LIBS} X X install: ${PROGRAM} welcome.0 X! install -s -m 755 ${PROGRAM} ${DESTDIR}/${BINDIR} X! install -c -m 444 -o bin -g bin welcome.0 ${DESTDIR}/usr/local/man/cat1 X X welcome.0: welcome.1 X /usr/man/manroff welcome.1 > welcome.0 X--- 12,22 ---- X all: ${PROGRAM} ${MAN} X X ${PROGRAM}: ${OBJS} X! ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJS} ${LIBS} X X install: ${PROGRAM} welcome.0 X! install -c -s -m 755 ${PROGRAM} ${BINDIR} X! install -c -m 444 -o root -g staff welcome.0 /usr/local/man/cat1 X X welcome.0: welcome.1 X /usr/man/manroff welcome.1 > welcome.0 X*** ./usr/src/local/less/funcs.h.old Mon Jul 9 20:11:35 1990 X--- ./usr/src/local/less/funcs.h Fri Dec 26 21:17:16 2025 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(LIBC_SCCS) && !defined(lint) X+ static char sccsid[] = "@(#)funcs.h 1.1 (2.11BSD) 2025/12/26"; X+ #endif /* LIBC_SCCS and not lint */ X+ X public void edit (); X public void next_file (); X public void prev_file (); X*************** X*** 39,44 **** X--- 43,50 ---- X public int carat_char (); X public void flush (); X public void dropout (); X+ #define putc lessputc X+ #define puts lessputs X public void putc (); X public void puts (); X public void error (); X*** ./usr/src/local/less/signal.c.old Wed Sep 10 00:24:17 1997 X--- ./usr/src/local/less/signal.c Fri Dec 26 00:40:18 2025 X*************** X*** 11,16 **** X--- 11,20 ---- X * the handler if we are reading from the keyboard. 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 #include X #include X*************** X*** 210,215 **** X--- 214,223 ---- X */ X #if GLOB X X+ #undef NULL X+ #undef EOF X+ #undef putc X+ #undef puts X #include X X char * X*** ./usr/src/local/qterm/options.c.old Sat Mar 23 02:39:26 1996 X--- ./usr/src/local/qterm/options.c Wed Dec 24 13:20:00 2025 X*************** X*** 4,11 **** X * profit and the author is credited appropriately. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char *RCSid = "$Header: options.c,v 1.13.1 96/3/23 18:13:28 sms Exp $"; X #endif X X /* X--- 4,11 ---- X * profit and the author is credited appropriately. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)options.c 1.13.2 (2.11BSD) 2025/12/24"; X #endif X X /* X*************** X*** 64,72 **** X */ X X #include "options.h" X- #ifdef HAS_VARARGS X- #include X- #endif X X char *OptionChars = "-+"; /* Default option switching characters */ X char *ProgramName = NULL; /* Name of this program */ X--- 64,69 ---- X*************** X*** 328,358 **** X /* X * UserError - Print a user error. X */ X! #ifdef HAS_VARARGS X! void UserError(va_alist) X! va_dcl X { X! va_list args; X! char *fmt; X X! va_start(args); X if (ProgramName) X (void) fprintf(stderr, "%s: ", ProgramName); X! fmt = (char *) va_arg(args, char *); X! (void) vfprintf(stderr, fmt, args); X! va_end(args); X (void) fprintf(stderr, "\n"); X } X- #else X- void UserError(fmt, a1, a2, a3, a4, a5, a6) X- char *fmt; X- { X- if (ProgramName) X- (void) fprintf(stderr, "%s: ", ProgramName); X- (void) fprintf(stderr, fmt, a1, a2, a3, a4, a5, a6); X- (void) fprintf(stderr, "\n"); X- } X- #endif X X OptBool(opt, value, docopy) X OptionDescRec *opt; X--- 325,341 ---- X /* X * UserError - Print a user error. X */ X! void UserError(char *fmt, ...) X { X! va_list ap; X X! va_start(ap, fmt); X if (ProgramName) X (void) fprintf(stderr, "%s: ", ProgramName); X! vfprintf(stderr, fmt, ap); X! va_end(ap); X (void) fprintf(stderr, "\n"); X } X X OptBool(opt, value, docopy) X OptionDescRec *opt; X*** ./usr/src/local/qterm/Makefile.old Tue Nov 21 22:19:02 1995 X--- ./usr/src/local/qterm/Makefile Fri Dec 26 00:41:11 2025 X*************** X*** 1,12 **** X- # X # Copyright (c) 1990 Michael A. Cooper. X # This software may be freely distributed provided it is not sold for X # profit and the author is credited appropriately. X # X! # $Header: /src/common/usc/bin/qterm/RCS/Makefile,v 5.1 1991/02/20 02:31:50 mcooper Exp $ X! # X! # Makefile for QTerm X! # X X # X # DIR is the main/top-level directory. X--- 1,10 ---- X # Copyright (c) 1990 Michael A. Cooper. X # This software may be freely distributed provided it is not sold for X # profit and the author is credited appropriately. X # X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)Makefile 5.2 (2.11BSD) 2025/12/24"; X! #endif X X # X # DIR is the main/top-level directory. X*************** X*** 30,47 **** X # X TABFILE = $(DIR)/lib/qtermtab X X! # X! # Add "-DUSG5" to DEFS below, if your system is Unix System V. X! # Add "-DHAS_VARARGS" if your system supports varargs. X! # Add "-DOPT_COMPAT" if you want compatibility with old command line options. X! # X! DEFS = -DTABFILE=\"$(TABFILE)\" -DOPT_COMPAT -DHAS_VARARGS X X- # X- # On some System V systems you will need to add "-lPW" to LIBS. X- # X LIBS = -lc X- X X CONFIGFILES = Makefile qterm.1 options.3 X CFILES = qterm.c options.c X--- 28,36 ---- X # X TABFILE = $(DIR)/lib/qtermtab X X! DEFS = -DTABFILE=\"$(TABFILE)\" -DOPT_COMPAT X X LIBS = -lc X X CONFIGFILES = Makefile qterm.1 options.3 X CFILES = qterm.c options.c X*** ./usr/src/local/qterm/qterm.c.old Tue Nov 21 22:08:20 1995 X--- ./usr/src/local/qterm/qterm.c Wed Dec 24 13:26:12 2025 X*************** X*** 1,5 **** X! #ifndef lint X! static char *RCSid = "$Header: /src/common/usc/bin/qterm/RCS/qterm.c,v 5.4 1991/03/21 02:09:40 mcooper Exp $"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)qterm.c 5.5 (2.11BSD) 2025/12/24"; X #endif X X /* X*************** X*** 202,228 **** X X #include X #include X #include X #include X #include X #include X- #ifdef USG5 X- # include X- #else /*USG5*/ X # include X # include X- #endif /*USG5*/ X #include "qterm.h" X #include "options.h" X- #ifdef HAS_VARARGS X- #include X- #endif /*HAS_VARARGS*/ X X- #ifdef USG5 X- struct termio _ntty, _otty; X- #else X struct sgttyb _tty; X- #endif X int _tty_ch = 2; X char recvbuf[SIZE]; X char *progname; X--- 202,218 ---- X X #include X #include X+ #include X #include X #include X #include X #include X # include X # include X #include "qterm.h" X #include "options.h" X X struct sgttyb _tty; X int _tty_ch = 2; X char recvbuf[SIZE]; X char *progname; X*************** X*** 324,337 **** X (char *)NULL, "Enable debug mode"}, X }; X X- FILE *fopen(); X char *decode(); X- char *getenv(); X- char *malloc(); X char *re_comp(); X- char *strcat(); X char *xmalloc(); X- int alarm(); X int found = FALSE; X int modes_set = FALSE; X jmp_buf env; X--- 314,322 ---- X*************** X*** 340,354 **** X void catch(); X void done(); X void dprintf(); X- void exit(); X void myperror(); X void mktable(); X void notrecognized(); X void proctab(); X void wakeup(); X- #ifdef USG5 X- char *regcmp(); X- #endif /* USG5 */ X X main(argc, argv) X int argc; X--- 325,335 ---- X*************** X*** 448,466 **** X /* X * Set terminal modes X */ X- #ifdef USG5 X- if (ioctl(_tty_ch, TCGETA, &_otty) < 0) X- #else X if (ioctl(_tty_ch, TIOCGETP, &_tty) < 0) X- #endif /* USG5 */ X { X myperror("gtty"); X done(1); X /*NOTREACHED*/ X } X- #ifdef USG5 X- _ntty = _otty; X- #endif /* USG5 */ X X if (crmode() < 0) { X myperror("crmode"); X--- 429,440 ---- X*************** X*** 546,554 **** X struct termtable *compare(str) X char *str; X { X- #ifdef USG5 X- register char *reexp; X- #endif /* USG5 */ X register struct termtable *t; X char buf[BUFSIZ]; X X--- 520,525 ---- X*************** X*** 562,572 **** X dprintf(" with %s ", decode(t->qt_recvstr)); X (void) sprintf(buf, "^%s$", t->qt_recvstr); X X- #ifdef USG5 X- if ((reexp = regcmp(buf, NULL)) == NULL) { X- #else X if (re_comp((char *)buf) != NULL) { X- #endif /* USG5 */ X (void) fprintf(stderr, "%s: bad regular expression: \"%s\"\n", X progname, t->qt_recvstr); X done(1); X--- 533,539 ---- X*************** X*** 573,583 **** X /*NOTREACHED*/ X } X X- #ifdef USG5 X- if (regex(reexp, str) != NULL) { X- #else X if (re_exec(str) == 1) { X- #endif /* USG5 */ X found = TRUE; X dprintf("\tOK\n"); X return(t); X--- 540,546 ---- X*************** X*** 584,592 **** X } X X dprintf("\tNOPE\n"); X- #ifdef USG5 X- (void) free(reexp); X- #endif /* USG5 */ X } X found = FALSE; X X--- 547,552 ---- X*************** X*** 999,1033 **** X return(p); X } X X! #ifdef HAS_VARARGS X! void dprintf(va_alist) X! va_dcl X { X! va_list args; X! char *fmt; X X if (!debug) X return; X X! va_start(args); X! fmt = (char *) va_arg(args, char *); X! (void) vprintf(fmt, args); X! va_end(args()); X (void) fflush(stdout); X } X- X- #else /*HAS_VARARGS*/ X- X- void dprintf(fmt, a1, a2, a3, a4, a5, a6) X- char *fmt; X- { X- if (!debug) X- return; X- X- (void) printf(fmt, a1, a2, a3, a4, a5, a6); X- (void) fflush(stdout); X- } X- #endif /*HAS_VARARGS*/ X X /* X * Catch kill signals and cleanup. X--- 959,976 ---- X return(p); X } X X! void dprintf(char *fmt, ...) X { X! va_list ap; X X if (!debug) X return; X X! va_start(fmt, ap); X! (void) vprintf(fmt, ap); X! va_end(ap); X (void) fflush(stdout); X } X X /* X * Catch kill signals and cleanup. X*** ./usr/src/local/qterm/options.h.old Sat Mar 23 02:37:22 1996 X--- ./usr/src/local/qterm/options.h Fri Dec 26 00:43:13 2025 X*************** X*** 4,37 **** X * profit and the author is credited appropriately. X */ X X! /* X! * $Header: RCS/options.h,v 1.7.1 96/3/23 18:13:30 sms Exp $ X! * X! * $Log: options.h,v $ X! * Revision 1.7 90/12/15 18:13:30 mcooper X! * Add copywrite notice. X! * X! * Revision 1.6 90/11/13 15:28:39 mcooper X! * Add OptBool cvtarg routine. X! * X! * Revision 1.5 90/10/29 19:34:03 mcooper X! * Fixed comment for NoArg. X! * X! * Revision 1.4 90/10/29 18:48:43 mcooper X! * Cleanup some comments. X! * X! * Revision 1.3 90/10/29 14:47:29 mcooper X! * UsageString is now a real function. X! * X! * Revision 1.2 90/10/26 15:55:44 mcooper X! * Add defines for "__" and ArgHidden. X! * X! * Revision 1.1 90/10/26 14:42:53 mcooper X! * Initial revision X! * X! */ X X- X #include X #include X #include X--- 4,13 ---- X * profit and the author is credited appropriately. X */ X X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)od.c 1.8 (2.11BSD) 2025/12/25"; X! #endif X X #include X #include X #include X*************** X*** 90,96 **** X X extern char *OptionChars; X extern int errno; X- extern char *sys_errlist[]; X- extern long strtol(); X- extern char *malloc(); X- extern char *strcpy(); X--- 66,68 ---- X*** ./usr/src/local/mp/Makefile.old Mon Sep 22 22:36:53 1997 X--- ./usr/src/local/mp/Makefile Fri Dec 26 00:40:57 2025 X*************** X*** 1,7 **** X- # X # Makefile for mp, the PostScript pretty printer. X # X! # @(#)Makefile.dist 1.11 92/02/17 X # X # Copyright (c) Steve Holden and Rich Burridge. X # All rights reserved. X--- 1,6 ---- X # Makefile for mp, the PostScript pretty printer. X # X! # @(#)Makefile 1.12 (2.11BSD) 2025/11/26 X # X # Copyright (c) Steve Holden and Rich Burridge. X # All rights reserved. X*************** X*** 84,93 **** X MPAGES = mp.man mp.man.text mailp.man mailp.man.text X PROLOGS = mp.common.ps mp.pro.ps mp.pro.l.ps mp.pro.alt.ps mp.pro.altl.ps \ X mp.pro.ff.ps mp.pro.fp.ps mp.pro.tm.ps mp.pro.ts.ps X! OTHERS = README Makefile.dist mailp MANIFEST FILES CHANGES TODO \ X! mp.el Data X X! SFILES1 = README Makefile.dist MANIFEST FILES Data X SFILES2 = $(SRCS) $(HDRS) X SFILES3 = $(PROLOGS) X SFILES4 = TODO mailp mp.el $(MPAGES) X--- 83,91 ---- X MPAGES = mp.man mp.man.text mailp.man mailp.man.text X PROLOGS = mp.common.ps mp.pro.ps mp.pro.l.ps mp.pro.alt.ps mp.pro.altl.ps \ X mp.pro.ff.ps mp.pro.fp.ps mp.pro.tm.ps mp.pro.ts.ps X! OTHERS = README Makefile mailp FILES CHANGES TODO mp.el Data X X! SFILES1 = README Makefile FILES Data X SFILES2 = $(SRCS) $(HDRS) X SFILES3 = $(PROLOGS) X SFILES4 = TODO mailp mp.el $(MPAGES) X*************** X*** 126,156 **** X common-install: $(BINARIES) X -mkdir -p ${MPLIBDIR} X # mp X! install -m 751 -o bin -g bin -s mp $(MPBINDIR) X # mp.1 X nroff -h -man mp.1 > mp.0 X! install -m 644 -o bin -g bin mp.0 $(MPMANDIR) X # mailp.1 X nroff -h -man mailp.1 > mailp.0 X! install -m 644 -o bin -g bin mailp.0 $(MPMANDIR) X # mp.common.ps X! install -c -m 644 -o bin -g bin mp.common.ps $(MPLIBDIR) X # mp.pro.ps X! install -c -m 644 -o bin -g bin mp.pro.ps $(MPLIBDIR) X # mp.pro.l.ps X! install -c -m 644 -o bin -g bin mp.pro.l.ps $(MPLIBDIR) X # mp.pro.alt.ps X! install -c -m 644 -o bin -g bin mp.pro.alt.ps $(MPLIBDIR) X # mp.pro.altl.ps X! install -c -m 644 -o bin -g bin mp.pro.altl.ps $(MPLIBDIR) X # mp.pro.ff.ps X! install -c -m 644 -o bin -g bin mp.pro.ff.ps $(MPLIBDIR) X # mp.pro.fp.ps X! install -c -m 644 -o bin -g bin mp.pro.fp.ps $(MPLIBDIR) X # mp.pro.tm.ps X! install -c -m 644 -o bin -g bin mp.pro.tm.ps $(MPLIBDIR) X # mp.pro.ts.ps X! install -c -m 644 -o bin -g bin mp.pro.ts.ps $(MPLIBDIR) X # mailp X # X -sed -e s,BINDIR,$(MPBINDIR),g mailp >$(MPBINDIR)/mailp X--- 124,154 ---- X common-install: $(BINARIES) X -mkdir -p ${MPLIBDIR} X # mp X! install -m 751 -o root -g staff -s mp $(MPBINDIR) X # mp.1 X nroff -h -man mp.1 > mp.0 X! install -m 644 -o root -g staff mp.0 $(MPMANDIR) X # mailp.1 X nroff -h -man mailp.1 > mailp.0 X! install -m 644 -o root -g staff mailp.0 $(MPMANDIR) X # mp.common.ps X! install -c -m 644 -o root -g staff mp.common.ps $(MPLIBDIR) X # mp.pro.ps X! install -c -m 644 -o root -g staff mp.pro.ps $(MPLIBDIR) X # mp.pro.l.ps X! install -c -m 644 -o root -g staff mp.pro.l.ps $(MPLIBDIR) X # mp.pro.alt.ps X! install -c -m 644 -o root -g staff mp.pro.alt.ps $(MPLIBDIR) X # mp.pro.altl.ps X! install -c -m 644 -o root -g staff mp.pro.altl.ps $(MPLIBDIR) X # mp.pro.ff.ps X! install -c -m 644 -o root -g staff mp.pro.ff.ps $(MPLIBDIR) X # mp.pro.fp.ps X! install -c -m 644 -o root -g staff mp.pro.fp.ps $(MPLIBDIR) X # mp.pro.tm.ps X! install -c -m 644 -o root -g staff mp.pro.tm.ps $(MPLIBDIR) X # mp.pro.ts.ps X! install -c -m 644 -o root -g staff mp.pro.ts.ps $(MPLIBDIR) X # mailp X # X -sed -e s,BINDIR,$(MPBINDIR),g mailp >$(MPBINDIR)/mailp X*** ./usr/src/local/Makefile.old Sun Feb 23 19:33:35 2025 X--- ./usr/src/local/Makefile Mon Dec 8 15:33:52 2025 X*************** X*** 1,9 **** X # X! # #(@)Makefile 2.0 (2.11BSD) 2025/2/23 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -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--- 1,8 ---- 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*** 16,32 **** X STD= decompr16 trace X X # Manpage directory X! MANDIR= ${DESTDIR}/usr/local/man X X all: ${SUBDIR} ${STD} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X ${STD}: X! cc ${CFLAGS} ${SEPFLAG} -o $@ $@.c X X install: ${STD} X -mkdir ${MANDIR} X--- 15,31 ---- 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*************** X*** 34,42 **** 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} DESTDIR=${DESTDIR} install); done X! -install -s -o bin -g bin decompr16 ${DESTDIR}/usr/local/decompr16 X! -install -s -o bin -g kmem -m 2755 trace ${DESTDIR}/usr/local/trace X -sh /usr/sbin/makewhatis ${MANDIR} X X clean: X--- 33,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 ${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*** ./usr/src/man/man1/Makefile.old Sun Aug 4 11:52:11 2002 X--- ./usr/src/man/man1/Makefile Wed Dec 24 19:22:01 2025 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.0 (2.11BSD) 2002/8/4 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.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*************** X*** 26,32 **** 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 lint.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--- 26,32 ---- 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*************** X*** 54,60 **** 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 lint.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--- 54,60 ---- 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*************** X*** 77,83 **** X .SUFFIXES: .1 .0 X X .1.0: X! ${DESTDIR}/usr/man/manroff $*.1 > $*.0 X X all: _make_01 _make_02 X X--- 77,83 ---- X .SUFFIXES: .1 .0 X X .1.0: X! /usr/man/manroff $*.1 > $*.0 X X all: _make_01 _make_02 X X*************** X*** 86,92 **** X _make_02: ${OBJS2} X X eqn.0: X! eqn eqn.1 | ${DESTDIR}/usr/man/manroff > $@ X X clean: FRC X rm -f ${OBJS1} X--- 86,92 ---- X _make_02: ${OBJS2} X X eqn.0: X! eqn eqn.1 | /usr/man/manroff > $@ X X clean: FRC X rm -f ${OBJS1} X*************** X*** 93,141 **** X rm -f ${OBJS2} X X install: _make_01 _make_02 X! install -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}${MDIR} X! install -c -o bin -g bin -m 444 ${OBJS2} ${DESTDIR}${MDIR} X! rm -f ${DESTDIR}${MDIR}/case.0 X! ln ${DESTDIR}/${MDIR}/sh.0 ${DESTDIR}${MDIR}/case.0 X! rm -f ${DESTDIR}${MDIR}/checkeq.0 X! ln ${DESTDIR}/${MDIR}/eqn.0 ${DESTDIR}${MDIR}/checkeq.0 X! rm -f ${DESTDIR}${MDIR}/cu.0 X! ln ${DESTDIR}${MDIR}/tip.0 ${DESTDIR}${MDIR}/cu.0 X! rm -f ${DESTDIR}${MDIR}/diffh.0 X! ln ${DESTDIR}${MDIR}/diff.0 ${DESTDIR}${MDIR}/diffh.0 X! rm -f ${DESTDIR}${MDIR}/edit.0 X! ln ${DESTDIR}${MDIR}/ex.0 ${DESTDIR}${MDIR}/edit.0 X! rm -f ${DESTDIR}${MDIR}/egrep.0 X! ln ${DESTDIR}${MDIR}/grep.0 ${DESTDIR}${MDIR}/egrep.0 X! rm -f ${DESTDIR}${MDIR}/explain.0 X! ln ${DESTDIR}${MDIR}/diction.0 ${DESTDIR}${MDIR}/explain.0 X! rm -f ${DESTDIR}${MDIR}/fgrep.0 X! ln ${DESTDIR}${MDIR}/grep.0 ${DESTDIR}${MDIR}/fgrep.0 X! rm -f ${DESTDIR}${MDIR}/for.0 X! ln ${DESTDIR}${MDIR}/sh.0 ${DESTDIR}${MDIR}/for.0 X! rm -f ${DESTDIR}${MDIR}/if.0 X! ln ${DESTDIR}${MDIR}/sh.0 ${DESTDIR}${MDIR}/if.0 X! rm -f ${DESTDIR}${MDIR}/indxbib.0 X! ln ${DESTDIR}${MDIR}/lookbib.0 ${DESTDIR}${MDIR}/indxbib.0 X! rm -f ${DESTDIR}${MDIR}/neqn.0 X! ln ${DESTDIR}${MDIR}/eqn.0 ${DESTDIR}${MDIR}/neqn.0 X! rm -f ${DESTDIR}${MDIR}/nohup.0 X! ln ${DESTDIR}${MDIR}/nice.0 ${DESTDIR}${MDIR}/nohup.0 X! rm -f ${DESTDIR}${MDIR}/page.0 X! ln ${DESTDIR}${MDIR}/more.0 ${DESTDIR}${MDIR}/page.0 X! rm -f ${DESTDIR}${MDIR}/spellin.0 X! ln ${DESTDIR}${MDIR}/spell.0 ${DESTDIR}${MDIR}/spellin.0 X! rm -f ${DESTDIR}${MDIR}/spellout.0 X! ln ${DESTDIR}${MDIR}/spell.0 ${DESTDIR}${MDIR}/spellout.0 X! rm -f ${DESTDIR}${MDIR}/uncompress.0 X! ln ${DESTDIR}${MDIR}/compress.0 ${DESTDIR}${MDIR}/uncompress.0 X! rm -f ${DESTDIR}${MDIR}/unexpand.0 X! ln ${DESTDIR}${MDIR}/expand.0 ${DESTDIR}${MDIR}/unexpand.0 X! rm -f ${DESTDIR}${MDIR}/uudecode.0 X! ln ${DESTDIR}${MDIR}/uuencode.0 ${DESTDIR}${MDIR}/uudecode.0 X! rm -f ${DESTDIR}${MDIR}/while.0 X! ln ${DESTDIR}${MDIR}/sh.0 ${DESTDIR}${MDIR}/while.0 X! rm -f ${DESTDIR}${MDIR}/zcat.0 X! ln ${DESTDIR}${MDIR}/compress.0 ${DESTDIR}${MDIR}/zcat.0 X X FRC: X--- 93,141 ---- X rm -f ${OBJS2} X X install: _make_01 _make_02 X! install -c -o root -g staff -m 444 ${OBJS1} ${MDIR} X! install -c -o root -g staff -m 444 ${OBJS2} ${MDIR} X! rm -f ${MDIR}/case.0 X! ln ${MDIR}/sh.0 ${MDIR}/case.0 X! rm -f ${MDIR}/checkeq.0 X! ln ${MDIR}/eqn.0 ${MDIR}/checkeq.0 X! rm -f ${MDIR}/cu.0 X! ln ${MDIR}/tip.0 ${MDIR}/cu.0 X! rm -f ${MDIR}/diffh.0 X! ln ${MDIR}/diff.0 ${MDIR}/diffh.0 X! rm -f ${MDIR}/edit.0 X! ln ${MDIR}/ex.0 ${MDIR}/edit.0 X! rm -f ${MDIR}/egrep.0 X! ln ${MDIR}/grep.0 ${MDIR}/egrep.0 X! rm -f ${MDIR}/explain.0 X! ln ${MDIR}/diction.0 ${MDIR}/explain.0 X! rm -f ${MDIR}/fgrep.0 X! ln ${MDIR}/grep.0 ${MDIR}/fgrep.0 X! rm -f ${MDIR}/for.0 X! ln ${MDIR}/sh.0 ${MDIR}/for.0 X! rm -f ${MDIR}/if.0 X! ln ${MDIR}/sh.0 ${MDIR}/if.0 X! rm -f ${MDIR}/indxbib.0 X! ln ${MDIR}/lookbib.0 ${MDIR}/indxbib.0 X! rm -f ${MDIR}/neqn.0 X! ln ${MDIR}/eqn.0 ${MDIR}/neqn.0 X! rm -f ${MDIR}/nohup.0 X! ln ${MDIR}/nice.0 ${MDIR}/nohup.0 X! rm -f ${MDIR}/page.0 X! ln ${MDIR}/more.0 ${MDIR}/page.0 X! rm -f ${MDIR}/spellin.0 X! ln ${MDIR}/spell.0 ${MDIR}/spellin.0 X! rm -f ${MDIR}/spellout.0 X! ln ${MDIR}/spell.0 ${MDIR}/spellout.0 X! rm -f ${MDIR}/uncompress.0 X! ln ${MDIR}/compress.0 ${MDIR}/uncompress.0 X! rm -f ${MDIR}/unexpand.0 X! ln ${MDIR}/expand.0 ${MDIR}/unexpand.0 X! rm -f ${MDIR}/uudecode.0 X! ln ${MDIR}/uuencode.0 ${MDIR}/uudecode.0 X! rm -f ${MDIR}/while.0 X! ln ${MDIR}/sh.0 ${MDIR}/while.0 X! rm -f ${MDIR}/zcat.0 X! ln ${MDIR}/compress.0 ${MDIR}/zcat.0 X X FRC: X*** ./usr/src/man/man2/Makefile.old Tue Dec 4 22:27:42 2001 X--- ./usr/src/man/man2/Makefile Tue Dec 23 12:42:19 2025 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.12 (2.11BSD) 2001/11/19 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--- 14,20 ---- 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*************** X*** 34,40 **** X sigaction.2 sigaltstack.2 sigpending.2 sigprocmask.2 sigsuspend.2 \ X sigreturn.2 sigsetmask.2 sigstack.2 sigwait.2 sigvec.2 socket.2 \ X socketpair.2 \ X! stat.2 statfs.2 swapon.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--- 34,40 ---- X sigaction.2 sigaltstack.2 sigpending.2 sigprocmask.2 sigsuspend.2 \ X sigreturn.2 sigsetmask.2 sigstack.2 sigwait.2 sigvec.2 socket.2 \ X socketpair.2 \ 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*************** X*** 53,65 **** X sigaction.0 sigaltstack.0 sigpending.0 sigprocmask.0 sigsuspend.0 \ X sigreturn.0 sigsetmask.0 sigstack.0 sigwait.0 sigvec.0 socket.0 \ X socketpair.0 \ X! stat.0 statfs.0 swapon.0 symlink.0 sync.0 syscall.0 truncate.0 ucall.0 \ X umask.0 unlink.0 utimes.0 vfork.0 vhangup.0 wait.0 write.0 X X .SUFFIXES: .2 .0 X X .2.0: X! ${DESTDIR}/usr/man/manroff $*.2 > $*.0 X X all: _make_01 X X--- 53,65 ---- X sigaction.0 sigaltstack.0 sigpending.0 sigprocmask.0 sigsuspend.0 \ X sigreturn.0 sigsetmask.0 sigstack.0 sigwait.0 sigvec.0 socket.0 \ X socketpair.0 \ X! stat.0 statfs.0 symlink.0 sync.0 syscall.0 truncate.0 ucall.0 \ X umask.0 unlink.0 utimes.0 vfork.0 vhangup.0 wait.0 write.0 X X .SUFFIXES: .2 .0 X X .2.0: X! /usr/man/manroff $*.2 > $*.0 X X all: _make_01 X X*************** X*** 68,74 **** X clean: FRC X rm -f ${OBJS} X X! P=${DESTDIR}${MDIR} X X REM= sbrk.0 dup2.0 fstat.0 lstat.0 readv.0 recvfrom.0 sendmsg.0 recvmsg.0 \ X sendto.0 fstatfs.0 wait3.0 wait4.0 waitpid.0 fchdir.0 fchflags.0 \ X--- 68,74 ---- X clean: FRC X rm -f ${OBJS} X X! P=${MDIR} X X REM= sbrk.0 dup2.0 fstat.0 lstat.0 readv.0 recvfrom.0 sendmsg.0 recvmsg.0 \ X sendto.0 fstatfs.0 wait3.0 wait4.0 waitpid.0 fchdir.0 fchflags.0 \ X*************** X*** 79,85 **** X seteuid.0 setegid.0 getegid.0 X X install: _make_01 X! install -c -o bin -g bin -m 444 ${OBJS} ${P} X for i in ${REM}; do \ X rm -f ${P}/$$i; \ X done X--- 79,85 ---- X seteuid.0 setegid.0 getegid.0 X X install: _make_01 X! install -c -o root -g staff -m 444 ${OBJS} ${P} X for i in ${REM}; do \ X rm -f ${P}/$$i; \ X done X*** ./usr/src/man/man3/Makefile.old Thu Apr 24 19:13:24 2025 X--- ./usr/src/man/man3/Makefile Wed Dec 24 20:15:05 2025 X*************** X*** 14,62 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.17 (2.11BSD) 2025/4/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 compat-sys5.3 creat.3 crypt.3 ctime.3 ctype.3 curses.3 dbm.3 daemon.3 \ X devname.3 directory.3 ecvt.3 end.3 erf.3 err.3 execl.3 exit.3 \ X! exp.3 fclose.3 ferror.3 floor.3 \ X fopen.3 fread.3 frexp.3 fseek.3 getc.3 getdisk.3 getenv.3 getfsent.3 \ 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 gets.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 puts.3 \ X! qsort.3 rand.3 random.3 rcmd.3 regex.3 resolver.3 rexec.3 scandir.3 \ X scanf.3 setbuf.3 setjmp.3 siginterrupt.3 signal.3 sin.3 \ X! sinh.3 sleep.3 sqrt.3 stdio.3 strftime.3 string.3 strtok.3 stty.3 \ X! 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 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 compat-sys5.0 creat.0 crypt.0 ctime.0 ctype.0 curses.0 dbm.0 daemon.0 \ X devname.0 directory.0 ecvt.0 end.0 erf.0 err.0 execl.0 exit.0 \ X! exp.0 fclose.0 ferror.0 floor.0 \ X fopen.0 fread.0 frexp.0 fseek.0 getc.0 getdisk.0 getenv.0 getfsent.0 \ X getgrent.0 gethostbyname.0 getnetent.0 getopt.0 getpass.0 \ X! getprotoent.0 getpwent.0 gets.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 puts.0 \ X! qsort.0 rand.0 random.0 rcmd.0 regex.0 resolver.0 rexec.0 scandir.0 \ X scanf.0 setbuf.0 setjmp.0 siginterrupt.0 signal.0 sin.0 \ X! sinh.0 sleep.0 sqrt.0 stdio.0 strftime.0 string.0 strtok.0 stty.0 \ X! 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 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--- 14,66 ---- 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 compat-sys5.3 creat.3 crypt.3 ctime.3 ctype.3 curses.3 dbm.3 daemon.3 \ X devname.3 directory.3 ecvt.3 end.3 erf.3 err.3 execl.3 exit.3 \ X! exp.3 fclose.3 fflush.3 ferror.3 floor.3 fgetln.3 funopen.3 \ X fopen.3 fread.3 frexp.3 fseek.3 getc.3 getdisk.3 getenv.3 getfsent.3 \ 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! qsort.3 rand.3 random.3 rcmd.3 regex.3 resolver.3 rexec.3 remove.3 \ 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 compat-sys5.0 creat.0 crypt.0 ctime.0 ctype.0 curses.0 dbm.0 daemon.0 \ X devname.0 directory.0 ecvt.0 end.0 erf.0 err.0 execl.0 exit.0 \ X! exp.0 fclose.0 fflush.0 ferror.0 floor.0 fgetln.0 funopen.0 \ X fopen.0 fread.0 frexp.0 fseek.0 getc.0 getdisk.0 getenv.0 getfsent.0 \ 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! qsort.0 rand.0 random.0 rcmd.0 regex.0 resolver.0 rexec.0 remove.0 \ 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*************** X*** 67,73 **** 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! fgets.0 finite.0 fputc.0 fputs.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--- 71,77 ---- 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*************** X*** 76,90 **** 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 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 \ X! strerror.0 \ X sprintf.0 vfprintf.0 vprintf.0 vsprintf.0 alphasort.0 bcmp.0 bcopy.0 \ X! bzero.0 clearerr.0 feof.0 fflush.0 ffs.0 fileno.0 fprintf.0 gamma.0 \ X getdiskbyname.0 isatty.0 moncontrol.0 monstartup.0 setbuffer.0 \ X setlinebuf.0 setvbuf.0 sys_siglist.0 ttyslot.0 endfsent.0 endgrent.0 \ X endpwent.0 getfsfile.0 getfsspec.0 getfstype.0 getgrgid.0 X--- 80,94 ---- 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 sprintf.0 vfprintf.0 vprintf.0 vsprintf.0 alphasort.0 bcmp.0 bcopy.0 \ X! bzero.0 clearerr.0 feof.0 ffs.0 fileno.0 fprintf.0 gamma.0 \ X getdiskbyname.0 isatty.0 moncontrol.0 monstartup.0 setbuffer.0 \ X setlinebuf.0 setvbuf.0 sys_siglist.0 ttyslot.0 endfsent.0 endgrent.0 \ X endpwent.0 getfsfile.0 getfsspec.0 getfstype.0 getgrgid.0 X*************** X*** 98,104 **** X endprotoent.0 endusershell.0 getprotobyname.0 getprotobynumber.0 \ 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 tmpnam.0 tmpfile.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--- 102,108 ---- X endprotoent.0 endusershell.0 getprotobyname.0 getprotobynumber.0 \ 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 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*** 121,128 **** X rm -f ${OBJS2} X X install: _make_01 _make_02 X! install -c -o bin -g bin -m 444 ${OBJS1} ${MDIR} X! install -c -o bin -g bin -m 444 ${OBJS2} ${MDIR} X for i in ${REMO1}; do \ X rm -f ${MDIR}/$$i; \ X done X--- 125,132 ---- X rm -f ${OBJS2} X X install: _make_01 _make_02 X! install -c -o root -g staff -m 444 ${OBJS1} ${MDIR} X! install -c -o root -g staff -m 444 ${OBJS2} ${MDIR} X for i in ${REMO1}; do \ X rm -f ${MDIR}/$$i; \ X done X*************** X*** 207,216 **** 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}/gets.0 ${MDIR}/fgets.0 X ln ${MDIR}/ieee.0 ${MDIR}/finite.0 X ln ${MDIR}/putc.0 ${MDIR}/fputc.0 X! ln ${MDIR}/puts.0 ${MDIR}/fputs.0 X ln ${MDIR}/time.0 ${MDIR}/ftime.0 X ln ${MDIR}/getc.0 ${MDIR}/getchar.0 X ln ${MDIR}/getc.0 ${MDIR}/getw.0 X--- 211,220 ---- 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 ln ${MDIR}/getc.0 ${MDIR}/getchar.0 X ln ${MDIR}/getc.0 ${MDIR}/getw.0 X*************** X*** 285,290 **** X--- 289,296 ---- X ln ${MDIR}/malloc.0 ${MDIR}/realloc.0 X ln ${MDIR}/insque.0 ${MDIR}/remque.0 X ln ${MDIR}/fseek.0 ${MDIR}/rewind.0 X+ ln ${MDIR}/fseek.0 ${MDIR}/fgetpos.0 X+ ln ${MDIR}/fseek.0 ${MDIR}/fsetpos.0 X ln ${MDIR}/string.0 ${MDIR}/rindex.0 X ln ${MDIR}/floor.0 ${MDIR}/rint.0 X ln ${MDIR}/syslog.0 ${MDIR}/setlogmask.0 X*************** X*** 291,296 **** X--- 297,305 ---- X ln ${MDIR}/random.0 ${MDIR}/setstate.0 X ln ${MDIR}/random.0 ${MDIR}/srandom.0 X ln ${MDIR}/scanf.0 ${MDIR}/sscanf.0 X+ ln ${MDIR}/scanf.0 ${MDIR}/vfscanf.0 X+ ln ${MDIR}/scanf.0 ${MDIR}/vscanf.0 X+ ln ${MDIR}/scanf.0 ${MDIR}/vsscanf.0 X ln ${MDIR}/string.0 ${MDIR}/strcat.0 X ln ${MDIR}/string.0 ${MDIR}/strcmp.0 X ln ${MDIR}/string.0 ${MDIR}/strcpy.0 X*************** X*** 310,319 **** X ln ${MDIR}/bstring.0 ${MDIR}/bzero.0 X ln ${MDIR}/ferror.0 ${MDIR}/clearerr.0 X ln ${MDIR}/ferror.0 ${MDIR}/feof.0 X- ln ${MDIR}/fclose.0 ${MDIR}/fflush.0 X ln ${MDIR}/bstring.0 ${MDIR}/ffs.0 X ln ${MDIR}/ferror.0 ${MDIR}/fileno.0 X ln ${MDIR}/printf.0 ${MDIR}/fprintf.0 X ln ${MDIR}/lgamma.0 ${MDIR}/gamma.0 X ln ${MDIR}/getdisk.0 ${MDIR}/getdiskbyname.0 X ln ${MDIR}/ttyname.0 ${MDIR}/isatty.0 X--- 319,329 ---- X ln ${MDIR}/bstring.0 ${MDIR}/bzero.0 X ln ${MDIR}/ferror.0 ${MDIR}/clearerr.0 X ln ${MDIR}/ferror.0 ${MDIR}/feof.0 X ln ${MDIR}/bstring.0 ${MDIR}/ffs.0 X ln ${MDIR}/ferror.0 ${MDIR}/fileno.0 X ln ${MDIR}/printf.0 ${MDIR}/fprintf.0 X+ ln ${MDIR}/printf.0 ${MDIR}/vsnprintf.0 X+ ln ${MDIR}/printf.0 ${MDIR}/snprintf.0 X ln ${MDIR}/lgamma.0 ${MDIR}/gamma.0 X ln ${MDIR}/getdisk.0 ${MDIR}/getdiskbyname.0 X ln ${MDIR}/ttyname.0 ${MDIR}/isatty.0 X*************** X*** 377,382 **** X--- 387,394 ---- X ln ${MDIR}/gethostbyname.0 ${MDIR}/sethostent.0 X ln ${MDIR}/gethostbyname.0 ${MDIR}/sethostfile.0 X ln ${MDIR}/setmode.0 ${MDIR}/getmode.0 X+ ln ${MDIR}/tmpnam.0 ${MDIR}/tmpfile.0 X+ ln ${MDIR}/tmpnam.0 ${MDIR}/tempnam.0 X ln ${MDIR}/compat-sys5.0 ${MDIR}/memccpy.0 X ln ${MDIR}/compat-sys5.0 ${MDIR}/memchr.0 X ln ${MDIR}/compat-sys5.0 ${MDIR}/memcmp.0 X*************** X*** 384,395 **** X ln ${MDIR}/compat-sys5.0 ${MDIR}/memset.0 X ln ${MDIR}/compat-sys5.0 ${MDIR}/strchr.0 X ln ${MDIR}/compat-sys5.0 ${MDIR}/strrchr.0 X- ln ${MDIR}/compat-sys5.0 ${MDIR}/tmpnam.0 X- ln ${MDIR}/compat-sys5.0 ${MDIR}/tmpfile.0 X- ln ${MDIR}/compat-sys5.0 ${MDIR}/tempnam.0 X ln ${MDIR}/sleep.0 ${MDIR}/usleep.0 X ln ${MDIR}/getenv.0 ${MDIR}/setenv.0 X ln ${MDIR}/getenv.0 ${MDIR}/unsetenv.0 X ln ${MDIR}/setruid.0 ${MDIR}/setrgid.0 X X FRC: X--- 396,407 ---- X ln ${MDIR}/compat-sys5.0 ${MDIR}/memset.0 X ln ${MDIR}/compat-sys5.0 ${MDIR}/strchr.0 X ln ${MDIR}/compat-sys5.0 ${MDIR}/strrchr.0 X ln ${MDIR}/sleep.0 ${MDIR}/usleep.0 X ln ${MDIR}/getenv.0 ${MDIR}/setenv.0 X ln ${MDIR}/getenv.0 ${MDIR}/unsetenv.0 X ln ${MDIR}/setruid.0 ${MDIR}/setrgid.0 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 X FRC: X*** ./usr/src/man/man3/fclose.3.old Sun Dec 14 17:07:16 1986 X--- ./usr/src/man/man3/fclose.3 Fri Dec 26 00:45:32 2025 X*************** X*** 1,50 **** X! .\" @(#)fclose.3s 6.1 (Berkeley) 5/15/85 X .\" X! .TH FCLOSE 3S "May 15, 1985" X! .AT 3 X! .SH NAME X! fclose, fflush \- close or flush a stream X! .SH SYNOPSIS X! .B #include X! .PP X! .B fclose(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B fflush(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .SH DESCRIPTION X! .I Fclose X! causes any buffers for the named X! .I stream X! to be emptied, and the file to be closed. X! Buffers allocated by the standard input/output system X! are freed. X! .PP X! .I Fclose X! is performed automatically upon X! calling X! .IR exit (3). X! .PP X! .I Fflush X! causes any buffered data for the named output X! .I stream X! to be written to that file. X! The stream remains open. X! .SH "SEE ALSO" X! close(2), X! fopen(3S), X! setbuf(3S) X! .SH DIAGNOSTICS X! These routines return X! .SM X! .B EOF X! if X! .I stream X! is not associated with an output file, or X! if buffered data cannot be transferred to that file. X--- 1,93 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)fclose.3 8.2 (2.11BSD) 2025/12/26 X! .\" X! .Dd June 4, 1993 X! .Dt FCLOSE 3 X! .Os X! .Sh NAME X! .Nm fclose X! .Nd close a stream X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn fclose "FILE *stream" X! .Sh DESCRIPTION X! The X! .Fn fclose X! function X! dissociates the named X! .Fa stream X! from its underlying file or set of functions. X! If the stream was being used for output, any buffered data is written X! first, using X! .Xr fflush 3 . X! .Sh RETURN VALUES X! Upon successful completion 0 is returned. X! Otherwise, X! .Dv EOF X! is returned and the global variable X! .Va errno X! is set to indicate the error. X! In either case no further access to the stream is possible. X! .Sh ERRORS X! .Bl -tag -width [EBADF] X! .It Bq Er EBADF X! The argument X! .Fa stream X! is not an open stream. X! .El X! .Pp X! The X! .Fn fclose X! function X! may also fail and set X! .Va errno X! for any of the errors specified for the routines X! .Xr close 2 X! or X! .Xr fflush 3 . X! .Sh SEE ALSO X! .Xr close 2 , X! .Xr fflush 3 , X! .Xr fopen 3 , X! .Xr setbuf 3 X! .Sh STANDARDS X! The X! .Fn fclose X! function X! conforms to X! .St -ansiC . X*** ./usr/src/man/man3/ferror.3.old Sun Dec 14 17:07:20 1986 X--- ./usr/src/man/man3/ferror.3 Fri Dec 26 00:47:48 2025 X*************** X*** 1,73 **** 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! .\" @(#)ferror.3s 6.3 (Berkeley) 5/14/86 X .\" X! .TH FERROR 3S "May 14, 1986" X! .UC 4 X! .SH NAME X! ferror, feof, clearerr, fileno \- stream status inquiries X! .SH SYNOPSIS X! .B #include X! .PP X! .B feof(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B ferror(stream) X! .br X! .SM X! .B FILE X! .B *stream X! .PP X! .B clearerr(stream) X! .br X! .SM X! .B FILE X! .B *stream X! .PP X! .B fileno(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .SH DESCRIPTION X! .I Feof X! returns non-zero when end of file is read on the named input X! .IR stream , X! otherwise zero. X! Unless cleared by X! .IR clearerr , X! the end-of-file indication lasts until X! the stream is closed. X! .PP X! .I Ferror X! returns non-zero when an error has occurred reading or writing X! the named X! .IR stream , X! otherwise zero. X! Unless cleared by X! .IR clearerr , X! the error indication lasts until X! the stream is closed. X! .PP X! .I Clearerr X! resets the error and end-of-file indicators on the named X! .IR stream . X! .PP X! .I Fileno X! returns the integer file descriptor X! associated with the X! .IR stream , X! see X! .IR open (2). X! .PP X! Currently all of these functions X! are implemented as macros; X! they cannot be redeclared. X! .SH "SEE ALSO" X! fopen(3S), X! open(2) X--- 1,100 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)ferror.3 8.3 (2.11BSD) 2025/12/26 X! .\" X! .Dd April 19, 1994 X! .Dt FERROR 3 X! .Os X! .Sh NAME X! .Nm clearerr , X! .Nm feof , X! .Nm ferror , X! .Nm fileno X! .Nd check and reset stream status X! .Sh SYNOPSIS X! .Fd #include X! .Ft void X! .Fn clearerr "FILE *stream" X! .Ft int X! .Fn feof "FILE *stream" X! .Ft int X! .Fn ferror "FILE *stream" X! .Ft int X! .Fn fileno "FILE *stream" X! .Sh DESCRIPTION X! The function X! .Fn clearerr X! clears the end-of-file and error indicators for the stream pointed X! to by X! .Fa stream . X! .Pp X! The function X! .Fn feof X! tests the end-of-file indicator for the stream pointed to by X! .Fa stream , X! returning non-zero if it is set. X! The end-of-file indicator can only be cleared by the function X! .Fn clearerr . X! .Pp X! The function X! .Fn ferror X! tests the error indicator for the stream pointed to by X! .Fa stream , X! returning non-zero if it is set. X! The error indicator can only be reset by the X! .Fn clearerr X! function. X! .Pp X! The function X! .Fn fileno X! examines the argument X! .Fa stream X! and returns its integer descriptor. X! .Sh ERRORS X! These functions should not fail and do not set the external X! variable X! .Va errno . X! .Sh SEE ALSO X! .Xr open 2 , X! .Xr stdio 3 X! .Sh STANDARDS X! The functions X! .Fn clearerr , X! .Fn feof , X! and X! .Fn ferror X! conform to X! .St -ansiC . X*** ./usr/src/man/man3/fopen.3.old Sun Dec 14 17:07:19 1986 X--- ./usr/src/man/man3/fopen.3 Fri Dec 26 00:49:29 2025 X*************** X*** 1,121 **** 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! .\" @(#)fopen.3s 6.3 (Berkeley) 5/27/86 X .\" X! .TH FOPEN 3S "May 27, 1986" X! .UC 4 X! .SH NAME X! fopen, freopen, fdopen \- open a stream X! .SH SYNOPSIS X! .B #include X! .PP X! .SM X! .B FILE X! .B *fopen(filename, type) X! .br X! .B char *filename, *type; X! .PP X! .SM X! .B FILE X! .B *freopen(filename, type, stream) X! .br X! .B char *filename, *type; X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .SM X! .B FILE X! .B *fdopen(fildes, type) X! .br X! .B char *type; X! .SH DESCRIPTION X! .I Fopen X! opens the file named by X! .I filename X and associates a stream with it. X! .I Fopen X! returns a pointer to be used to identify the stream in subsequent operations. X! .PP X! .I Type X! is a character string having one of the following values: X! .TP 5 X! "r" X! open for reading X! .ns X! .TP 5 X! "w" X! create for writing X! .ns X! .TP 5 X! "a" X! append: open for writing at end of file, or create for writing X! .PP X! In addition, each X! .I type X! may be followed by a "+" to have the file opened for reading and writing. X! "r+" positions the stream at the beginning of the file, "w+" creates X! or truncates it, and "a+" positions it at the end. Both reads and writes X! may be used on read/write streams, with the limitation that an X! .I fseek, rewind, X! or reading an end-of-file must be used between a read and a write or vice-versa. X! .PP X! .I Freopen X! substitutes the named file in place of the open X! .IR stream . X! It returns the original value of X! .IR stream . X! The original stream is closed. X! .PP X! .I Freopen X! is typically used to attach the preopened constant names, X! .B stdin, stdout, stderr, X! to specified files. X! .PP X! .I Fdopen X! associates a stream with a file descriptor obtained from X! .I open, dup, creat, X or X! .IR pipe (2). X The X! .I type X! of the stream must agree with the mode of the open file. X! .SH "SEE ALSO" X! open(2), X! fclose(3) X! .SH DIAGNOSTICS X! .I Fopen X! and X! .I freopen X! return the pointer X! .SM X! .B NULL X! if X! .I filename X! cannot be accessed, X! if too many files are already open, X! or if other resources needed cannot be allocated. X! .SH BUGS X! .I Fdopen X! is not portable to systems other than UNIX. X! .PP X! The read/write X! .I types X! do not exist on all systems. Those systems without X! read/write modes will probably treat the X! .I type X! as if the "+" was not present. These are unreliable in any event. X! .PP X! In order to support the same number of open files as does the system, X! .I fopen X! must allocate additional memory for data structures using X! .I calloc X! after 20 files have been opened. X! This confuses some programs which use their own memory allocators. X! An undocumented routine, X! .IR f_prealloc , X! may be called to force immediate allocation of all internal memory X! except for buffers. X--- 1,237 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)fopen.3 8.2 (2.11BSD) 2025/12/25 X! .\" X! .Dd June 4, 1993 X! .Dt FOPEN 3 X! .Os X! .Sh NAME X! .Nm fopen , X! .Nm fdopen , X! .Nm freopen X! .Nd stream open functions X! .Sh SYNOPSIS X! .Fd #include X! .Ft FILE * X! .Fn fopen "char *path" "char *mode" X! .Ft FILE * X! .Fn fdopen "int fildes" "char *mode" X! .Ft FILE * X! .Fn freopen "char *path" "char *mode" "FILE *stream" X! .Sh DESCRIPTION X! The X! .Fn fopen X! function X! opens the file whose name is the string pointed to by X! .Fa path X and associates a stream with it. X! .Pp X! The argument X! .Fa mode X! points to a string beginning with one of the following X! sequences (Additional characters may follow these sequences.): X! .Bl -tag -width indent X! .It Dq Li r X! Open text file for reading. X! The stream is positioned at the beginning of the file. X! .It Dq Li r+ X! Open for reading and writing. X! The stream is positioned at the beginning of the file. 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! Open for writing. X! The file is created if it does not exist. X! The stream is positioned at the end of the file. X! .It Dq Li a+ X! Open for reading and writing. X! The file is created if it does not exist. X! The stream is positioned at the end of the file. X! .El X! .Pp X! The X! .Fa mode X! string can also include the letter ``b'' either as a third character or X! as a character between the characters in any of the two-character strings X! described above. X! This is strictly for compatibility with X! .St -ansiC X! and has no effect; the ``b'' is ignored. X! .Pp X! Any created files will have mode X! .Pf \\*q Dv S_IRUSR X! \&| X! .Dv S_IWUSR X! \&| X! .Dv S_IRGRP X! \&| X! .Dv S_IWGRP X! \&| X! .Dv S_IROTH X! \&| X! .Dv S_IWOTH Ns \\*q X! .Pq Li 0666 , X! as modified by the process' X! umask value (see X! .Xr umask 2 ) . X! .Pp X! Reads and writes may be intermixed on read/write streams in any order, X! and do not require an intermediate seek as in previous versions of X! .Em stdio . X! This is not portable to other systems, however; X! .Tn ANSI C X! requires that X! a file positioning function intervene between output and input, unless X! an input operation encounters end-of-file. X! .Pp X! The X! .Fn fdopen X! function associates a stream with the existing file descriptor, X! .Fa fildes . X! The X! .Fa mode X! of the stream must be compatible with the mode of the file descriptor. X! .Pp X! The X! .Fn freopen X! function X! opens the file whose name is the string pointed to by X! .Fa path X! and associates the stream pointed to by X! .Fa stream X! with it. X! The original stream (if it exists) is closed. X! The X! .Fa mode X! argument is used just as in the X! .Xr fopen X! function. X! The primary use of the X! .Fn freopen X! function X! is to change the file associated with a X! standard text stream X! .Pf ( Em stderr , X! .Em stdin , X or X! .Em stdout ) . X! .Sh RETURN VALUES X! Upon successful completion X! .Fn fopen , X! .Fn fdopen X! and X! .Fn freopen X! return a X! .Tn FILE X! pointer. X! Otherwise, X! .Dv NULL X! is returned and the global variable X! .Va errno X! is set to indicate the error. X! .Sh ERRORS X! .Bl -tag -width [EINVAL] X! .It Bq Er EINVAL X The X! .Fa mode X! provided to X! .Fn fopen , X! .Fn fdopen , X! or X! .Fn freopen X! was invalid. X! .El X! .Pp X! The X! .Fn fopen , X! .Fn fdopen X! and X! .Fn freopen X! functions X! may also fail and set X! .Va errno X! for any of the errors specified for the routine X! .Xr malloc 3 . X! .Pp X! The X! .Fn fopen X! function X! may also fail and set X! .Va errno X! for any of the errors specified for the routine X! .Xr open 2 . X! .Pp X! The X! .Fn fdopen X! function X! may also fail and set X! .Va errno X! for any of the errors specified for the routine X! .Xr fcntl 2 . X! .Pp X! The X! .Fn freopen X! function X! may also fail and set X! .Va errno X! for any of the errors specified for the routines X! .Xr open 2 , X! .Xr fclose 3 X! and X! .Xr fflush 3 . X! .Sh SEE ALSO X! .Xr open 2 , X! .Xr fclose 3 , X! .Xr fseek 3 , X! .Xr funopen 3 X! .Sh STANDARDS X! The X! .Fn fopen X! and X! .Fn freopen X! functions X! conform to X! .St -ansiC . X! The X! .Fn fdopen X! function X! conforms to X! .St -p1003.1-88 . X*** ./usr/src/man/man3/fread.3.old Sun Dec 14 17:07:19 1986 X--- ./usr/src/man/man3/fread.3 Fri Dec 26 00:50:38 2025 X*************** X*** 1,72 **** 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! .\" @(#)fread.3s 6.1 (Berkeley) 5/15/85 X .\" X! .TH FREAD 3S "May 15, 1985" X! .UC 4 X! .SH NAME X! fread, fwrite \- buffered binary input/output X! .SH SYNOPSIS X! .B #include X! .PP X! .B fread(ptr, sizeof(*ptr), nitems, stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B fwrite(ptr, sizeof(*ptr), nitems, stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .SH DESCRIPTION X! .I Fread X! reads, into a block beginning at X! .IR ptr , X! .I nitems X! of data of the type of X! .I *ptr X! from the named input X! .IR stream . X! It returns the number of items actually read. X! .PP X! If X! .I stream X! is X! .B stdin X! and the standard output is line buffered, then any partial output line X! will be flushed before any call to X! .IR read (2) X! to satisfy the X! .IR fread . X! .PP X! .I Fwrite X! appends at most X! .I nitems X! of data of the type of X! .I *ptr X! beginning at X! .I ptr X! to the named output X! .IR stream . X! It returns the number of items actually written. X! .SH "SEE ALSO" X! read(2), X! write(2), X! fopen(3S), X! getc(3S), X! putc(3S), X! gets(3S), X! puts(3S), X! printf(3S), X! scanf(3S) X! .SH DIAGNOSTICS X! .I Fread X and X! .I fwrite X! return X! 0 X! upon end of file or error. X--- 1,106 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)fread.3 8.3 (2.11BSD) 2025/12/26 X! .\" X! .Dd March 8, 1994 X! .Dt FREAD 3 X! .Os X! .Sh NAME X! .Nm fread , X! .Nm fwrite X! .Nd binary stream input/output X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn fread "void *ptr" "size_t size" "size_t nmemb" "FILE *stream" X! .Ft int X! .Fn fwrite "const void *ptr" "size_t size" "size_t nmemb" "FILE *stream" X! .Sh DESCRIPTION X! The function X! .Fn fread X! reads X! .Fa nmemb X! objects, each X! .Xr size X! bytes long, from the stream pointed to by X! .Fa stream , X! storing them at the location given by X! .Fa ptr . X! .Pp X! The function X! .Fn fwrite X! writes X! .Fa nmemb X! objects, each X! .Fa size X! bytes long, to the stream pointed to by X! .Fa stream , X! obtaining them from the location given by X! .Fa ptr . X! .Sh RETURN VALUES X! The functions X! .Fn fread X and X! .Fn fwrite X! advance the file position indicator for the stream X! by the number of bytes read or written. X! They return the number of objects read or written. X! If an error occurs, or the end-of-file is reached, X! the return value is a short object count (or zero). X! .Pp X! The function X! .Fn fread X! does not distinguish between end-of-file and error, and callers X! must use X! .Xr feof 3 X! and X! .Xr ferror 3 X! to determine which occurred. X! The function X! .Fn fwrite X! returns a value less than X! .Fa nmemb X! only if a write error has occurred. X! .Sh SEE ALSO X! .Xr read 2 , X! .Xr write 2 X! .Sh STANDARDS X! The functions X! .Fn fread X! and X! .Fn fwrite X! conform to X! .St -ansiC . X*** ./usr/src/man/man3/fseek.3.old Sun Dec 14 17:07:16 1986 X--- ./usr/src/man/man3/fseek.3 Fri Dec 26 00:59:56 2025 X*************** X*** 1,62 **** X! .\" @(#)fseek.3s 6.3 (Berkeley) 2/24/86 X .\" X! .TH FSEEK 3S "February 24, 1986" X! .AT 3 X! .SH NAME X! fseek, ftell, rewind \- reposition a stream X! .SH SYNOPSIS X! .B #include X! .PP X! .B fseek(stream, offset, ptrname) X! .br X! .SM X! .B FILE X! .B *stream; X! .br X! .B long offset; X! .PP X! .B long ftell(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B rewind(stream) X! .SH DESCRIPTION X! .I Fseek X! sets the position of the next input or output X! operation on the X! .IR stream . X! The new position is at the signed distance X! .I offset X! bytes X! from the beginning, the current position, or the end of the file, X! according as X! .I ptrname X! has the value 0, 1, or 2. X! .PP X! .I Fseek X! undoes any effects of X! .IR ungetc (3S). X! .PP X! .I Ftell X! returns the current value of the offset relative to the beginning X! of the file associated with the named X! .IR stream . X! It is measured in bytes on UNIX; X! on some other systems it is a magic cookie, X! and the only foolproof way to obtain an X! .I offset X! for X! .IR fseek . X! .PP X! .IR Rewind ( stream ) X! is equivalent to X! .IR fseek ( stream , X! 0L, 0). X! .SH "SEE ALSO" X! lseek(2), X! fopen(3S) X! .SH DIAGNOSTICS X! .I Fseek X! returns \-1 for improper seeks, otherwise zero. X--- 1,188 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)fseek.3 8.2 (2.11BSD) 2025/12/26 X! .\" X! .Dd June 4, 1993 X! .Dt FSEEK 3 X! .Os X! .Sh NAME X! .Nm fgetpos , X! .Nm fseek , X! .Nm fsetpos , X! .Nm ftell , X! .Nm rewind X! .Nd reposition a stream X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn fseek "FILE *stream" "long offset" "int whence" X! .Ft long X! .Fn ftell "FILE *stream" X! .Ft void X! .Fn rewind "FILE *stream" X! .Ft int X! .Fn fgetpos "FILE *stream" "fpos_t *pos" X! .Ft int X! .Fn fsetpos "FILE *stream" "fpos_t *pos" X! .Sh DESCRIPTION X! The X! .Fn fseek X! function sets the file position indicator for the stream pointed X! to by X! .Fa stream . X! The new position, measured in bytes, is obtained by adding X! .Fa offset X! bytes to the position specified by X! .Fa whence . X! If X! .Fa whence X! is set to X! .Dv SEEK_SET , X! .Dv SEEK_CUR , X! or X! .Dv SEEK_END , X! the offset is relative to the X! start of the file, the current position indicator, or end-of-file, X! respectively. X! A successful call to the X! .Fn fseek X! function clears the end-of-file indicator for the stream and undoes X! any effects of the X! .Xr ungetc 3 X! function on the same stream. X! .Pp X! The X! .Fn ftell X! function X! obtains the current value of the file position indicator for the X! stream pointed to by X! .Fa stream . X! .Pp X! The X! .Fn rewind X! function sets the file position indicator for the stream pointed X! to by X! .Fa stream X! to the beginning of the file. X! It is equivalent to: X! .Pp X! .Dl (void)fseek(stream, 0L, SEEK_SET) X! .Pp X! except that the error indicator for the stream is also cleared X! (see X! .Xr clearerr 3 ) . X! .Pp X! The X! .Fn fgetpos X! and X! .Fn fsetpos X! functions X! are alternate interfaces equivalent to X! .Fn ftell X! and X! .Fn fseek X! (with whence set to X! .Dv SEEK_SET X! ), setting and storing the current value of X! the file offset into or from the object referenced by X! .Fa pos . X! On some X! .Pq non- Ns Tn UNIX X! systems an X! .Dq Fa fpos_t X! object may be a complex object X! and these routines may be the only way to portably reposition a text stream. X! .Sh RETURN VALUES X! The X! .Fn rewind X! function X! returns no value. X! Upon successful completion, X! .Fn fgetpos , X! .Fn fseek , X! .Fn fsetpos X! return 0, X! and X! .Fn ftell X! returns the current offset. X! Otherwise, \-1 is returned and the global variable errno is set to X! indicate the error. X! .Sh ERRORS X! .Bl -tag -width [EINVAL] X! .It Bq Er EBADF X! The X! .Fa stream X! specified X! is not a seekable stream. X! .It Bq Er EINVAL X! The X! .Fa whence X! argument to X! .Fn fseek X! was not X! .Dv SEEK_SET , X! .Dv SEEK_END , X! or X! .Dv SEEK_CUR . X! .El X! .Pp X! The function X! .Fn fgetpos , X! .Fn fseek , X! .Fn fsetpos , X! and X! .Fn ftell X! may also fail and set X! .Va errno X! for any of the errors specified for the routines X! .Xr fflush 3 , X! .Xr fstat 2 , X! .Xr lseek 2 , X! and X! .Xr malloc 3 . X! .Sh SEE ALSO X! .Xr lseek 2 X! .Sh STANDARDS X! The X! .Fn fgetpos , X! .Fn fsetpos , X! .Fn fseek , X! .Fn ftell , X! and X! .Fn rewind X! functions X! conform to X! .St -ansiC . X*** ./usr/src/man/man3/getc.3.old Sun Dec 14 17:07:16 1986 X--- ./usr/src/man/man3/getc.3 Fri Dec 26 00:51:38 2025 X*************** X*** 1,90 **** X! .\" @(#)getc.3s 6.2 (Berkeley) 5/14/86 X .\" X! .TH GETC 3S "May 14, 1986" X! .AT 3 X! .SH NAME X! getc, getchar, fgetc, getw \- get character or word from stream X! .SH SYNOPSIS X! .B #include X! .PP X! .B int getc(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B int getchar() X! .PP X! .B int fgetc(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B int getw(stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .SH DESCRIPTION X! .I Getc X! returns the next character from the named input X! .IR stream . X! .PP X! .IR Getchar () X! is identical to X! .IR getc ( stdin ) . X! .PP X! .I Fgetc X! behaves like X! .IR getc , X! but is a genuine function, not a macro; X! it may be used to save object text. X! .PP X! .I Getw X! returns the next X! .B int X! (a 32-bit integer on a VAX-11) from the named input X! .IR stream . X! It returns the constant X! .SM X! .B EOF X! upon end of file or error, but since that is a good X! integer value, X! .I feof X and X! .IR ferror (3S) X! should be used to check the success of X! .IR getw . X! .I Getw X! assumes no special alignment in the file. X! .SH "SEE ALSO" X! clearerr(3S), X! fopen(3S), X! putc(3S), X! gets(3S), X! scanf(3S), X! fread(3S), X! ungetc(3S) X! .SH DIAGNOSTICS X! These functions return the integer constant X! .SM X! .B EOF X! at end of file, upon read error, X! or if an attempt is made to read a file not opened by X! .IR fopen . X! The end-of-file condition is remembered, X! even on a terminal, X! and all subsequent attempts to read will return X! .B EOF X until the condition is cleared with X! .IR clearerr (3S). X! .SH BUGS X! Because it is implemented as a macro, X! .I getc X! treats a X! .I stream X! argument with side effects incorrectly. X! In particular, X! `getc(*f++);' X! doesn't work sensibly. X--- 1,136 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)getc.3 8.2 (2.11BSD) 2025/12/26 X! .\" X! .Dd June 4, 1993 X! .Dt GETC 3 X! .Os X! .Sh NAME X! .Nm fgetc , X! .Nm getc , X! .Nm getchar , X! .Nm getw X! .Nd get next character or word from input stream X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn fgetc "FILE *stream" X! .Ft int X! .Fn getc "FILE *stream" X! .Ft int X! .Fn getchar X! .Ft int X! .Fn getw "FILE *stream" X! .Sh DESCRIPTION X! The X! .Fn fgetc X! function X! obtains the next input character (if present) from the stream pointed at by X! .Fa stream , X! or the next character pushed back on the stream via X! .Xr ungetc . X! .Pp X! The X! .Fn getc X! function X! acts essentially identically to X! .Fn fgetc , X! but is a macro that expands in-line. X! .Pp X! The X! .Fn getchar X! function X! is equivalent to: X! getc with the argument stdin. X! .Pp X! The X! .Fn getw X! function X! obtains the next X! .Em int X! (if present) X! from the stream pointed at by X! .Fa stream . X! .Sh RETURN VALUES X! If successful, these routines return the next requested object X! from the X! .Fa stream . X! If the stream is at end-of-file or a read error occurs, X! the routines return X! .Dv EOF . X! The routines X! .Xr feof 3 X and X! .Xr ferror 3 X! must be used to distinguish between end-of-file and error. X! If an error occurs, the global variable X! .Va errno X! is set to indicate the error. X! The end-of-file condition is remembered, even on a terminal, and all X! subsequent attempts to read will return X! .Dv EOF X until the condition is cleared with X! .Xr clearerr . X! .Sh SEE ALSO X! .Xr ferror 3 , X! .Xr fread 3 , X! .Xr fopen 3 , X! .Xr putc 3 , X! .Xr ungetc 3 X! .Sh STANDARDS X! The X! .Fn fgetc , X! .Fn getc X! and X! .Fn getchar X! functions X! conform to X! .St -ansiC . X! .Sh BUGS X! Since X! .Dv EOF X! is a valid integer value, X! .Xr feof X! and X! .Xr ferror X! must be used to check for failure after calling X! .Fn getw . X! The size and byte order of an X! .Em int X! varies from one machine to another, and X! .Fn getw X! is not recommended for portable applications. X! .Pp X*** ./usr/src/man/man3/printf.3.old Mon Aug 11 10:41:07 2025 X--- ./usr/src/man/man3/printf.3 Fri Dec 26 00:52:29 2025 X*************** X*** 1,249 **** X! .\" @(#)printf.3s 6.5.2 (2.11BSD) 2025/04/24 X .\" X! .TH PRINTF 3S "August 11, 2025" X! .AT 3 X! .SH NAME X! printf, fprintf, sprintf, vfprintf, vsprintf \- formatted output conversion X! .SH SYNOPSIS X! .B #include X! .PP X! .B int printf(format X! .RB [ , X! arg ] ... X! .B ) X! .br X! .B char *format; X! .PP X! .B int fprintf(stream, format X! .RB [ , X! arg ] ... X! .B ) X! .br X! .SM X! .B FILE X! .B *stream; X! .br X! .B char *format; X! .PP X! .B int sprintf(s, format X! .RB [ , X! arg ] ... X! .B ) X! .br X! .B char *s, *format; X! .PP X! .B #include X! .br X! .B int vprintf(format, args) X! .br X! .B char *format; X! .br X! .B va_list args; X! .PP X! .B int vfprintf(stream, format, args) X! .br X! .B FILE *stream; X! .br X! .B char *format; X! .br X! .B va_list args; X! .PP X! .B int vsprintf(s, format, args) X! .br X! .B char *s, *format; X! .br X! .B va_list args; X! .SH DESCRIPTION X! .I Printf X! places output on the standard output stream X! .BR stdout . X! .I Fprintf X! places output on the named output X! .IR stream . X! .I Sprintf X! places `output' in the string X! .IR s , X! followed by the character `\\0'. X! Alternate forms, in which the arguments have already been X! captured using the variable-length argument facilities of X! .IR varargs (3), X! are available under the names X! .IR vprintf , X! .IR vfprintf , X and X! .IR vsprintf . X! .PP X! Each of these functions converts, formats, and prints its arguments after X! the first under control of the first argument. X! The first argument is a character string which contains two types of objects: X! plain characters, which are simply copied to the output stream, X! and conversion specifications, each of which causes conversion and printing X! of the next successive X! .I arg X! .IR printf . X! .PP X! Each conversion specification is introduced by the character X! .BR % . X! The remainder of the conversion specification includes X! in the following order X! .TP X! .B \(bu X! a minus sign `\-' which specifies X! .I "left adjustment" X! of the converted value in the indicated field; X! .TP X! .B \(bu X! an optional digit string specifying a X! .I "field width;" X! if the converted value has fewer characters than the field width X! it will be blank-padded on the left (or right, X! if the left-adjustment indicator has been given) to make up the field width; X! if the field width begins with a zero, X! zero-padding will be done instead of blank-padding; X! .TP X! .B \(bu X! an optional period, followed by X! an optional digit string giving a X! .I precision X! which specifies the number of digits to appear after the X! decimal point, for e- and f-conversion, or the maximum number of characters X! to be printed from a string; X! .TP X! .B \(bu X the character X! .B l X specifying that a following X! .BR d , X! .BR o , X! .BR x , X or X! .B u X! corresponds to a long integer X! .IR arg ; X! .TP X! .B \(bu X! a character which indicates the type of X! conversion to be applied. X! .PP X! A field width or precision may be `*' instead of a digit string. X! In this case an integer X! .I arg X! supplies X! the field width or precision. X! .PP X! The conversion characters X! and their meanings are X! .TP X! .B dox X! The integer X! .I arg X! is converted to signed decimal, unsigned octal, or X! unsigned hexadecimal notation respectively. X! .TP X! .B f X! The float or double X! .I arg X! is converted to decimal notation X! in the style `[\fB\-\fR]ddd.ddd' X! where the number of d's after the decimal point X! is equal to the precision specification X! for the argument. X! If the precision X! is missing, X! 6 digits are given; X! if the precision is explicitly 0, no digits and X! no decimal point are printed. X! .TP X! .B e X! The float or double X! .I arg X! is converted in the style X! `[\fB\-\fR]d\fB.\fRddd\fBe\fR\(+-dd' X! where there is one digit before the decimal point and X! the number after is equal to the X! precision specification for the argument; X! when the precision is missing, X! 6 digits are produced. X! .TP X! .B g X! The float or double X! .I arg X! is printed in style X! .BR d , X! in style X! .BR f , X! or in X! style X! .BR e , X! whichever gives full precision in minimum space. X! .TP X! .B c X The character X! .I arg X! is printed. X! .TP X! .B s X! .I Arg X! is taken to be a string (character pointer) X! and characters from the string are printed until X! a null character or until X! the number of characters indicated by the precision X! specification is reached; X! however if the precision is 0 or missing X! all characters up to a null are printed. X! .TP X! .B u X! The unsigned integer X! .I arg X! is converted to decimal X! and printed (the result will be in the X! range 0 through MAXUINT, where MAXUINT equals 4294967295 on a VAX-11 X! and 65535 on a PDP-11). X! .TP X! .B % X! Print a `%'; no argument is converted. X! .PP X! In no case does a non-existent or small field width X! cause truncation of a field; X! padding takes place only if the specified field X! width exceeds the actual width. X! Characters generated by X! .I printf X! are printed as by X! .IR putc (3S). X! .PP X! .SH "RETURN VALUE" X! The functions all return X! the number of characters printed, or -1 if an error occurred. X! .SH EXAMPLES X .br X To print a date and time in the form `Sunday, July 3, 10:02', X where X! .I weekday X and X! .I month X! are pointers to null-terminated strings: X! .RS X! .HP X! .nh X! printf("%s, %s %d, %02d:%02d", weekday, month, day, hour, min); X! .RE X! .hy X! .PP X! To print X! .if n pi X! .if t \(*p X! to 5 decimals: X! .IP X! printf("pi = %.5f", 4*atan(1.0)); X! .SH "SEE ALSO" X! putc(3S), scanf(3S) X! .SH BUGS X! Very wide fields (>300 characters) fail. X! .LP X! Only \fIsprintf\fP and \fIvsprintf\fP return a count of characters X! transferred. X! .LP X! The functions still supports \fI%D\fP, \fI%O\fP, \fI%U\fP and X! \fI%X\fP. Do not X! use these formats, as they will be disappearing real soon now. X--- 1,638 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)printf.3 8.2 (2.11BSD) 2025/12/26 X! .\" X! .Dd June 4, 1993 X! .Dt PRINTF 3 X! .Os X! .Sh NAME X! .Nm printf , X! .Nm fprintf , X! .Nm sprintf , X! .Nm snprintf , X! .Nm vprintf , X! .Nm vfprintf, X! .Nm vsprintf , X! .Nm vsnprintf X! .Nd formatted output conversion X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn printf "const char *format" ... X! .Ft int X! .Fn fprintf "FILE *stream" "const char *format" ... X! .Ft int X! .Fn sprintf "char *str" "const char *format" ... X! .Ft int X! .Fn snprintf "char *str" "size_t size" "const char *format" ... X! .\" .Ft int X! .\" .Fn smprintf "const char *format" ... X! .Fd #include X! .Ft int X! .Fn vprintf "const char *format" "va_list ap" X! .Ft int X! .Fn vfprintf "FILE *stream" "const char *format" "va_list ap" X! .Ft int X! .Fn vsprintf "char *str" "char *format" "va_list ap" X! .Ft int X! .Fn vsnprintf "char *str" "size_t size" "const char *format" "va_list ap" X! .\" .Ft int X! .\" .Fn vsmprintf "const char *format" "va_list ap" X! .Sh DESCRIPTION X! The X! .Fn printf 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! .Em stdout, X! the standard output stream; X! .Fn fprintf X! and X! .Fn vfprintf X! write output to the given output X! .Fa stream ; X! .Fn sprintf , X! .Fn snprintf , X! .Fn vsprintf , X! and X! .Fn vsnprintf X! write to the character string X! .Fa str . X! .\" .IR str ; X! .\" and X! .\" .I smprintf X! .\" and X! .\" .I vsmprintf X! .\" dynamically allocate a new string with X! .\" .IR malloc . X! These functions write the output under the control of a X! .Fa format X! string that specifies how subsequent arguments X! (or arguments accessed via the variable-length argument facilities of X! .Xr stdarg 3 ) X! are converted for output. X! .\" Except for X! .\" .I smprintf X! .\" and X! .\" .IR vsmprintf , X! .\" all of these functions return X! These functions return X! the number of characters printed X! (not including the trailing X! .Ql \e0 X! used to end output to strings). X! .\" .I Smprintf X! .\" and X! .\" .I vsmprintf X! .\" return a pointer to a string of an appropriate length; X! .\" this pointer should be passed to X! .\" .I free X! .\" to release the associated storage X! .\" when it is no longer needed. X! .\" If sufficient space is not avaliable, X! .\" .I smprintf X! .\" and X! .\" .I vsmprintf X! .\" will return X! .\" .SM X! .\" .BR X! .Fn Snprintf X! and X! .Fn vsnprintf X! will write at most X! .Fa size Ns \-1 X! of the characters printed into the output string X! (the X! .Fa size Ns 'th X! character then gets the terminating X! .Ql \e0 ) ; X! if the return value is greater than or equal to the 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! .Fa size . X! .Pp X! The format string is composed of zero or more directives: X! ordinary X! .\" multibyte X! characters (not X! .Cm % ) , X! which are copied unchanged to the output stream; X! and conversion specifications, each of which results X! in fetching zero or more subsequent arguments. X! Each conversion specification is introduced by X the character X! .Cm % . X! The arguments must correspond properly (after type promotion) X! with the conversion specifier. X! After the X! .Cm % , X! the following appear in sequence: X! .Bl -bullet X! .It X! Zero or more of the following flags: X! .Bl -hyphen X! .It X! A X! .Cm # X! character X! specifying that the value should be converted to an ``alternate form''. X! For X! .Cm c , X! .Cm d , X! .Cm i , X! .Cm n , X! .Cm p , X! .Cm s , X! and X! .Cm u , X! conversions, this option has no effect. X! For X! .Cm o X! conversions, the precision of the number is increased to force the first X! character of the output string to a zero (except if a zero value is printed X! with an explicit precision of zero). X! For X! .Cm x X! and X! .Cm X X! conversions, a non-zero result has the string X! .Ql 0x X! (or X! .Ql 0X X! for X! .Cm X X! conversions) prepended to it. X! For X! .Cm e , X! .Cm E , X! .Cm f , X! .Cm g , X! and X! .Cm G , X! conversions, the result will always contain a decimal point, even if no X! digits follow it (normally, a decimal point appears in the results of X! those conversions only if a digit follows). X! For X! .Cm g X! and X! .Cm G X! conversions, trailing zeros are not removed from the result as they X! would otherwise be. X! .It X! A zero X! .Sq Cm \&0 X! character specifying zero padding. X! For all conversions except 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! .Cm i , X! .Cm x , X! and X! .Cm X ) , X! the X! .Sq Cm \&0 X! flag is ignored. X! .It X! A negative field width flag X! .Sq Cm \- X! indicates the converted value is to be left adjusted on the field boundary. X! Except for X! .Cm n X! conversions, the converted value is padded on the right with blanks, X! rather than on the left with blanks or zeros. X! A X! .Sq Cm \- X! overrides a X! .Sq Cm \&0 X! if both are given. X! .It X! A space, specifying that a blank should be left before a positive number X! produced by a signed conversion X! .Pf ( Cm d , X! .Cm e , X! .Cm E , X! .Cm f , X! .Cm g , X! .Cm G , X! or X! .Cm i ) . X! .It X! A X! .Sq Cm + X! character specifying that a sign always be placed before a X! number produced by a signed conversion. X! A X! .Sq Cm + X! overrides a space if both are used. X! .El X! .It X! An optional decimal digit string specifying a minimum field width. X! If the converted value has fewer characters than the field width, it will X! be padded with spaces on the left (or right, if the left-adjustment X! flag has been given) to fill out X! the field width. X! .It X! An optional precision, in the form of a period X! .Sq Cm \&. X! followed by an X! optional digit string. If the digit string is omitted, the precision X! is taken as zero. This gives the minimum number of digits to appear for X! .Cm d , X! .Cm i , X! .Cm o , X! .Cm u , X! .Cm x , X! and X! .Cm X X! conversions, the number of digits to appear after the decimal-point for X! .Cm e , X! .Cm E , X! and X! .Cm f X! conversions, the maximum number of significant digits for X! .Cm g X! and X! .Cm G X! conversions, or the maximum number of characters to be printed from a X! string for X! .Cm s X! conversions. X! .It X! The optional character X! .Cm h , X specifying that a following X! .Cm d , X! .Cm i , X! .Cm o , X! .Cm u , X! .Cm x , X or X! .Cm X X! conversion corresponds to a X! .Em short int X! or X! .Em unsigned short int X! argument, or that a following X! .Cm n X! conversion corresponds to a pointer to a X! .Em short int X! argument. X! .It X! The optional character X! .Cm l X! (ell) specifying that a following X! .Cm d , X! .Cm i , X! .Cm o , X! .Cm u , X! .Cm x , X! or X! .Cm X X! conversion applies to a pointer to a X! .Em long int X! or X! .Em unsigned long int X! argument, or that a following X! .Cm n X! conversion corresponds to a pointer to a X! .Em long int X! argument. X! .It X! The optional character X! .Cm q , X! specifying that a following X! .Cm d , X! .Cm i , X! .Cm o , X! .Cm u , X! .Cm x , X! or X! .Cm X X! conversion corresponds to a X! .Em quad int X! or X! .Em unsigned quad int X! argument, or that a following X! .Cm n X! conversion corresponds to a pointer to a X! .Em quad int X! argument. X! .It X The character X! .Cm L X! specifying that a following X! .Cm e , X! .Cm E , X! .Cm f , X! .Cm g , X! or 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! .Pp X! A field width or precision, or both, may be indicated by X! an asterisk X! .Ql * X! instead of a X! digit string. X! In this case, an X! .Em int X! argument supplies the field width or precision. X! A negative field width is treated as a left adjustment flag followed by a X! positive field width; a negative precision is treated as though it were X! missing. X! .Pp X! The conversion specifiers and their meanings are: X! .Bl -tag -width "diouxX" X! .It Cm diouxX X! The X! .Em int X! (or appropriate variant) argument is converted to signed decimal X! .Pf ( Cm d X! and X! .Cm i ) , X! unsigned octal X! .Pq Cm o , X! unsigned decimal X! .Pq Cm u , X! or unsigned hexadecimal X! .Pf ( Cm x X! and X! .Cm X ) X! notation. The letters X! .Cm abcdef X! are used for X! .Cm x 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! the left with zeros. X! .It Cm DOU X! The X! .Em long int X! argument is converted to signed decimal, unsigned octal, or unsigned X! decimal, as if the format had been X! .Cm ld , X! .Cm lo , X! or X! .Cm lu X! respectively. X! These conversion characters are deprecated, and will eventually disappear. X! .It Cm eE X! The X! .Em double X! argument is rounded and converted in the style X! .Sm off X! .Pf [\-]d Cm \&. No ddd Cm e No \\*(Pmdd X! .Sm on X! where there is one digit before the X! decimal-point character X! and the number of digits after it is equal to the precision; X! if the precision is missing, X! it is taken as 6; if the precision is X! zero, no decimal-point character appears. X! An X! .Cm E X! conversion uses the letter X! .Cm E X! (rather than X! .Cm e ) X! to introduce the exponent. X! The exponent always contains at least two digits; if the value is zero, X! the exponent is 00. X! .It Cm f X! The X! .Em double X! argument is rounded and converted to decimal notation in the style X! .Sm off X! .Pf [-]ddd Cm \&. No ddd , X! .Sm on X! where the number of digits after the decimal-point character X! is equal to the precision specification. X! If the precision is missing, it is taken as 6; if the precision is X! explicitly zero, no decimal-point character appears. X! If a decimal point appears, at least one digit appears before it. X! .It Cm g X! The X! .Em double X! argument is converted in style X! .Cm f X! or X! .Cm e X! (or X! .Cm E X! for X! .Cm G X! conversions). X! The precision specifies the number of significant digits. X! If the precision is missing, 6 digits are given; if the precision is zero, X! it is treated as 1. X! Style X! .Cm e X! is used if the exponent from its conversion is less than -4 or greater than X! or equal to the precision. X! Trailing zeros are removed from the fractional part of the result; a X! decimal point appears only if it is followed by at least one digit. X! .It Cm c X! The X! .Em int X! argument is converted to an X! .Em unsigned char , X! and the resulting character is written. X! .It Cm s X! The X! .Dq Em char * X! argument is expected to be a pointer to an array of character type (pointer X! to a string). X! Characters from the array are written up to (but not including) X! a terminating X! .Dv NUL X! character; X! if a precision is specified, no more than the number specified are X! written. X! If a precision is given, no null character X! need be present; if the precision is not specified, or is greater than X! the size of the array, the array must contain a terminating X! .Dv NUL X! character. 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! .Dq Em int * X! (or variant) pointer argument. X! No argument is converted. X! .It Cm % X! A X! .Ql % X! is written. No argument is converted. The complete conversion specification X! is X! .Ql %% . X! .El X! .Pp X! In no case does a non-existent or small field width cause truncation of X! a field; if the result of a conversion is wider than the field width, the X! field is expanded to contain the conversion result. X! .Pp X! .Sh EXAMPLES X .br X To print a date and time in the form `Sunday, July 3, 10:02', X where X! .Em weekday X and X! .Em month X! are pointers to strings: X! .Bd -literal -offset indent X! #include X! fprintf(stdout, "%s, %s %d, %.2d:%.2d\en", X! weekday, month, day, hour, min); X! .Ed X! .Pp X! To print \*(Pi X! to five decimal places: X! .Bd -literal -offset indent X! #include X! #include X! fprintf(stdout, "pi = %.5f\en", 4 * atan(1.0)); X! .Ed X! .Pp X! To allocate a 128 byte string and print into it: X! .Bd -literal -offset indent X! #include X! #include X! #include X! char *newfmt(const char *fmt, ...) X! { X! char *p; X! va_list ap; X! if ((p = malloc(128)) == NULL) X! return (NULL); X! va_start(ap, fmt); X! (void) vsnprintf(p, 128, fmt, ap); X! va_end(ap); X! return (p); X! } X! .Ed X! .Sh SEE ALSO X! .Xr printf 1 , X! .Xr scanf 3 X! .Sh STANDARDS X! The X! .Fn fprintf , X! .Fn printf , X! .Fn sprintf , X! .Fn vprintf , X! .Fn vfprintf , X! and X! .Fn vsprintf X! functions X! conform to X! .St -ansiC . X! .Sh HISTORY X! The functions X! .Fn snprintf X! and X! .Fn vsnprintf X! are new to this release. X! .Sh BUGS X! The conversion formats X! .Cm \&%D , X! .Cm \&%O , X! and X! .Cm %U X! are not standard and X! are provided only for backward compatibility. X! The effect of padding the X! .Cm %p X! format with zeros (either by the X! .Sq Cm 0 X! flag or by specifying a precision), and the benign effect (i.e., none) X! of the X! .Sq Cm # X! flag on X! .Cm %n X! and X! .Cm %p X! conversions, as well as other X! nonsensical combinations such as X! .Cm %Ld , X! are not standard; such combinations X! should be avoided. X! .Pp X! Because X! .Fn sprintf X! and X! .Fn vsprintf X! assume an infinitely long string, X! callers must be careful not to overflow the actual space; X! this is often impossible to assure. X! For safety, programmers should use the X! .Fn snprintf X! interface instead. X! Unfortunately, this interface is not portable. X*** ./usr/src/man/man3/putc.3.old Sun Dec 14 17:07:18 1986 X--- ./usr/src/man/man3/putc.3 Fri Dec 26 00:54:45 2025 X*************** X*** 1,85 **** X! .\" @(#)putc.3s 6.2 (Berkeley) 11/6/85 X .\" X! .TH PUTC 3S "November 6, 1985" X! .AT 3 X! .SH NAME X! putc, putchar, fputc, putw \- put character or word on a stream X! .SH SYNOPSIS X! .B #include X! .PP X! .B int putc(c, stream) X! .br X! .B char c; X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B int putchar(c) X! .PP X! .B int fputc(c, stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .PP X! .B int putw(w, stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .SH DESCRIPTION X! .I Putc X! appends the character X! .I c X to the named output X! .IR stream . X! It returns the character written. X! .PP X! .IR Putchar ( c ) X! is defined as X! .IR putc ( c , X! .BR stdout ). X! .PP X! .I Fputc X! behaves like X! .IR putc , X! but is a genuine function rather than a macro. X! .PP X! .I Putw X! appends word (that is, X! .BR int ) X! .I w X! to the output X! .IR stream . X! It returns the word written. X! .I Putw X! neither assumes nor causes special alignment in the file. X! .SH "SEE ALSO" X! fopen(3S), X! fclose(3S), X! getc(3S), X! puts(3S), X! printf(3S), X! fread(3S) X! .SH DIAGNOSTICS X! These functions return the constant X! .SM X! .B EOF X! upon error. Since this is a good integer, X! .IR ferror (3S) X! should be used to detect X! .I putw X! errors. X! .SH BUGS X! Because it is implemented as a macro, X! .I putc X! treats a X! .I stream X! argument with side effects improperly. In particular X! .IP "putc(c, *f++);" X! .PP X! doesn't work sensibly. X! .PP X! Errors can occur long after the call to X! .IR putc . X--- 1,129 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)putc.3 8.2 (2.11BSD) 2025/12/26 X! .\" X! .Dd June 4, 1993 X! .Dt PUTC 3 X! .Os X! .Sh NAME X! .Nm fputc , X! .Nm putc , X! .Nm putchar , X! .Nm putw X! .Nd output a character or word to a stream X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn fputc "int c" "FILE *stream" X! .Ft int X! .Fn putc "int c" "FILE *stream" X! .Ft int X! .Fn putchar "int c" X! .Ft int X! .Fn putw "int w" "FILE *stream" X! .Sh DESCRIPTION X! The X! .Fn fputc X! function X! writes the character X! .Fa c X! (converted to an ``unsigned char'') X! to the output stream pointed to by X! .Fa stream . X! .Pp X! .Fn Putc X! acts essentially identically to X! .Fn fputc , X! but is a macro that expands in-line. It may evaluate X! .Fa stream X! more than once, so arguments given to X! .Fn putc X! should not be expressions with potential side effects. X! .Pp X! .Fn Putchar X! is identical to X! .Fn putc X! with an output stream of X! .Em stdout . X! .Pp X! The X! .Fn putw X! function X! writes the specified X! .Em int X to the named output X! .Fa stream . X! .Sh RETURN VALUES X! The functions, X! .Fn fputc , X! .Fn putc X! and X! .Fn putchar X! return the character written. X! If an error occurs, the value X! .Dv EOF X! is returned. X! The X! .Fn putw X! function X! returns 0 on success; X! .Dv EOF X! is returned if X! a write error occurs, X! or if an attempt is made to write a read-only stream. X! .Sh SEE ALSO X! .Xr ferror 3 , X! .Xr fopen 3 , X! .Xr getc 3 , X! .Xr stdio 3 X! .Sh STANDARDS X! The functions X! .Fn fputc , X! .Fn putc , X! and X! .Fn putchar , X! conform to X! .St -ansiC . X! A function X! .Fn putw X! function appeared in X! .At v6 . X! .Sh BUGS X! The size and byte order of an X! .Em int X! varies from one machine to another, and X! .Fn putw X! is not recommended for portable applications. X*** ./usr/src/man/man3/scanf.3.old Sun Dec 14 17:07:18 1986 X--- ./usr/src/man/man3/scanf.3 Fri Dec 26 00:55:26 2025 X*************** X*** 1,257 **** X! .\" @(#)scanf.3s 6.1 (Berkeley) 5/15/85 X .\" X! .TH SCANF 3S "May 15, 1985" X! .AT 3 X! .SH NAME X! scanf, fscanf, sscanf \- formatted input conversion X! .SH SYNOPSIS X! .B #include X! .PP X! .B scanf(format X! [ , pointer ] . . . X! .B ) X! .br X! .B char *format; X! .PP X! .B fscanf(stream, format X! [ , pointer ] . . . X! .B ) X! .br X! .SM X! .B FILE X! .B *stream; X! .br X! .B char *format; X! .PP X! .B sscanf(s, format X! [ , pointer ] . . . X! .B ) X! .br X! .B char *s, *format; X! .SH DESCRIPTION X! .I Scanf X! reads from the standard input stream X! .BR stdin . X! .I Fscanf X! reads from the named input X! .IR stream . X! .I Sscanf X! reads from the character string X! .IR s . X! Each function reads characters, interprets X! them according to a format, and stores the results in its arguments. X! Each expects as arguments X! a control string X! .IR format , X! described below, X! and a set of X! .I pointer X! arguments X! indicating where the converted input should be stored. X! .PP X The X! control string X! usually contains X! conversion specifications, which are used to direct interpretation X! of input sequences. X! The control string may contain: X! .TP 4 X! 1. X! Blanks, tabs or newlines, X! which match optional white space in the input. X! .TP 4 X! 2. X! An ordinary character (not %) which must match X! the next character of the input stream. X! .TP 4 X! 3. X! Conversion specifications, consisting of the X character X! .BR % , X! an optional assignment suppressing character X! .BR * , X! an optional numerical maximum field width, and a conversion X character. X! .PP X! A conversion specification directs the conversion of the X! next input field; the result X! is placed in the variable pointed to by the corresponding argument, X! unless assignment suppression was X! indicated by X! .BR * . X! An input field is defined as a string of non-space characters; X! it extends to the next inappropriate character or until the field X! width, if specified, is exhausted. X! .PP X! The conversion character indicates the interpretation of the X! input field; the corresponding pointer argument must X! usually be of a restricted type. X! The following conversion characters are legal: X! .TP 4 X! .B % X! a single `%' is expected X! in the input at this point; X! no assignment is done. X! .TP 4 X! .B d X! a decimal integer is expected; X! the corresponding argument should be an integer pointer. X! .TP 4 X! .B o X! an octal integer is expected; X! the corresponding argument should be a integer pointer. X! .TP 4 X! .B x X! a hexadecimal integer is expected; X! the corresponding argument should be an integer pointer. X! .ti -0.2i X! .TP 4 X! .B s X! a character string is expected; X! the corresponding argument should be a character pointer X! pointing to an array of characters large enough to accept the X! string and a terminating `\e0', which will be added. X! The input field is terminated by a space character X! or a newline. X! .TP 4 X! .B c X! a character is expected; the X! corresponding argument should be a character pointer. X! The normal skip over space characters is suppressed X! in this case; X! to read the next non-space character, try X! `%1s'. X! If a field width is given, the corresponding argument X! should refer to a character array, and the X! indicated number of characters is read. X! .TP 4 X! \z\fBe\v'1'f\v'-1'\fR X! a X! floating point number is expected; X! the next field is converted accordingly and stored through the X! corresponding argument, which should be a pointer to a X! .IR float . X! The input format for X! floating point numbers is X! an optionally signed X! string of digits X! possibly containing a decimal point, followed by an optional X! exponent field consisting of an E or e followed by an optionally signed integer. X! .TP 4 X! .B [ X! indicates a string not to be delimited by space characters. X! The left bracket is followed by a set of characters and a right X! bracket; the characters between the brackets define a set X! of characters making up the string. X! If the first character X! is not circumflex (\|^\|), the input field X! is all characters until the first character not in the set between X! the brackets; if the first character X! after the left bracket is ^, the input field is all characters X! until the first character which is in the remaining set of characters X! between the brackets. X! The corresponding argument must point to a character array. X! .PP X! The conversion characters X! .BR d , X! .B o X and X! .B x X! may be capitalized or preceded by X! .B l X! to indicate that a pointer to X! .B long X! rather than to X! .B int X! is in the argument list. X! Similarly, the conversion characters X! .B e X! or X! .B f X! may be capitalized or X! preceded by X! .B l X! to indicate a pointer to X! .B double X! rather than to X! .BR float . X! The conversion characters X! .BR d , X! .B o X and X! .B x X! may be preceded by X! .B h X! to indicate a pointer to X! .B short X! rather than to X! .BR int . X! .PP X! The X! .I scanf X! functions return the number of successfully matched and assigned input X! items. X! This can be used to decide how many input items were found. X! The constant X! .SM X! .B EOF X! is returned upon end of input; note that this is different X! from 0, which means that no conversion was done; X! if conversion was intended, it was frustrated by an X! inappropriate character in the input. X! .PP X! For example, the call X! .IP "" 10 X! int i; float x; char name[50]; X! .br X! scanf("%d%f%s", &i, &x, name); X! .PP X! with the input line X! .IP X! 25 54.32E\(mi1 thompson X! .PP X! will assign to X! .I i X! the value X! 25, X! .I x X! the value 5.432, and X! .I name X! will contain X! .IR `thompson\e0' . X! Or, X! .IP X! int i; float x; char name[50]; X! .br X! scanf("%2d%f%*d%[1234567890]", &i, &x, name); X! .PP X! with input X! .IP X! 56789 0123 56a72 X! .PP X! will assign 56 to X! .IR i , X! 789.0 to X! .IR x , X! skip `0123', X! and place the string `56\e0' in X! .IR name . X! The next call to X! .I getchar X! will return `a'. X! .SH "SEE ALSO" X! atof(3), X! getc(3S), X! printf(3S) X! .SH DIAGNOSTICS X! The X! .I scanf X! functions return X! .SM X! .B EOF X! on end of input, X! and a short count for missing or illegal data items. X! .SH BUGS X! The success of literal matches and suppressed X! assignments is not directly X! determinable. X--- 1,430 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)scanf.3 8.3 (2.11BSD) 2025/12/26 X! .\" X! .Dd December 11, 1993 X! .Dt SCANF 3 X! .Os X! .Sh NAME X! .Nm scanf , X! .Nm fscanf , X! .Nm sscanf , X! .Nm vscanf , X! .Nm vsscanf , X! .Nm vfscanf X! .Nd input format conversion X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn scanf "const char *format" ... X! .Ft int X! .Fn fscanf "FILE *stream" "const char *format" ... X! .Ft int X! .Fn sscanf "const char *str" "const char *format" ... X! .Fd #include X! .Ft int X! .Fn vscanf "const char *format" "va_list ap" X! .Ft int X! .Fn vsscanf "const char *str" "const char *format" "va_list ap" X! .Ft int X! .Fn vfscanf "FILE *stream" "const char *format" "va_list ap" X! .Sh DESCRIPTION X The X! .Fn scanf X! family of functions scans input according to a X! .Fa format X! as described below. X! This format may contain X! .Em conversion specifiers ; X! the results from such conversions, if any, X! are stored through the X! .Em pointer X! arguments. X! The X! .Fn scanf X! function X! reads input from the standard input stream X! .Em stdin , X! .Fn fscanf X! reads input from the stream pointer X! .Fa stream , X! and X! .Fn sscanf X! reads its input from the character string pointed to by X! .Fa str . X! The X! .Fn vfscanf X! function X! is analogous to X! .Xr vfprintf 3 X! and reads input from the stream pointer X! .Fa stream X! using a variable argument list of pointers (see X! .Xr stdarg 3 ) . X! The X! .Fn vscanf X! function scans a variable argument list from the standard input and X! the X! .Fn vsscanf X! function scans it from a string; X! these are analogous to X! the X! .Fn vprintf X! and X! .Fn vsprintf X! functions respectively. X! Each successive X! .Em pointer X! argument must correspond properly with X! each successive conversion specifier X! (but see `suppression' below). X! All conversions are introduced by the X! .Cm % X! (percent sign) character. X! The X! .Fa format X! string X! may also contain other characters. X! White space (such as blanks, tabs, or newlines) in the X! .Fa format X! string match any amount of white space, including none, in the input. X! Everything else X! matches only itself. X! Scanning stops X! when an input character does not match such a format character. X! Scanning also stops X! when an input conversion cannot be made (see below). X! .Sh CONVERSIONS X! Following the X! .Cm % X! character introducing a conversion X! there may be a number of X! .Em flag X! characters, as follows: X! .Bl -tag -width indent X! .It Cm * X! Suppresses assignment. X! The conversion that follows occurs as usual, but no pointer is used; X! the result of the conversion is simply discarded. X! .It Cm h X! Indicates that the conversion will be one of X! .Cm dioux X! or X! .Cm n X! and the next pointer is a pointer to a X! .Em short int X! (rather than X! .Em int ) . X! .It Cm l X! Indicates either that the conversion will be one of X! .Cm dioux X! or X! .Cm n X! and the next pointer is a pointer to a X! .Em long int X! (rather than X! .Em int ) , X! or that the conversion will be one of X! .Cm efg X! and the next pointer is a pointer to X! .Em double X! (rather than X! .Em float ) . X! .It Cm L X! Indicates that the conversion will be X! .Cm efg X! and the next pointer is a pointer to X! .Em long double . X! (This type is not implemented; the X! .Cm L X! flag is currently ignored.) X! .El X! .Pp X! In addition to these flags, X! there may be an optional maximum field width, X! expressed as a decimal integer, X! between the X! .Cm % X! and the conversion. X! If no width is given, X! a default of `infinity' is used (with one exception, below); X! otherwise at most this many characters are scanned X! in processing the conversion. X! Before conversion begins, X! most conversions skip white space; X! this white space is not counted against the field width. X! .Pp X! The following conversions are available: X! .Bl -tag -width XXXX X! .It Cm % X! Matches a literal `%'. X! That is, `%\&%' in the format string X! matches a single input `%' character. X! No conversion is done, and assignment does not occur. X! .It Cm d X! Matches an optionally signed decimal integer; X! the next pointer must be a pointer to X! .Em int . X! .It Cm D X! Equivalent to X! .Xr ld ; X! this exists only for backwards compatibility. X! .It Cm i X! Matches an optionally signed integer; X! the next pointer must be a pointer to X! .Em int . X! The integer is read in base 16 if it begins X! with X! .Ql 0x X! or X! .Ql 0X , X! in base 8 if it begins with X! .Ql 0 , X! and in base 10 otherwise. X! Only characters that correspond to the base are used. X! .It Cm o X! Matches an octal integer; X! the next pointer must be a pointer to X! .Em unsigned int . X! .It Cm O X! Equivalent to X! .Xr lo ; X! this exists for backwards compatibility. X! .It Cm u X! Matches an optionally signed decimal integer; X! the next pointer must be a pointer to X! .Em unsigned int . X! .It Cm x X! Matches an optionally signed hexadecimal integer; X! the next pointer must be a pointer to X! .Em unsigned int . X! .It Cm X X! Equivalent to X! .Cm lx ; X! this violates the X! .St -ansiC , X! but is backwards compatible with previous X! .Ux X! systems. X! .It Cm f X! Matches an optionally signed floating-point number; X! the next pointer must be a pointer to X! .Em float . X! .It Cm e X! Equivalent to X! .Cm f . X! .It Cm g X! Equivalent to X! .Cm f . X! .It Cm E X! Equivalent to X! .Cm lf ; X! this violates the X! .St -ansiC , X! but is backwards compatible with previous X! .Ux X! systems. X! .It Cm F X! Equivalent to X! .Cm lf ; X! this exists only for backwards compatibility. X! .It Cm s X! Matches a sequence of non-white-space characters; X! the next pointer must be a pointer to X! .Em char , X! and the array must be large enough to accept all the sequence and the X! terminating X! .Dv NUL X! character. X! The input string stops at white space X! or at the maximum field width, whichever occurs first. X! .It Cm c X! Matches a sequence of X! .Em width X! count X! characters (default 1); X! the next pointer must be a pointer to X! .Em char , X! and there must be enough room for all the characters X! (no terminating X! .Dv NUL X! is added). X! The usual skip of leading white space is suppressed. X! To skip white space first, use an explicit space in the format. X! .It Cm \&[ X! Matches a nonempty sequence of characters from the specified set X! of accepted characters; X! the next pointer must be a pointer to X! .Em char , X! and there must be enough room for all the characters in the string, X! plus a terminating X! .Dv NUL X! character. X! The usual skip of leading white space is suppressed. X! The string is to be made up of characters in X! (or not in) X! a particular set; X! the set is defined by the characters between the open bracket X! .Cm [ X character X! and a close bracket X! .Cm ] X character. X! The set X! .Em excludes X! those characters X! if the first character after the open bracket is a circumflex X! .Cm ^ . X! To include a close bracket in the set, X! make it the first character after the open bracket X! or the circumflex; X! any other position will end the set. X! The hyphen character X! .Cm - X! is also special; X! when placed between two other characters, X! it adds all intervening characters to the set. X! To include a hyphen, X! make it the last character before the final close bracket. X! For instance, X! .Ql [^]0-9-] X! means the set `everything except close bracket, zero through nine, X! and hyphen'. X! The string ends with the appearance of a character not in the X! (or, with a circumflex, in) set X! or when the field width runs out. X! .It Cm p X! Matches a pointer value (as printed by X! .Ql %p X! in X! .Xr printf 3 ) ; X! the next pointer must be a pointer to X! .Em void . X! .It Cm n X! Nothing is expected; X! instead, the number of characters consumed thus far from the input X! is stored through the next pointer, X! which must be a pointer to X! .Em int . X! This is X! .Em not X! a conversion, although it can be suppressed with the X! .Cm * X! flag. X! .El X! .Pp X! For backwards compatibility, X! other conversion characters (except X! .Ql \e0 ) X! are taken as if they were X! .Ql %d X! or, if uppercase, X! .Ql %ld , X! and a `conversion' of X! .Ql %\e0 X! causes an immediate return of X! .Dv EOF . X! The X! .Cm F X and X! .Cm X X! conversions will be changed in the future X! to conform to the X! .Tn ANSI X! C standard, X! after which they will act like X! .Cm f X and X! .Cm x X! respectively. X! .Pp X! .Sh RETURN VALUES X! These X! functions X! return X! the number of input items assigned, which can be fewer than provided X! for, or even zero, in the event of a matching failure. X! Zero X! indicates that, while there was input available, X! no conversions were assigned; X! typically this is due to an invalid input character, X! such as an alphabetic character for a X! .Ql %d X! conversion. X! The value X! .Dv EOF X! is returned if an input failure occurs before any conversion such as an X! end-of-file occurs. If an error or end-of-file occurs after conversion X! has begun, X! the number of conversions which were successfully completed is returned. X! .Sh SEE ALSO X! .Xr strtol 3 , X! .Xr strtoul 3 , X! .Xr strtod 3 , X! .Xr getc 3 , X! .Xr printf 3 X! .Sh STANDARDS X! The functions X! .Fn fscanf , X! .Fn scanf , X! and X! .Fn sscanf X! conform to X! .St -ansiC . X! .Sh HISTORY X! The functions X! .Fn vscanf , X! .Fn vsscanf X! and X! .Fn vfscanf X! are new to this release. X! .Sh BUGS X! The current situation with X! .Cm %F X! and X! .Cm %X X! conversions is unfortunate. X! .Pp X! All of the backwards compatibility formats will be removed in the future. X! .Pp X! Numerical strings are truncated to 512 characters; for example, X! .Cm %f X! and X! .Cm %d X! are implicitly X! .Cm %512f X! and X! .Cm %512d . X*** ./usr/src/man/man3/setbuf.3.old Tue Jul 29 22:22:34 1997 X--- ./usr/src/man/man3/setbuf.3 Fri Dec 26 00:57:25 2025 X*************** X*** 33,81 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)setbuf.3 8.1.1 (2.11BSD) 1997/7/28 X .\" X! .TH SETBUF 3 "July 28, 1997" X! .UC 4 X! .SH NAME X! .BR setbuf , X! .BR setbuffer , X! .BR setlinebuf , X! .BR setvbuf X! \-stream buffering operations X! .SH SYNOPSIS X! .nf X! .B #include X! .B #include X! .sp X! .B void X! \fBsetbuf\fP(\fIstream\fP, \fIbuf\fP) X! .SM X! \ \ \ \ \ \ \ FILE\ *stream; X! \ \ \ \ \ \ \ char\ *buf; X! .sp X! .B void X! \fBsetbuffer\fP(\fIstream\fP, \fIbuf\fP, \fIsize\fP) X! .SM X! \ \ \ \ \ \ \ FILE\ *stream; X! \ \ \ \ \ \ \ char\ *buf; X! \ \ \ \ \ \ \ size_t\ size; X! .sp X! .B int X! \fBsetlinebuf\fP(\fIstream\fP) X! .SM X! \ \ \ \ \ \ \ FILE\ *stream; X! .sp X! .B int X! .br X! \fBsetvbuf\fP(\fIstream\fP, \fIbuf\fP, \fImode\fP, \fIsize\fP) X! .SM X! \ \ \ \ \ \ \ FILE\ *stream; X! \ \ \ \ \ \ \ char\ *buf; X! \ \ \ \ \ \ \ int\ mode; X! \ \ \ \ \ \ \ size_t\ size X! .fi X! .SH DESCRIPTION X The three types of buffering available are unbuffered, block buffered, X and line buffered. X When an output stream is unbuffered, information appears on the X--- 33,60 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)setbuf.3 8.2 (2.11BSD) 2025/12/26 X .\" X! .Dd June 4, 1993 X! .Dt SETBUF 3 X! .Os BSD 4 X! .Sh NAME X! .Nm setbuf , X! .Nm setbuffer , X! .Nm setlinebuf , X! .Nm setvbuf X! .Nd stream buffering operations X! .Sh SYNOPSIS X! .Fd #include X! .Ft void X! .Fn setbuf "FILE *stream" "char *buf" X! .Ft void X! .Fn setbuffer "FILE *stream" "char *buf" "size_t size" X! .Ft int X! .Fn setlinebuf "FILE *stream" X! .Ft int X! .Fn setvbuf "FILE *stream" "char *buf" "int mode" "size_t size" X! .Sh DESCRIPTION X The three types of buffering available are unbuffered, block buffered, X and line buffered. X When an output stream is unbuffered, information appears on the X*************** X*** 85,152 **** X output or input is read from any stream attached to a terminal device X (typically stdin). X The function X! fflush(3) X may be used to force the block out early. X! (See fclose(3).) X! .PP X Normally all files are block buffered. X When the first X! I/O X operation occurs on a file, X! malloc(3) X is called, X and an optimally-sized buffer is obtained. X If a stream refers to a terminal X (as X! .I stdout X normally does) it is line buffered. X The standard error stream X! .I stderr X is always unbuffered. X! .PP X The X! .B setvbuf X function X may be used to alter the buffering behavior of a stream. X The X! .I mode X parameter must be one of the following three macros: X! .PP X! .nf X! .ta .5i 1.5i X! _IONBF unbuffered X! .sp X! _IOLBF line buffered X! .sp X! _IOFBF fully buffered X! .fi X! .PP X The X! .I size X parameter may be given as zero X to obtain deferred optimal-size buffer allocation as usual. X If it is not zero, X then except for unbuffered files, the X! .I buf X argument should point to a buffer at least X! .I size X bytes long; X this buffer will be used instead of the current buffer. X (If the X! .I size X argument X is not zero but X! .I buf X is X! NULL, X a buffer of the given size will be allocated immediately, X and released on close. X This is an extension to ANSI C; X portable code should use a size of 0 with any X! NULL buffer.) X! .PP X The X! .B setvbuf X function may be used at any time, X but may have peculiar side effects X (such as discarding input or flushing output) X--- 64,132 ---- X output or input is read from any stream attached to a terminal device X (typically stdin). X The function X! .Xr fflush 3 X may be used to force the block out early. X! (See X! .Xr fclose 3 . ) X! .Pp X Normally all files are block buffered. X When the first X! .Tn I/O X operation occurs on a file, X! .Xr malloc 3 X is called, X and an optimally-sized buffer is obtained. X If a stream refers to a terminal X (as X! .Em stdout X normally does) it is line buffered. X The standard error stream X! .Em stderr X is always unbuffered. X! .Pp X The X! .Fn setvbuf X function X may be used to alter the buffering behavior of a stream. X The X! .Fa mode X parameter must be one of the following three macros: X! .Bl -tag -width _IOFBF -offset indent X! .It Dv _IONBF X! unbuffered X! .It Dv _IOLBF X! line buffered X! .It Dv _IOFBF X! fully buffered X! .El X! .Pp X The X! .Fa size X parameter may be given as zero X to obtain deferred optimal-size buffer allocation as usual. X If it is not zero, X then except for unbuffered files, the X! .Fa buf X argument should point to a buffer at least X! .Fa size X bytes long; X this buffer will be used instead of the current buffer. X (If the X! .Fa size X argument X is not zero but X! .Fa buf X is X! .Dv NULL , X a buffer of the given size will be allocated immediately, X and released on close. X This is an extension to ANSI C; X portable code should use a size of 0 with any X! .Dv NULL X! buffer.) X! .Pp X The X! .Fn setvbuf X function may be used at any time, X but may have peculiar side effects X (such as discarding input or flushing output) X*************** X*** 153,223 **** X if the stream is ``active''. X Portable applications should call it only once on any given stream, X and before any X! I/O X is performed. X! .PP X The other three calls are, in effect, simply aliases for calls to X! .BR setvbuf . X Except for the lack of a return value, the X! .B setbuf X function is exactly equivalent to the call X! .PP X! .in +0.5i X! setvbuf(stream, buf, buf ? _IOFBF : _IONBF, BUFSIZ); X! .in -0.5i X! .PP X The X! .B setbuffer X function X is the same, except that the size of the buffer is up to the caller, X rather than being determined by the default X! BUFSIZ. X The X! .B setlinebuf X function X is exactly equivalent to the call: X! .PP X! .in +0.5i X! setvbuf(stream, (char *)NULL, _IOLBF, 0); X! .in -0.5i X! .SH RETURN VALUES X The X! .B setvbuf X! function returns 0 on success, or EOF X if the request cannot be honored X (note that the stream is still functional in this case). X! .PP X The X! .B setlinebuf X function returns what the equivalent X! .B setvbuf X would have returned. X! .SH SEE ALSO X! fopen(3), X! fclose(3), X! fread(3), X! malloc(3), X! puts(3), X! printf(3) X! .SH STANDARDS X The X! .B setbuf X and X! .B setvbuf X functions X conform to X! ANSI C X3.159\-1989 (``ANSI C''). X! .SH BUGS X The X! .B setbuffer X and X! .B setlinebuf X functions are not portable to versions of X! BSD X before X! 4.2BSD. X On X! 2BSD X systems, X! .B setbuf X! always uses a 1kb buffer size. X--- 133,202 ---- X if the stream is ``active''. X Portable applications should call it only once on any given stream, X and before any X! .Tn I/O X is performed. X! .Pp X The other three calls are, in effect, simply aliases for calls to X! .Fn setvbuf . X Except for the lack of a return value, the X! .Fn setbuf X function is exactly equivalent to the call X! .Pp X! .Dl "setvbuf(stream, buf, buf ? _IOFBF : _IONBF, BUFSIZ);" X! .Pp X The X! .Fn setbuffer X function X is the same, except that the size of the buffer is up to the caller, X rather than being determined by the default X! .Dv BUFSIZ . X The X! .Fn setlinebuf X function X is exactly equivalent to the call: X! .Pp X! .Dl "setvbuf(stream, (char *)NULL, _IOLBF, 0);" X! .Sh RETURN VALUES X The X! .Fn setvbuf X! function returns 0 on success, or X! .Dv EOF X if the request cannot be honored X (note that the stream is still functional in this case). X! .Pp X The X! .Fn setlinebuf X function returns what the equivalent X! .Fn setvbuf X would have returned. X! .Sh SEE ALSO X! .Xr fopen 3 , X! .Xr fclose 3 , X! .Xr fread 3 , X! .Xr malloc 3 , X! .Xr puts 3 , X! .Xr printf 3 X! .Sh STANDARDS X The X! .Fn setbuf X and X! .Fn setvbuf X functions X conform to X! .St -ansiC . X! .Sh BUGS X The X! .Fn setbuffer X and X! .Fn setlinebuf X functions are not portable to versions of X! .Bx X before X! .Bx 4.2 . X On X! .Bx 4.2 X! and X! .Bx 4.3 X systems, X! .Fn setbuf X! always uses a suboptimal buffer size and should be avoided. X*** ./usr/src/man/man3/stdio.3.old Sun Dec 14 17:07:22 1986 X--- ./usr/src/man/man3/stdio.3 Fri Dec 26 00:57:51 2025 X*************** X*** 1,179 **** 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! .\" @(#)stdio.3s 6.2 (Berkeley) 5/13/86 X .\" X! .TH STDIO 3S "May 13, 1986" X! .UC 4 X! .SH NAME X! stdio \- standard buffered input/output package X! .SH SYNOPSIS X! .B #include X! .PP X! .SM X! .B FILE X! .B *stdin; X! .br X! .SM X! .B FILE X! .B *stdout; X! .br X! .SM X! .B FILE X! .B *stderr; X! .SH DESCRIPTION X! The functions described in section 3S constitute a user-level buffering X! scheme. The in-line macros X! .I getc X and X! .IR putc (3S) X! handle characters quickly. The higher level routines X! .IR gets , X! .IR fgets , X! .IR scanf , X! .IR fscanf , X! .IR fread , X! .IR puts , X! .IR fputs , X! .IR printf , X! .IR fprintf , X! .IR fwrite X! all use X! .I getc X and X! .IR putc ; X! they can be freely intermixed. X! .PP X! A file with associated buffering is called a X! .IR stream , X! and is declared to be a pointer to a defined type X! .SM X! .BR FILE . X! .IR Fopen (3S) X! creates certain descriptive data for a stream X! and returns a pointer to designate the stream in all further transactions. X! There are three normally open streams with constant pointers declared in X! the include file and associated with the standard open files: X! .TP 10n X! .B stdin X! standard input file X! .br X! .ns X! .TP X! .B stdout X! standard output file X! .br X! .ns X! .TP X! .B stderr X! standard error file X! .PP X! A constant `pointer' X! .SM X! .B NULL X! (0) X! designates no stream at all. X! .PP X! An integer constant X! .SM X! .B EOF X! (\-1) is returned upon end of file or error by integer functions that X! deal with streams. X! .PP X! Any routine that uses the standard input/output package X! must include the header file X! .RI < stdio.h > X! of pertinent macro definitions. X! The functions and constants mentioned in sections labeled 3S X! are declared in the include file and need no further declaration. X! The constants, and the following `functions' are X! implemented as macros; redeclaration of these names is perilous: X! .IR getc , X! .IR getchar , X! .IR putc , X! .IR putchar , X! .IR feof , X! .IR ferror , X! .IR fileno . X! .SH "SEE ALSO" X! open(2), close(2), read(2), write(2), fread(3S), fseek(3S), f*(3S) X! .SH DIAGNOSTICS X! The value X! .SM X! .B EOF X! is returned uniformly to indicate that a X! .SM X! .B FILE X! pointer has not been initialized with X! .IR fopen , X! input (output) has been attempted on an output (input) stream, or a X! .SM X! .B FILE X! pointer designates corrupt or otherwise unintelligible X! .SM X! .B FILE X! data. X! .PP X! For purposes of efficiency, this implementation of the standard library X! has been changed to line buffer output to a terminal by default and attempts X! to do this transparently by flushing the output whenever a X! .IR read (2) X! from the standard input is necessary. This is almost always transparent, X! but may cause confusion or malfunctioning of programs which use X! standard i/o routines but use X! .IR read (2) X! themselves to read from the standard input. X! .PP X! In cases where a large amount of computation is done after printing X part of a line on an output terminal, it is necessary to X! .IR fflush (3S) X the standard output before going off and computing so that the output X will appear. X! .SH BUGS X The standard buffered functions do not interact well with certain other X! library and system functions, especially \fIvfork\fP and \fIabort\fP. X! .SH "LIST OF FUNCTIONS" X! .sp 2 X! .nf X! .ta \w'setlinebuf'u+2n +\w'setbuf.3s'u+10n X! \fIName\fP \fIAppears on Page\fP \fIDescription\fP X! .ta \w'setlinebuf'u+4n +\w'setbuf.3s'u+4n X! .sp 5p X! clearerr ferror.3s stream status inquiries X! fclose fclose.3s close or flush a stream X! fdopen fopen.3s open a stream X! feof ferror.3s stream status inquiries X! ferror ferror.3s stream status inquiries X! fflush fclose.3s close or flush a stream 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! 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! freopen fopen.3s open a stream X! fscanf scanf.3s formatted input conversion X! fseek fseek.3s reposition a stream X! ftell fseek.3s reposition a stream X! fwrite fread.3s buffered binary input/output X! getc getc.3s get character or word from stream X! getchar getc.3s get character or word from stream X! gets gets.3s get a string from a stream X! getw getc.3s get character or word from stream X! printf printf.3s formatted output conversion 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! rewind fseek.3s reposition a stream X! scanf scanf.3s formatted input conversion X! setbuf setbuf.3s assign buffering to a stream X! setbuffer setbuf.3s assign buffering to a stream X! setlinebuf setbuf.3s assign buffering to a stream X! sprintf printf.3s formatted output conversion X! sscanf scanf.3s formatted input conversion X! ungetc ungetc.3s push character back into input stream X! .fi X--- 1,287 ---- X! .\" Copyright (c) 1990, 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! .\" @(#)stdio.3 8.8 (2.11BSD) 2025/12/26 X! .\" X! .Dd April 19, 1994 X! .Dt STDIO 3 X! .Os BSD 4 X! .Sh NAME X! .Nm stdio X! .Nd standard input/output library functions X! .Sh SYNOPSIS X! .Fd #include X! .Fd FILE *stdin; X! .Fd FILE *stdout; X! .Fd FILE *stderr; X! .Sh DESCRIPTION X! The standard X! .Tn I/O X! library provides a simple and efficient buffered stream X! .Tn I/O X! interface. X! Input and ouput is mapped into logical data streams X! and the physical X! .Tn I/O X! characteristics are concealed. The functions and macros are listed X! below; more information is available from the individual man pages. X! .Pp X! A stream is associated with an external file (which may be a physical X! device) by X! .Em opening X! a file, which may involve creating a new file. Creating an X! existing file causes its former contents to be discarded. X! If a file can support positioning requests (such as a disk file, as opposed X! to a terminal) then a X! .Em file position indicator X! associated with the stream is positioned at the start of the file (byte X! zero), unless the file is opened with appended mode. If append mode X! is used, the position indicator will be placed the end-of-file. X! The position indicator is maintained by subsequent reads, writes X! and positioning requests. All input occurs as if the characters X! were read by successive calls to the X! .Xr fgetc 3 X! function; all ouput takes place as if all characters were X! read by successive calls to the X! .Xr fputc 3 X! function. X! .Pp X! A file is disassociated from a stream by X! .Em closing X! the file. X! Ouput streams are flushed (any unwritten buffer contents are transferred X! to the host environment) before the stream is disassociated from the file. X! The value of a pointer to a X! .Dv FILE X! object is indeterminate after a file is closed (garbage). X! .Pp X! A file may be subsequently reopened, by the same or another program X! execution, and its contents reclaimed or modified (if it can be repositioned X! at the start). If the main function returns to its original caller, or X! the X! .Xr exit 3 X! function is called, all open files are closed (hence all output X! streams are flushed) before program termination. Other methods X! of program termination, such as X! .Xr abort 3 X! do not bother about closing files properly. X! .Pp X! This implementation needs and makes X! no distinction between X! .Dq text X and X! .Dq binary X! streams. X! In effect, all streams are binary. X! No translation is performed and no extra padding appears on any stream. X! .Pp X! At program startup, three streams are predefined and need not be X! opened explicitly: X! .Bl -bullet -compact -offset indent X! .It X! .Em standard input X! (for reading conventional input), X! .It X! .Em standard output X! (for writing conventional input), and X! .It X! .Em standard error X! (for writing diagnostic output). X! .El X! These streams are abbreviated X! .Em stdin , stdout X and X! .Em stderr . X! Initially, the standard error stream X! is unbuffered; the standard input and output streams are X! fully buffered if and only if the streams do not refer to X! an interactive or X! .Dq terminal X! device, as determined by the X! .Xr isatty 3 X! function. X! In fact, X! .Em all X! freshly-opened streams that refer to terminal devices X! default to line buffering, and X! pending output to such streams is written automatically X! whenever an such an input stream is read. X! Note that this applies only to X! .Dq "true reads" ; X! if the read request can be satisfied by existing buffered data, X! no automatic flush will occur. X! In these cases, X! or when a large amount of computation is done after printing X part of a line on an output terminal, it is necessary to X! .Xr fflush 3 X the standard output before going off and computing so that the output X will appear. X! Alternatively, these defaults may be modified via the X! .Xr setvbuf 3 X! function. X! .Pp X! The X! .Nm stdio X! library is a part of the library X! .Xr libc X! and routines are automatically loaded as needed by the compilers X! .Xr cc 1 X! and X! .Xr pc 1 . X! The X! .Tn SYNOPSIS X! sections of the following manual pages indicate which include files X! are to be used, what the compiler declaration for the function X! looks like and which external variables are of interest. X! .Pp X! The following are defined as macros; X! these names may not be re-used X! without first removing their current definitions with X! .Dv #undef : X! .Dv BUFSIZ , X! .Dv EOF , X! .Dv FILENAME_MAX , X! .DV FOPEN_MAX , X! .Dv L_cuserid , X! .Dv L_ctermid , X! .Dv L_tmpnam, X! .Dv NULL , X! .Dv SEEK_END , X! .Dv SEEK_SET , X! .Dv SEE_CUR , X! .Dv TMP_MAX , X! .Dv clearerr , X! .Dv feof , X! .Dv ferror , X! .Dv fileno , X! .Dv freopen , X! .Dv fwopen , X! .Dv getc , X! .Dv getchar , X! .Dv putc , X! .Dv putchar , X! .Dv stderr , X! .Dv stdin , X! .Dv stdout . X! Function versions of the macro functions X! .Xr feof , X! .Xr ferror , X! .Xr clearerr , X! .Xr fileno , X! .Xr getc , X! .Xr getchar , X! .Xr putc , X! and X! .Xr putchar X! exist and will be used if the macros X! definitions are explicitly removed. X! .Sh SEE ALSO X! .Xr open 2 , X! .Xr close 2 , X! .Xr read 2 , X! .Xr write 2 X! .Sh BUGS X The standard buffered functions do not interact well with certain other X! library and system functions, especially X! .Xr vfork X! and X! .Xr abort . X! .Sh STANDARDS X! The X! .Nm stdio X! library conforms to X! .St -ansiC . X! .Sh LIST OF FUNCTIONS X! .Bl -column "Description" X! .Sy Function Description X! clearerr check and reset stream status X! fclose close a stream X! fdopen stream open functions X! feof check and reset stream status X! ferror check and reset stream status X! fflush flush a stream X! fgetc get next character or word from input stream X! fgetline get a line from a stream X! fgetpos reposition a stream X! fgets get a line from a stream X! fileno check and reset stream status X! fopen stream open functions X! fprintf formatted output conversion X! fpurge flush a stream X! fputc output a character or word to a stream X! fputs output a line to a stream X! fread binary stream input/output X! freopen stream open functions X! fropen open a stream X! fscanf input format conversion X! fseek reposition a stream X! fsetpos reposition a stream X! ftell reposition a stream X! funopen open a stream X! fwopen open a stream X! fwrite binary stream input/output X! getc get next character or word from input stream X! getchar get next character or word from input stream X! gets get a line from a stream X! getw get next character or word from input stream X! mkstemp create unique temporary file X! mktemp create unique temporary file X! perror system error messages X! printf formatted output conversion X! putc output a character or word to a stream X! putchar output a character or word to a stream X! puts output a line to a stream X! putw output a character or word to a stream X! remove remove directory entry X! rewind reposition a stream X! scanf input format conversion X! setbuf stream buffering operations X! setbuffer stream buffering operations X! setlinebuf stream buffering operations X! setvbuf stream buffering operations X! snprintf formatted output conversion X! sprintf formatted output conversion X! sscanf input format conversion X! strerror system error messages X! sys_errlist system error messages X! sys_nerr system error messages X! tempnam temporary file routines X! tmpfile temporary file routines X! tmpnam temporary file routines X! ungetc un-get character from input stream X! vfprintf formatted output conversion X! vfscanf input format conversion X! vprintf formatted output conversion X! vscanf input format conversion X! vsnprintf formatted output conversion X! vsprintf formatted output conversion X! vsscanf input format conversion X! .El X*** ./usr/src/man/man3/ungetc.3.old Sun Dec 14 17:07:18 1986 X--- ./usr/src/man/man3/ungetc.3 Fri Dec 26 01:01:10 2025 X*************** X*** 1,41 **** X! .\" @(#)ungetc.3s 6.1 (Berkeley) 5/15/85 X .\" X! .TH UNGETC 3S "May 15, 1985" X! .AT 3 X! .SH NAME X! ungetc \- push character back into input stream X! .SH SYNOPSIS X! .B #include X! .PP X! .B ungetc(c, stream) X! .br X! .SM X! .B FILE X! .B *stream; X! .SH DESCRIPTION X! .I Ungetc X! pushes the character X! .I c X! back on an input stream. That character will be returned by the next X! .I getc X! call on that stream. X! .I Ungetc X! returns X! .IR c . X! .PP X! One character of pushback is guaranteed provided X! something has been read from the stream and the stream is actually buffered. X! Attempts to push EOF are rejected. X! .PP X! .IR Fseek (3S) X! erases all memory of pushed back characters. X! .SH "SEE ALSO" X! getc(3S), X! setbuf(3S), X! fseek(3S) X! .SH DIAGNOSTICS X! .I Ungetc X returns X! .SM X! .B EOF X! if it can't push a character back. X--- 1,95 ---- X! .\" Copyright (c) 1990, 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" This code is derived from software contributed to Berkeley by X! .\" Chris Torek and the American National Standards Committee X3, X! .\" on Information Processing Systems. 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! .\" @(#)ungetc.3 8.2 (2.11BSD) 2025/12/26 X! .\" X! .Dd June 4, 1993 X! .Dt UNGETC 3 X! .Os X! .Sh NAME X! .Nm ungetc X! .Nd un-get character from input stream X! .Sh SYNOPSIS X! .Fd #include X! .Ft int X! .Fn ungetc "int c" "FILE *stream" X! .Sh DESCRIPTION X! The X! .Fn ungetc X! function pushes the character X! .Fa c X! (converted to an unsigned char) X! back onto the input stream pointed to by X! .Fa stream . X! The pushed-backed characters will be returned by subsequent reads on the X! stream (in reverse order). X! A successful intervening call, using the same stream, to one of the file X! positioning functions X! .Po X! .Xr fseek 3 , X! .Xr fsetpos 3 , X! or X! .Xr rewind 3 X! .Pc X! will discard the pushed back characters. X! .Pp X! One character of push-back is guaranteed, X! but as long as there is X! sufficient memory, an effectively infinite amount of pushback is allowed. X! .Pp X! If a character is successfully pushed-back, X! the end-of-file indicator for the stream is cleared. X! .Sh RETURN VALUES X! The X! .Fn ungetc X! function X returns X! the character pushed-back after the conversion, or X! .Dv EOF X! if the operation fails. X! If the value of the argument X! .Fa c X! character equals X! .Dv EOF , X! the operation will fail and the stream will remain unchanged. X! .Sh SEE ALSO X! .Xr getc 3 , X! .Xr fseek 3 , X! .Xr setvbuf 3 X! .Sh STANDARDS X! The X! .Fn ungetc X! function conforms to X! .St -ansiC . X*** ./usr/src/man/man4/Makefile.old Sat May 31 18:11:07 1997 X--- ./usr/src/man/man4/Makefile Mon Dec 8 13:22:58 2025 X*************** X*** 14,23 **** 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) 1997/5/31 X # X! DESTDIR= X! MDIR= ${DESTDIR}/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--- 14,22 ---- 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*************** X*** 34,40 **** X .SUFFIXES: .4 .0 X X .4.0: X! ${DESTDIR}/usr/man/manroff $*.4 > $*.0 X X all: ${OBJS} X X--- 33,39 ---- X .SUFFIXES: .4 .0 X X .4.0: X! /usr/man/manroff $*.4 > $*.0 X X all: ${OBJS} X X*************** X*** 42,48 **** X rm -f ${OBJS} X X install: all X! install -c -o bin -g bin -m 444 ${OBJS} ${MDIR} X rm -f ${MDIR}/dvhp.0 X ln ${MDIR}/xp.0 ${MDIR}/dvhp.0 X rm -f ${MDIR}/hp.0 X--- 41,47 ---- X rm -f ${OBJS} X X install: all X! install -c -o root -g staff -m 444 ${OBJS} ${MDIR} X rm -f ${MDIR}/dvhp.0 X ln ${MDIR}/xp.0 ${MDIR}/dvhp.0 X rm -f ${MDIR}/hp.0 X*** ./usr/src/man/man5/Makefile.old Wed Mar 20 22:42:05 1996 X--- ./usr/src/man/man5/Makefile Tue Dec 23 12:42:38 2025 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 5.4.3 (2.11BSD GTE) 1996/3/20 X # X MDIR= /usr/man/cat5 X SRCS= L-devices.5 L-dialcodes.5 L.aliases.5 L.cmds.5 L.sys.5 \ X! USERFILE.5 a.out.5 acct.5 aliases.5 core.5 dbx.5 \ X dir.5 disktab.5 dtab.5 dump.5 fs.5 fstab.5 gettytab.5 \ X group.5 hosts.5 map3270.5 networks.5 passwd.5 \ X phones.5 plot.5 printcap.5 protocols.5 remote.5 resolver.5 \ X--- 14,24 ---- 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/cat5 X SRCS= L-devices.5 L-dialcodes.5 L.aliases.5 L.cmds.5 L.sys.5 \ X! USERFILE.5 a.out.5 acct.5 aliases.5 core.5 \ X dir.5 disktab.5 dtab.5 dump.5 fs.5 fstab.5 gettytab.5 \ X group.5 hosts.5 map3270.5 networks.5 passwd.5 \ X phones.5 plot.5 printcap.5 protocols.5 remote.5 resolver.5 \ X*************** X*** 26,32 **** X syserrlst.5 \ X tzfile.5 utmp.5 uuencode.5 vfont.5 vgrindefs.5 X OBJS= L-devices.0 L-dialcodes.0 L.aliases.0 L.cmds.0 L.sys.0 \ X! USERFILE.0 a.out.0 acct.0 aliases.0 core.0 dbx.0 \ X dir.0 disktab.0 dtab.0 dump.0 fs.0 fstab.0 gettytab.0 \ X group.0 hosts.0 map3270.0 networks.0 passwd.0 \ X phones.0 plot.0 printcap.0 protocols.0 remote.0 resolver.0 \ X--- 26,32 ---- X syserrlst.5 \ X tzfile.5 utmp.5 uuencode.5 vfont.5 vgrindefs.5 X OBJS= L-devices.0 L-dialcodes.0 L.aliases.0 L.cmds.0 L.sys.0 \ X! USERFILE.0 a.out.0 acct.0 aliases.0 core.0 \ X dir.0 disktab.0 dtab.0 dump.0 fs.0 fstab.0 gettytab.0 \ X group.0 hosts.0 map3270.0 networks.0 passwd.0 \ X phones.0 plot.0 printcap.0 protocols.0 remote.0 resolver.0 \ X*************** X*** 37,43 **** X .SUFFIXES: .5 .0 X X .5.0: X! ${DESTDIR}/usr/man/manroff $*.5 > $*.0 X X all: _make_01 X X--- 37,43 ---- X .SUFFIXES: .5 .0 X X .5.0: X! /usr/man/manroff $*.5 > $*.0 X X all: _make_01 X X*************** X*** 47,59 **** X rm -f ${OBJS} X X install: _make_01 X! install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR} X! rm -f ${DESTDIR}${MDIR}/inode.0 X! ln ${DESTDIR}${MDIR}/fs.0 ${DESTDIR}${MDIR}/inode.0 X! rm -f ${DESTDIR}${MDIR}/dumpdates.0 X! ln ${DESTDIR}${MDIR}/dump.0 ${DESTDIR}${MDIR}/dumpdates.0 X! rm -f ${DESTDIR}${MDIR}/wtmp.0 X! ln ${DESTDIR}${MDIR}/utmp.0 ${DESTDIR}${MDIR}/wtmp.0 X X FRC: X X--- 47,59 ---- X rm -f ${OBJS} X X install: _make_01 X! install -c -o root -g staff -m 444 ${OBJS} ${MDIR} X! rm -f ${MDIR}/inode.0 X! ln ${MDIR}/fs.0 ${MDIR}/inode.0 X! rm -f ${MDIR}/dumpdates.0 X! ln ${MDIR}/dump.0 ${MDIR}/dumpdates.0 X! rm -f ${MDIR}/wtmp.0 X! ln ${MDIR}/utmp.0 ${MDIR}/wtmp.0 X X FRC: X X*** ./usr/src/man/man6/Makefile.old Fri Jan 26 02:50:48 1996 X--- ./usr/src/man/man6/Makefile Mon Dec 8 13:23:20 2025 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.1 (2.11BSD) 1996/01/26 X # X MDIR= /usr/man/cat6 X SRCS= aardvark.6 adventure.6 arithmetic.6 backgammon.6 banner.6 \ 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.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*************** X*** 31,37 **** X .SUFFIXES: .6 .0 X X .6.0: X! ${DESTDIR}/usr/man/manroff $*.6 > $*.0 X X all: _make_01 X X--- 31,37 ---- X .SUFFIXES: .6 .0 X X .6.0: X! /usr/man/manroff $*.6 > $*.0 X X all: _make_01 X X*************** X*** 41,50 **** X rm -f ${OBJS} X X install: _make_01 X! install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR} X! rm -f ${DESTDIR}${MDIR}/snscore.0 X! ln ${DESTDIR}${MDIR}/snake.0 ${DESTDIR}${MDIR}/snscore.0 X! rm -f ${DESTDIR}${MDIR}/cfscores.0 X! ln ${DESTDIR}${MDIR}/canfield.0 ${DESTDIR}${MDIR}/cfscores.0 X FRC: X X--- 41,50 ---- 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! rm -f ${MDIR}/cfscores.0 X! ln ${MDIR}/canfield.0 ${MDIR}/cfscores.0 X FRC: X X*** ./usr/src/man/man7/Makefile.old Tue Mar 24 15:07:02 2020 X--- ./usr/src/man/man7/Makefile Mon Dec 8 13:23:31 2025 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.5 (2.11BSD) 2020/3/24 X # X MDIR= /usr/man/cat7 X SRCS= ascii.7 environ.7 eqnchar.7 hier.7 hostname.7 intro.7 mailaddr.7 \ 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.6 (2.11BSD) 2025/11/25 X # X MDIR= /usr/man/cat7 X SRCS= ascii.7 environ.7 eqnchar.7 hier.7 hostname.7 intro.7 mailaddr.7 \ X*************** X*** 25,31 **** X .SUFFIXES: .7 .0 X X .7.0: X! ${DESTDIR}/usr/man/manroff $*.7 > $*.0 X X all: _make_01 X X--- 25,31 ---- X .SUFFIXES: .7 .0 X X .7.0: X! /usr/man/manroff $*.7 > $*.0 X X all: _make_01 X X*************** X*** 35,42 **** X rm -f ${OBJS} X X install: _make_01 X! install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR} X! rm -f ${DESTDIR}${MDIR}/miscellaneous.0 X! ln ${DESTDIR}${MDIR}/intro.0 ${DESTDIR}${MDIR}/miscellaneous.0 X X FRC: X--- 35,42 ---- X rm -f ${OBJS} X X install: _make_01 X! install -c -o root -g staff -m 444 ${OBJS} ${MDIR} X! rm -f ${MDIR}/miscellaneous.0 X! ln ${MDIR}/intro.0 ${MDIR}/miscellaneous.0 X X FRC: X*** ./usr/src/man/man8/Makefile.old Sun Aug 31 14:47:31 2025 X--- ./usr/src/man/man8/Makefile Mon Dec 8 13:23:54 2025 X*************** X*** 14,23 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.8 (2.11BSD) 2025/8/31 X # X MDIR= /usr/man/cat8 X! SRCS= XNSrouted.8 adduser.8 autoconfig.8 \ X bugfiler.8 crash.8 \ X boot.8 \ X drtest.8 dump.8 dumpdir.8 \ X--- 14,23 ---- 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*************** X*** 27,38 **** X makekey.8 \ X named.8 pac.8 \ X rc.8 rdump.8 \ X! routed.8 rrestore.8 \ X sendmail.8 \ X sticky.8 sync.8 \ X timed.8 timedc.8 uucico.8 \ X uuclean.8 uupoll.8 uusnap.8 uuxqt.8 X! OBJS= XNSrouted.0 adduser.0 autoconfig.0 \ X bugfiler.0 crash.0 \ X boot.0 \ X drtest.0 dump.0 dumpdir.0 \ X--- 27,38 ---- X makekey.8 \ X named.8 pac.8 \ X rc.8 rdump.8 \ X! routed.8 \ X sendmail.8 \ X sticky.8 sync.8 \ X timed.8 timedc.8 uucico.8 \ X uuclean.8 uupoll.8 uusnap.8 uuxqt.8 X! OBJS= adduser.0 autoconfig.0 \ X bugfiler.0 crash.0 \ X boot.0 \ X drtest.0 dump.0 dumpdir.0 \ X*************** X*** 42,48 **** X makekey.0 \ X named.0 pac.0 \ X rc.0 rdump.0 \ X! routed.0 rrestore.0 \ X sendmail.0 \ X sticky.0 sync.0 \ X timed.0 timedc.0 uucico.0 \ X--- 42,48 ---- X makekey.0 \ X named.0 pac.0 \ X rc.0 rdump.0 \ X! routed.0 \ X sendmail.0 \ X sticky.0 sync.0 \ X timed.0 timedc.0 uucico.0 \ X*************** X*** 51,57 **** X .SUFFIXES: .8 .0 X X .8.0: X! ${DESTDIR}/usr/man/manroff $*.8 > $*.0 X X all: _make_01 X X--- 51,57 ---- X .SUFFIXES: .8 .0 X X .8.0: X! /usr/man/manroff $*.8 > $*.0 X X all: _make_01 X X*************** X*** 61,68 **** X rm -f ${OBJS} X X install: _make_01 X! install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR} X! rm -f ${DESTDIR}${MDIR}/uucpd.0 X! ln ${DESTDIR}${MDIR}/uucico.0 ${DESTDIR}${MDIR}/uucpd.0 X X FRC: X--- 61,68 ---- X rm -f ${OBJS} X X install: _make_01 X! install -c -o root -g staff -m 444 ${OBJS} ${MDIR} X! rm -f ${MDIR}/uucpd.0 X! ln ${MDIR}/uucico.0 ${MDIR}/uucpd.0 X X FRC: X*** ./usr/src/man/man3f/Makefile.old Fri Jan 26 02:52:00 1996 X--- ./usr/src/man/man3f/Makefile Mon Dec 8 13:22:47 2025 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.1 (2.11BSD) 1996/01/26 X # X MDIR= /usr/man/cat3f 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.2 (2.11BSD) 2025/11/25 X # X MDIR= /usr/man/cat3f X X*************** X*** 35,41 **** X ttynam.0 unlink.0 wait.0 X X .3.0: X! ${DESTDIR}/usr/man/manroff $*.3 > $*.0 X X all: _make_01 X X--- 35,41 ---- X ttynam.0 unlink.0 wait.0 X X .3.0: X! /usr/man/manroff $*.3 > $*.0 X X all: _make_01 X X*************** X*** 45,192 **** X rm -f ${OBJS} X X install: _make_01 X! install -c -o bin -g bin -m 444 ${OBJS} ${DESTDIR}${MDIR} X! rm -f ${DESTDIR}${MDIR}/and.0 X! ln ${DESTDIR}${MDIR}/bit.0 ${DESTDIR}${MDIR}/and.0 X! rm -f ${DESTDIR}${MDIR}/lshift.0 X! ln ${DESTDIR}${MDIR}/bit.0 ${DESTDIR}${MDIR}/lshift.0 X! rm -f ${DESTDIR}${MDIR}/not.0 X! ln ${DESTDIR}${MDIR}/bit.0 ${DESTDIR}${MDIR}/not.0 X! rm -f ${DESTDIR}${MDIR}/or.0 X! ln ${DESTDIR}${MDIR}/bit.0 ${DESTDIR}${MDIR}/or.0 X! rm -f ${DESTDIR}${MDIR}/rshift.0 X! ln ${DESTDIR}${MDIR}/bit.0 ${DESTDIR}${MDIR}/rshift.0 X! rm -f ${DESTDIR}${MDIR}/xor.0 X! ln ${DESTDIR}${MDIR}/bit.0 ${DESTDIR}${MDIR}/xor.0 X! rm -f ${DESTDIR}${MDIR}/arc.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/arc.0 X! rm -f ${DESTDIR}${MDIR}/box.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/box.0 X! rm -f ${DESTDIR}${MDIR}/circle.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/circle.0 X! rm -f ${DESTDIR}${MDIR}/clospl.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/clospl.0 X! rm -f ${DESTDIR}${MDIR}/cont.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/cont.0 X! rm -f ${DESTDIR}${MDIR}/ctime.0 X! ln ${DESTDIR}${MDIR}/time.0 ${DESTDIR}${MDIR}/ctime.0 X! rm -f ${DESTDIR}${MDIR}/drand.0 X! ln ${DESTDIR}${MDIR}/rand.0 ${DESTDIR}${MDIR}/drand.0 X! rm -f ${DESTDIR}${MDIR}/erase.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/erase.0 X! rm -f ${DESTDIR}${MDIR}/fgetc.0 X! ln ${DESTDIR}${MDIR}/getc.0 ${DESTDIR}${MDIR}/fgetc.0 X! rm -f ${DESTDIR}${MDIR}/fputc.0 X! ln ${DESTDIR}${MDIR}/putc.0 ${DESTDIR}${MDIR}/fputc.0 X! rm -f ${DESTDIR}${MDIR}/fstat.0 X! ln ${DESTDIR}${MDIR}/stat.0 ${DESTDIR}${MDIR}/fstat.0 X! rm -f ${DESTDIR}${MDIR}/gmtime.0 X! ln ${DESTDIR}${MDIR}/time.0 ${DESTDIR}${MDIR}/gmtime.0 X! rm -f ${DESTDIR}${MDIR}/irand.0 X! ln ${DESTDIR}${MDIR}/rand.0 ${DESTDIR}${MDIR}/irand.0 X! rm -f ${DESTDIR}${MDIR}/label.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/label.0 X! rm -f ${DESTDIR}${MDIR}/line.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/line.0 X! rm -f ${DESTDIR}${MDIR}/linemd.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/linemd.0 X! rm -f ${DESTDIR}${MDIR}/lstat.0 X! ln ${DESTDIR}${MDIR}/stat.0 ${DESTDIR}${MDIR}/lstat.0 X! rm -f ${DESTDIR}${MDIR}/ltime.0 X! ln ${DESTDIR}${MDIR}/time.0 ${DESTDIR}${MDIR}/ltime.0 X! rm -f ${DESTDIR}${MDIR}/move.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/move.0 X! rm -f ${DESTDIR}${MDIR}/openpl.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/openpl.0 X! rm -f ${DESTDIR}${MDIR}/point.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/point.0 X! rm -f ${DESTDIR}${MDIR}/short.0 X! ln ${DESTDIR}${MDIR}/long.0 ${DESTDIR}${MDIR}/short.0 X! rm -f ${DESTDIR}${MDIR}/space.0 X! ln ${DESTDIR}${MDIR}/plot.0 ${DESTDIR}${MDIR}/space.0 X! rm -f ${DESTDIR}${MDIR}/symlnk.0 X! ln ${DESTDIR}${MDIR}/link.0 ${DESTDIR}${MDIR}/symlnk.0 X! rm -f ${DESTDIR}${MDIR}/dffrac.0 X! ln ${DESTDIR}${MDIR}/flmin.0 ${DESTDIR}${MDIR}/dffrac.0 X! rm -f ${DESTDIR}${MDIR}/dflmax.0 X! ln ${DESTDIR}${MDIR}/flmin.0 ${DESTDIR}${MDIR}/dflmax.0 X! rm -f ${DESTDIR}${MDIR}/dflmin.0 X! ln ${DESTDIR}${MDIR}/flmin.0 ${DESTDIR}${MDIR}/dflmin.0 X! rm -f ${DESTDIR}${MDIR}/dtime.0 X! ln ${DESTDIR}${MDIR}/etime.0 ${DESTDIR}${MDIR}/dtime.0 X! rm -f ${DESTDIR}${MDIR}/ffrac.0 X! ln ${DESTDIR}${MDIR}/flmin.0 ${DESTDIR}${MDIR}/ffrac.0 X! rm -f ${DESTDIR}${MDIR}/flmax.0 X! ln ${DESTDIR}${MDIR}/flmin.0 ${DESTDIR}${MDIR}/flmax.0 X! rm -f ${DESTDIR}${MDIR}/fortran.0 X! ln ${DESTDIR}${MDIR}/intro.0 ${DESTDIR}${MDIR}/fortran.0 X! rm -f ${DESTDIR}${MDIR}/ftell.0 X! ln ${DESTDIR}${MDIR}/fseek.0 ${DESTDIR}${MDIR}/ftell.0 X! rm -f ${DESTDIR}${MDIR}/inmax.0 X! ln ${DESTDIR}${MDIR}/flmin.0 ${DESTDIR}${MDIR}/inmax.0 X! rm -f ${DESTDIR}${MDIR}/itime.0 X! ln ${DESTDIR}${MDIR}/idate.0 ${DESTDIR}${MDIR}/itime.0 X! rm -f ${DESTDIR}${MDIR}/len.0 X! ln ${DESTDIR}${MDIR}/index.0 ${DESTDIR}${MDIR}/len.0 X! rm -f ${DESTDIR}${MDIR}/lnblnk.0 X! ln ${DESTDIR}${MDIR}/index.0 ${DESTDIR}${MDIR}/lnblnk.0 X! rm -f ${DESTDIR}${MDIR}/rindex.0 X! ln ${DESTDIR}${MDIR}/index.0 ${DESTDIR}${MDIR}/rindex.0 X! rm -f ${DESTDIR}${MDIR}/tclose.0 X! ln ${DESTDIR}${MDIR}/topen.0 ${DESTDIR}${MDIR}/tclose.0 X! rm -f ${DESTDIR}${MDIR}/tread.0 X! ln ${DESTDIR}${MDIR}/topen.0 ${DESTDIR}${MDIR}/tread.0 X! rm -f ${DESTDIR}${MDIR}/trewin.0 X! ln ${DESTDIR}${MDIR}/topen.0 ${DESTDIR}${MDIR}/trewin.0 X! rm -f ${DESTDIR}${MDIR}/tskipf.0 X! ln ${DESTDIR}${MDIR}/topen.0 ${DESTDIR}${MDIR}/tskipf.0 X! rm -f ${DESTDIR}${MDIR}/tstate.0 X! ln ${DESTDIR}${MDIR}/topen.0 ${DESTDIR}${MDIR}/tstate.0 X! rm -f ${DESTDIR}${MDIR}/twrite.0 X! ln ${DESTDIR}${MDIR}/topen.0 ${DESTDIR}${MDIR}/twrite.0 X! rm -f ${DESTDIR}${MDIR}/besj0.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/besj0.0 X! rm -f ${DESTDIR}${MDIR}/besj1.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/besj1.0 X! rm -f ${DESTDIR}${MDIR}/besjn.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/besjn.0 X! rm -f ${DESTDIR}${MDIR}/besy0.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/besy0.0 X! rm -f ${DESTDIR}${MDIR}/besy1.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/besy1.0 X! rm -f ${DESTDIR}${MDIR}/besyn.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/besyn.0 X! rm -f ${DESTDIR}${MDIR}/dbesj0.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/dbesj0.0 X! rm -f ${DESTDIR}${MDIR}/dbesj1.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/dbesj1.0 X! rm -f ${DESTDIR}${MDIR}/dbesjn.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/dbesjn.0 X! rm -f ${DESTDIR}${MDIR}/dbesy0.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/dbesy0.0 X! rm -f ${DESTDIR}${MDIR}/dbesy1.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/dbesy1.0 X! rm -f ${DESTDIR}${MDIR}/dbesyn.0 X! ln ${DESTDIR}${MDIR}/bessel.0 ${DESTDIR}${MDIR}/dbesyn.0 X! rm -f ${DESTDIR}${MDIR}/drandm.0 X! ln ${DESTDIR}${MDIR}/random.0 ${DESTDIR}${MDIR}/drandm.0 X! rm -f ${DESTDIR}${MDIR}/falloc.0 X! ln ${DESTDIR}${MDIR}/malloc.0 ${DESTDIR}${MDIR}/falloc.0 X! rm -f ${DESTDIR}${MDIR}/fpecnt.0 X! ln ${DESTDIR}${MDIR}/trpfpe.0 ${DESTDIR}${MDIR}/fpecnt.0 X! rm -f ${DESTDIR}${MDIR}/free.0 X! ln ${DESTDIR}${MDIR}/malloc.0 ${DESTDIR}${MDIR}/free.0 X! rm -f ${DESTDIR}${MDIR}/gerror.0 X! ln ${DESTDIR}${MDIR}/perror.0 ${DESTDIR}${MDIR}/gerror.0 X! rm -f ${DESTDIR}${MDIR}/getgid.0 X! ln ${DESTDIR}${MDIR}/getuid.0 ${DESTDIR}${MDIR}/getgid.0 X! rm -f ${DESTDIR}${MDIR}/iargc.0 X! ln ${DESTDIR}${MDIR}/getarg.0 ${DESTDIR}${MDIR}/iargc.0 X! rm -f ${DESTDIR}${MDIR}/ierrno.0 X! ln ${DESTDIR}${MDIR}/perror.0 ${DESTDIR}${MDIR}/ierrno.0 X! rm -f ${DESTDIR}${MDIR}/irandm.0 X! ln ${DESTDIR}${MDIR}/random.0 ${DESTDIR}${MDIR}/irandm.0 X! rm -f ${DESTDIR}${MDIR}/isatty.0 X! ln ${DESTDIR}${MDIR}/ttynam.0 ${DESTDIR}${MDIR}/isatty.0 X X FRC: X--- 45,192 ---- X rm -f ${OBJS} X X install: _make_01 X! install -c -o root -g staff -m 444 ${OBJS} ${MDIR} X! rm -f ${MDIR}/and.0 X! ln ${MDIR}/bit.0 ${MDIR}/and.0 X! rm -f ${MDIR}/lshift.0 X! ln ${MDIR}/bit.0 ${MDIR}/lshift.0 X! rm -f ${MDIR}/not.0 X! ln ${MDIR}/bit.0 ${MDIR}/not.0 X! rm -f ${MDIR}/or.0 X! ln ${MDIR}/bit.0 ${MDIR}/or.0 X! rm -f ${MDIR}/rshift.0 X! ln ${MDIR}/bit.0 ${MDIR}/rshift.0 X! rm -f ${MDIR}/xor.0 X! ln ${MDIR}/bit.0 ${MDIR}/xor.0 X! rm -f ${MDIR}/arc.0 X! ln ${MDIR}/plot.0 ${MDIR}/arc.0 X! rm -f ${MDIR}/box.0 X! ln ${MDIR}/plot.0 ${MDIR}/box.0 X! rm -f ${MDIR}/circle.0 X! ln ${MDIR}/plot.0 ${MDIR}/circle.0 X! rm -f ${MDIR}/clospl.0 X! ln ${MDIR}/plot.0 ${MDIR}/clospl.0 X! rm -f ${MDIR}/cont.0 X! ln ${MDIR}/plot.0 ${MDIR}/cont.0 X! rm -f ${MDIR}/ctime.0 X! ln ${MDIR}/time.0 ${MDIR}/ctime.0 X! rm -f ${MDIR}/drand.0 X! ln ${MDIR}/rand.0 ${MDIR}/drand.0 X! rm -f ${MDIR}/erase.0 X! ln ${MDIR}/plot.0 ${MDIR}/erase.0 X! rm -f ${MDIR}/fgetc.0 X! ln ${MDIR}/getc.0 ${MDIR}/fgetc.0 X! rm -f ${MDIR}/fputc.0 X! ln ${MDIR}/putc.0 ${MDIR}/fputc.0 X! rm -f ${MDIR}/fstat.0 X! ln ${MDIR}/stat.0 ${MDIR}/fstat.0 X! rm -f ${MDIR}/gmtime.0 X! ln ${MDIR}/time.0 ${MDIR}/gmtime.0 X! rm -f ${MDIR}/irand.0 X! ln ${MDIR}/rand.0 ${MDIR}/irand.0 X! rm -f ${MDIR}/label.0 X! ln ${MDIR}/plot.0 ${MDIR}/label.0 X! rm -f ${MDIR}/line.0 X! ln ${MDIR}/plot.0 ${MDIR}/line.0 X! rm -f ${MDIR}/linemd.0 X! ln ${MDIR}/plot.0 ${MDIR}/linemd.0 X! rm -f ${MDIR}/lstat.0 X! ln ${MDIR}/stat.0 ${MDIR}/lstat.0 X! rm -f ${MDIR}/ltime.0 X! ln ${MDIR}/time.0 ${MDIR}/ltime.0 X! rm -f ${MDIR}/move.0 X! ln ${MDIR}/plot.0 ${MDIR}/move.0 X! rm -f ${MDIR}/openpl.0 X! ln ${MDIR}/plot.0 ${MDIR}/openpl.0 X! rm -f ${MDIR}/point.0 X! ln ${MDIR}/plot.0 ${MDIR}/point.0 X! rm -f ${MDIR}/short.0 X! ln ${MDIR}/long.0 ${MDIR}/short.0 X! rm -f ${MDIR}/space.0 X! ln ${MDIR}/plot.0 ${MDIR}/space.0 X! rm -f ${MDIR}/symlnk.0 X! ln ${MDIR}/link.0 ${MDIR}/symlnk.0 X! rm -f ${MDIR}/dffrac.0 X! ln ${MDIR}/flmin.0 ${MDIR}/dffrac.0 X! rm -f ${MDIR}/dflmax.0 X! ln ${MDIR}/flmin.0 ${MDIR}/dflmax.0 X! rm -f ${MDIR}/dflmin.0 X! ln ${MDIR}/flmin.0 ${MDIR}/dflmin.0 X! rm -f ${MDIR}/dtime.0 X! ln ${MDIR}/etime.0 ${MDIR}/dtime.0 X! rm -f ${MDIR}/ffrac.0 X! ln ${MDIR}/flmin.0 ${MDIR}/ffrac.0 X! rm -f ${MDIR}/flmax.0 X! ln ${MDIR}/flmin.0 ${MDIR}/flmax.0 X! rm -f ${MDIR}/fortran.0 X! ln ${MDIR}/intro.0 ${MDIR}/fortran.0 X! rm -f ${MDIR}/ftell.0 X! ln ${MDIR}/fseek.0 ${MDIR}/ftell.0 X! rm -f ${MDIR}/inmax.0 X! ln ${MDIR}/flmin.0 ${MDIR}/inmax.0 X! rm -f ${MDIR}/itime.0 X! ln ${MDIR}/idate.0 ${MDIR}/itime.0 X! rm -f ${MDIR}/len.0 X! ln ${MDIR}/index.0 ${MDIR}/len.0 X! rm -f ${MDIR}/lnblnk.0 X! ln ${MDIR}/index.0 ${MDIR}/lnblnk.0 X! rm -f ${MDIR}/rindex.0 X! ln ${MDIR}/index.0 ${MDIR}/rindex.0 X! rm -f ${MDIR}/tclose.0 X! ln ${MDIR}/topen.0 ${MDIR}/tclose.0 X! rm -f ${MDIR}/tread.0 X! ln ${MDIR}/topen.0 ${MDIR}/tread.0 X! rm -f ${MDIR}/trewin.0 X! ln ${MDIR}/topen.0 ${MDIR}/trewin.0 X! rm -f ${MDIR}/tskipf.0 X! ln ${MDIR}/topen.0 ${MDIR}/tskipf.0 X! rm -f ${MDIR}/tstate.0 X! ln ${MDIR}/topen.0 ${MDIR}/tstate.0 X! rm -f ${MDIR}/twrite.0 X! ln ${MDIR}/topen.0 ${MDIR}/twrite.0 X! rm -f ${MDIR}/besj0.0 X! ln ${MDIR}/bessel.0 ${MDIR}/besj0.0 X! rm -f ${MDIR}/besj1.0 X! ln ${MDIR}/bessel.0 ${MDIR}/besj1.0 X! rm -f ${MDIR}/besjn.0 X! ln ${MDIR}/bessel.0 ${MDIR}/besjn.0 X! rm -f ${MDIR}/besy0.0 X! ln ${MDIR}/bessel.0 ${MDIR}/besy0.0 X! rm -f ${MDIR}/besy1.0 X! ln ${MDIR}/bessel.0 ${MDIR}/besy1.0 X! rm -f ${MDIR}/besyn.0 X! ln ${MDIR}/bessel.0 ${MDIR}/besyn.0 X! rm -f ${MDIR}/dbesj0.0 X! ln ${MDIR}/bessel.0 ${MDIR}/dbesj0.0 X! rm -f ${MDIR}/dbesj1.0 X! ln ${MDIR}/bessel.0 ${MDIR}/dbesj1.0 X! rm -f ${MDIR}/dbesjn.0 X! ln ${MDIR}/bessel.0 ${MDIR}/dbesjn.0 X! rm -f ${MDIR}/dbesy0.0 X! ln ${MDIR}/bessel.0 ${MDIR}/dbesy0.0 X! rm -f ${MDIR}/dbesy1.0 X! ln ${MDIR}/bessel.0 ${MDIR}/dbesy1.0 X! rm -f ${MDIR}/dbesyn.0 X! ln ${MDIR}/bessel.0 ${MDIR}/dbesyn.0 X! rm -f ${MDIR}/drandm.0 X! ln ${MDIR}/random.0 ${MDIR}/drandm.0 X! rm -f ${MDIR}/falloc.0 X! ln ${MDIR}/malloc.0 ${MDIR}/falloc.0 X! rm -f ${MDIR}/fpecnt.0 X! ln ${MDIR}/trpfpe.0 ${MDIR}/fpecnt.0 X! rm -f ${MDIR}/free.0 X! ln ${MDIR}/malloc.0 ${MDIR}/free.0 X! rm -f ${MDIR}/gerror.0 X! ln ${MDIR}/perror.0 ${MDIR}/gerror.0 X! rm -f ${MDIR}/getgid.0 X! ln ${MDIR}/getuid.0 ${MDIR}/getgid.0 X! rm -f ${MDIR}/iargc.0 X! ln ${MDIR}/getarg.0 ${MDIR}/iargc.0 X! rm -f ${MDIR}/ierrno.0 X! ln ${MDIR}/perror.0 ${MDIR}/ierrno.0 X! rm -f ${MDIR}/irandm.0 X! ln ${MDIR}/random.0 ${MDIR}/irandm.0 X! rm -f ${MDIR}/isatty.0 X! ln ${MDIR}/ttynam.0 ${MDIR}/isatty.0 X X FRC: X*** ./usr/src/man/Makefile.old Mon Jan 18 11:33:44 1993 X--- ./usr/src/man/Makefile Mon Dec 8 13:20:42 2025 X*************** X*** 14,25 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.3 (Berkeley) 7/9/88 X # X! DIRS= man1 man2 man3 man3f man4 man5 man6 \ X! man7 man8 X! CDIRS= cat1 cat2 cat3 cat3f cat4 cat5 cat6 \ X! cat7 cat8 X LCDIRS= cat1 cat2 cat3 cat4 cat5 cat6 cat7 cat8 X X all: scriptinstall FRC X--- 14,23 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4 (2.11BSD) 2025/11/25 X # X! DIRS= man1 man2 man3 man3f man4 man5 man6 man7 man8 X! CDIRS= cat1 cat2 cat3 cat3f cat4 cat5 cat6 cat7 cat8 X LCDIRS= cat1 cat2 cat3 cat4 cat5 cat6 cat7 cat8 X X all: scriptinstall FRC X*************** X*** 28,39 **** X done X X scriptinstall: FRC X! install -c -o bin -g bin -m 444 makewhatis.sed ${DESTDIR}/usr/man/makewhatis.sed X! install -c -o bin -g bin -m 755 manroff ${DESTDIR}/usr/man/manroff X X install: FRC X for i in ${DIRS}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ X done X cp /dev/null whatis_tmp X for dirext in /usr/man/cat* ; do \ X--- 26,37 ---- X done X X scriptinstall: FRC X! install -c -o root -g staff -m 444 makewhatis.sed /usr/man/makewhatis.sed X! install -c -o root -g staff -m 755 manroff /usr/man/manroff X X install: FRC X for i in ${DIRS}; do \ X! (cd $$i; make ${MFLAGS} install); \ X done X cp /dev/null whatis_tmp X for dirext in /usr/man/cat* ; do \ X*************** X*** 44,51 **** X done X sort -u whatis_tmp > whatis.db X -rm -f whatis_tmp X! install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/man/whatis X! install -c -o bin -g bin -m 444 man.template ${DESTDIR}/usr/man/man.template X X clean: FRC X for i in ${DIRS}; do \ X--- 42,49 ---- X done X sort -u whatis_tmp > whatis.db X -rm -f whatis_tmp X! install -c -o root -g staff -m 444 whatis.db /usr/man/whatis X! install -c -o root -g staff -m 444 man.template /usr/man/man.template X X clean: FRC X for i in ${DIRS}; do \ X*** ./usr/src/new/nntp/doc/Makefile.old Mon Jan 18 11:35:01 1993 X--- ./usr/src/new/nntp/doc/Makefile Sat Nov 29 06:37:26 2025 X*************** X*** 1,12 **** X! # X! # Makefile for manual pages for nntp service X! # X # Created by Stan Barber; Mon Apr 6 13:25:27 CDT 1987 X- # X X- # change these to suit your system X- ROFF = ditroff X- PRINTER = lw301 X MANDIR = /usr/man X X # from here down should be constant X--- 1,7 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/29 X! X # Created by Stan Barber; Mon Apr 6 13:25:27 CDT 1987 X X MANDIR = /usr/man X X # from here down should be constant X*************** X*** 28,48 **** X $(EXTRACT) getactive.dst getactive.1 X X install: $(MANPAGES) X! mv nntpd.8c ${DESTDIR}$(MANDIR)/man8/nntpd.8c X! mv mkgrdates.8c ${DESTDIR}$(MANDIR)/man8/mkgrdates.8c X! mv getactive.1 ${DESTDIR}$(MANDIR)/man1/getactive.1 X! mv nntpxmit.1 ${DESTDIR}$(MANDIR)/man1/nntpxmit.1 X X- print: $(MANPAGES) X- $(ROFF) $(MACROS) -P$(PRINTER) nntpd.8c X- $(ROFF) $(MACROS) -P$(PRINTER) mkgrdates.8c X- $(ROFF) $(MACROS) -P$(PRINTER) getactive.1 X- X clean: X -rm -f $(MANPAGES) X- X- distrib: clean X- rm -rf SCCS X- X- check: X- sccs check X--- 23,32 ---- X $(EXTRACT) getactive.dst getactive.1 X X install: $(MANPAGES) X! mv nntpd.8c $(MANDIR)/man8/nntpd.8c X! mv mkgrdates.8c $(MANDIR)/man8/mkgrdates.8c X! mv getactive.1 $(MANDIR)/man1/getactive.1 X! mv nntpxmit.1 $(MANDIR)/man1/nntpxmit.1 X X clean: X -rm -f $(MANPAGES) X*** ./usr/src/new/nntp/inews/Makefile.old Tue Jul 19 10:46:46 1988 X--- ./usr/src/new/nntp/inews/Makefile Sat Nov 29 06:38:14 2025 X*************** X*** 1,6 **** X! # X! # Makefile for pseudo-inews X! # X X SRCS = inews.c uname.c ../common/clientlib.c ../common/version.c X OBJS = inews.o uname.o ../common/clientlib.o ../common/version.o X--- 1,4 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/29 X X SRCS = inews.c uname.c ../common/clientlib.c ../common/version.c X OBJS = inews.o uname.o ../common/clientlib.o ../common/version.o X*************** X*** 8,15 **** X X CFLAGS = -O X X- DESTDIR = /usr/local/lib/rn X- X inews: $(OBJS) $(HFILES) X $(CC) $(CFLAGS) $(OBJS) -o inews X X--- 6,11 ---- X*************** X*** 24,42 **** X mv version.o ../common/version.o X X install: inews X! cp inews ${DESTDIR}/inews X! chmod 755 ${DESTDIR}/inews X X clean: X -rm -f ${OBJS} inews make*.out X- X- distrib: clean X- rm -f make.out X- rm -rf SCCS X- X- check: X- sccs check X- sccs prt -y *.[ch] > /dev/null X X lint: X lint ${SRCS} ${HFILES} X--- 20,30 ---- X mv version.o ../common/version.o X X install: inews X! cp inews /usr/new/rn/inews X! chmod 755 /usr/new/lib/rn/inews X X clean: X -rm -f ${OBJS} inews make*.out X X lint: X lint ${SRCS} ${HFILES} X*** ./usr/src/new/nntp/server/Makefile.old Sun Nov 17 23:43:41 1996 X--- ./usr/src/new/nntp/server/Makefile Sat Nov 29 06:39:00 2025 X*************** X*** 1,6 **** X! # X! # Makefile for NNTP server X! # X X SRVROBJ = main.o serve.o access.o access_inet.o access_dnet.o active.o \ X ahbs.o globals.o group.o help.o ihave.o list.o misc.o netaux.o \ X--- 1,4 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/29 X X SRVROBJ = main.o serve.o access.o access_inet.o access_dnet.o active.o \ X ahbs.o globals.o group.o help.o ihave.o list.o misc.o netaux.o \ X*************** X*** 25,32 **** X X # Where nntpd is going to live X X- DESTDIR = /news/lib X- X all: nntpd X X nntpd: ${SRVROBJ} ${SRVRINC} X--- 23,28 ---- X*************** X*** 35,42 **** X ${SRVROBJ}: ${SRVRINC} X X install: nntpd X! cp nntpd ${DESTDIR}/nntpd X! chmod 711 ${DESTDIR}/nntpd X X lint: X lint ${SRVRSRC} X--- 31,38 ---- X ${SRVROBJ}: ${SRVRINC} X X install: nntpd X! cp nntpd /usr/new/lib/nntpd X! chmod 711 /usr/new/lib/nntpd X X lint: X lint ${SRVRSRC} X*************** X*** 43,55 **** X X clean: X -rm -f *.o nntpd make*.out a.out X- X- distrib: clean X- rm -rf SCCS save tags X- X- check: X- sccs check X- sccs prt -y *.[ch] > /dev/null X X tags: ${SRVRSRC} ${SRVRINC} X ctags ${SRVRSRC} ${SRVRINC} X--- 39,44 ---- X*** ./usr/src/new/nntp/support/Makefile.old Mon Jan 18 11:35:01 1993 X--- ./usr/src/new/nntp/support/Makefile Mon Dec 8 23:05:39 2025 X*************** X*** 1,11 **** X! # X! # Makefile for NNTP server support programs X! # X X OBJS = mkgrdates.o X- X SRCS = mkgrdates.c X- X HFILES = ../common/conf.h X X CFLAGS= -O X--- 1,7 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X OBJS = mkgrdates.o X SRCS = mkgrdates.c X HFILES = ../common/conf.h X X CFLAGS= -O X*************** X*** 12,19 **** X X # Where these support programs will live X X! DESTDIR = X! BIN = /usr/lib/news X X all: mkgrdates X X--- 8,14 ---- X X # Where these support programs will live X X! BIN = /usr/new/lib/news X X all: mkgrdates X X*************** X*** 21,27 **** X $(CC) ${CFLAGS} -o mkgrdates mkgrdates.o X X install: mkgrdates X! install -s -m 755 ${DESTDIR}${BIN}/mkgrdates X X lint: X lint mkgrdates.c X--- 16,22 ---- X $(CC) ${CFLAGS} -o mkgrdates mkgrdates.o X X install: mkgrdates X! install -c -s -m 755 ${BIN}/mkgrdates X X lint: X lint mkgrdates.c X*************** X*** 28,40 **** X X clean: X -rm -f *.o mkgrdates X- X- distrib: clean X- rm -rf SCCS old X- X- check: X- sccs check X- sccs prt -y *.[ch] > /dev/null X X tags: ${SRCS} ${HFILES} X ctags ${SRCS} ${HFILES} X--- 23,28 ---- X*** ./usr/src/new/nntp/xmit/Makefile.old Tue Jan 12 02:37:34 1988 X--- ./usr/src/new/nntp/xmit/Makefile Sat Nov 29 06:40:56 2025 X*************** X*** 1,3 **** X--- 1,5 ---- X+ # Makefile 2.0 (2.11BSD) 2025/11/29 X+ # X # Compile time flags: X # BSD4_2 - We're a 4.2 BSD UNIX (or later, includes Ultrix) X # 4.2BSD accounting X*************** X*** 25,31 **** X # -lresolv needed below for pyramids X LIBS= X CFLAGS= -O ${DEFS} X- DESTDIR=/usr/lib/news X HFILES=nntpxmit.h get_tcp_conn.h llist.h sysexits.h nntp.h X SRC=nntpxmit.c remote.c llist.c get_tcp_conn.c X OBJ=nntpxmit.o remote.o llist.o get_tcp_conn.o X--- 27,32 ---- X*************** X*** 49,56 **** X cc ${CFLAGS} -o shlock shlock.c X X install: nntpxmit shlock X! cp nntpxmit shlock ${DESTDIR} X! cd ${DESTDIR}; chmod 755 nntpxmit shlock X @echo "You'll have to edit nntpsend for local config." X X lint: X--- 50,56 ---- X cc ${CFLAGS} -o shlock shlock.c X X install: nntpxmit shlock X! install -c -s -m 755 nntpxmit shlock /usr/new/lib/news X @echo "You'll have to edit nntpsend for local config." X X lint: X*************** X*** 58,71 **** X X clean: X rm -f nntpxmit shlock ${OBJ} X- X- dist: nntpxmit.tar X- X- nntpxmit.tar: ${FILES} X- tar cvhf nntpxmit.tar ${FILES} X- X- # two for Phil Lapsley X- distrib: clean X- X- check:; X- X--- 58,60 ---- X*** ./usr/src/new/m11/Makefile.old Tue Nov 20 21:39:44 2001 X--- ./usr/src/new/m11/Makefile Mon Dec 8 23:05:53 2025 X*************** X*** 1,12 **** X! # m11 Makefile. Revised 2001/11/20 X! # X # Note that the pathname for macxrf is wired into exec.m11 ... X X- DESTDIR= X- X M11= ./m11.x X X! SEPFLAG=-i X MFLAGS= X X .SUFFIXES: .m11 .obj X--- 1,10 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! X # Note that the pathname for macxrf is wired into exec.m11 ... X X M11= ./m11.x X X! LDFLAGS=-i X MFLAGS= X X .SUFFIXES: .m11 .obj X*************** X*** 29,48 **** X all: m11 macxrf m11.0 X X m11: ${OBJS} X! l11 -ls ${SEPFLAG} ${OBJS} X mv exec.out m11 X X macxrf: macxrf.c X! cc ${SEPFLAG} -O -w -o macxrf macxrf.c X X install: all m11.0 X! install -s m11 ${DESTDIR}/usr/new/m11 X! install -s macxrf ${DESTDIR}/usr/new/macxrf X! install -c -m 444 -o bin -g bin m11.0 ${DESTDIR}/usr/new/man/cat1/m11.0 X X cmp: all X! cmp m11 ${DESTDIR}/usr/new/m11 X! cmp macxrf ${DESTDIR}/usr/new/macxrf X X clean: X rm -f *.obj *.lst *.map m11 macxrf *.0 X--- 27,46 ---- X all: m11 macxrf m11.0 X X m11: ${OBJS} X! l11 -ls ${LDFLAGS} ${OBJS} X mv exec.out m11 X X macxrf: macxrf.c X! cc ${LDFLAGS} -O -w -o macxrf macxrf.c X X install: all m11.0 X! install -c -s m11 /usr/new/m11 X! install -c -s macxrf /usr/new/macxrf X! install -c -m 444 -o root -g staff m11.0 /usr/new/man/cat1/m11.0 X X cmp: all X! cmp m11 /usr/new/m11 X! cmp macxrf /usr/new/macxrf X X clean: X rm -f *.obj *.lst *.map m11 macxrf *.0 X*** ./usr/src/new/ansi/Makefile.old Sun Jan 28 19:37:36 1996 X--- ./usr/src/new/ansi/Makefile Mon Dec 8 23:06:00 2025 X*************** X*** 1,8 **** X! # @(#)Makefile 5.3.1 (2.11BSD) 1996/1/28 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG=-i X X SRCS= ansitape.c vmsprep.c X MSRC= ansitape.1 vmsprep.1 X--- 1,7 ---- X! # @(#)Makefile 5.3.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS=-i X X SRCS= ansitape.c vmsprep.c X MSRC= ansitape.1 vmsprep.1 X*************** X*** 16,31 **** X all: ansitape vmsprep ${MOBJ} X X ansitape: ansitape.o X! cc ${SEPFLAG} -o ansitape ansitape.o X X vmsprep: vmsprep.o X! cc ${SEPFLAG} -o vmsprep vmsprep.o X X install: vmsprep ansitape ${MOBJ} X! install -s ansitape ${DESTDIR}/usr/new/ansitape X! install -s vmsprep ${DESTDIR}/usr/new/vmsprep X! install -c -m 444 -o bin -g bin ansitape.0 ${DESTDIR}/usr/new/man/cat1 X! install -c -m 444 -o bin -g bin vmsprep.0 ${DESTDIR}/usr/new/man/cat1 X X clean: X rm -f *.o a.out core errs makefile.bak Makefile.bak ansitape vmsprep *.0 X--- 15,30 ---- X all: ansitape vmsprep ${MOBJ} X X ansitape: ansitape.o X! cc ${LDFLAGS} -o ansitape ansitape.o X X vmsprep: vmsprep.o X! cc ${LDFLAGS} -o vmsprep vmsprep.o X X install: vmsprep ansitape ${MOBJ} X! install -c -s ansitape /usr/new/ansitape X! install -c -s vmsprep /usr/new/vmsprep X! install -c -m 444 -o root -g staff ansitape.0 /usr/new/man/cat1 X! install -c -m 444 -o root -g staff vmsprep.0 /usr/new/man/cat1 X X clean: X rm -f *.o a.out core errs makefile.bak Makefile.bak ansitape vmsprep *.0 X*** ./usr/src/new/ansi/ansitape.c.old Sat Jan 1 00:44:42 1994 X--- ./usr/src/new/ansi/ansitape.c Fri Dec 26 01:07:21 2025 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)ansitape.c 1.1 (2.11BSD) 2025/12/26"; X+ #endif X+ X #include X #include X #include X*************** X*** 155,164 **** X tape = open(device,wflag?O_RDWR:O_RDONLY,NULL); X if(tape<0) { X perror(device); X! printf(stderr,"tape not accessable - check if drive online and write ring present\n"); X exit(1); X } X! rewind(tape); X filenum=1; X casefix(tapename); X X--- 159,168 ---- X tape = open(device,wflag?O_RDWR:O_RDONLY,NULL); X if(tape<0) { X perror(device); X! fprintf(stderr,"tape not accessable - check if drive online and write ring present\n"); X exit(1); X } X! arewind(tape); X filenum=1; X casefix(tapename); X X*************** X*** 211,217 **** X writetm(tape); X writetm(tape); X } X! rewind(tape); X close(tape); X if(vflag && (tflag || xflag)) { X fprintf(stdout," read %d files in %d blocks (%d lines, %d chars)\n", X--- 215,221 ---- X writetm(tape); X writetm(tape); X } X! arewind(tape); X close(tape); X if(vflag && (tflag || xflag)) { X fprintf(stdout," read %d files in %d blocks (%d lines, %d chars)\n", X*************** X*** 311,317 **** X if(success != blocksize) { X perror("tape"); X fprintf(stderr," hard write error: write aborted\n"); X! rewind(tape); X exit(1); X } X obuf=obufstart; X--- 315,321 ---- X if(success != blocksize) { X perror("tape"); X fprintf(stderr," hard write error: write aborted\n"); X! arewind(tape); X exit(1); X } X obuf=obufstart; X*************** X*** 349,355 **** X if(success != blocksize) { X perror("tape"); X fprintf(stderr," hard write error: write aborted\n"); X! rewind(tape); X exit(1); X } X numblock++; X--- 353,359 ---- X if(success != blocksize) { X perror("tape"); X fprintf(stderr," hard write error: write aborted\n"); X! arewind(tape); X exit(1); X } X numblock++; X*************** X*** 375,381 **** X ioctl(tape,MTIOCTOP,&mtop); X } X X! rewind(tape) X int tape; X { X struct mtop mtop; X--- 379,385 ---- X ioctl(tape,MTIOCTOP,&mtop); X } X X! arewind(tape) X int tape; X { X struct mtop mtop; X*** ./usr/src/new/jove/recover.c.old Mon Mar 14 18:38:05 1988 X--- ./usr/src/new/jove/recover.c Fri Dec 26 01:16:37 2025 X*************** X*** 4,9 **** X--- 4,12 ---- 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 Usage: recover [-d directory] [-syscrash] X*************** X*** 32,42 **** X #include X #include X X- #ifndef L_SET X- # define L_SET 0 X- # define L_INCR 1 X- #endif X- X char blk_buf[BUFSIZ]; X int nleft; X FILE *ptrs_fp; X--- 35,40 ---- X*************** X*** 356,362 **** X char *quest, X *answer; X { X! if (stdin->_cnt <= 0) { X printf("%s", quest); X fflush(stdout); X } X--- 354,360 ---- X char *quest, X *answer; X { X! if (stdin->_r <= 0) { X printf("%s", quest); X fflush(stdout); X } X*** ./usr/src/new/jove/Makefile.old Sun Nov 17 23:40:43 1996 X--- ./usr/src/new/jove/Makefile Tue Dec 23 09:27:37 2025 X*************** X*** 1,3 **** X--- 1,5 ---- 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 # is provided to you without charge, and with no warranty. You may give # X*************** X*** 17,23 **** X # JOVE, RECOVER and TEACHJOVE. MANEXT is the extension for the man pages, X # e.g., jove.1 or jove.l or jove.m. X X- DESTDIR = X TMPDIR = /tmp X LIBDIR = /usr/new/lib/jove X BINDIR = /usr/new X--- 19,24 ---- X*************** X*** 26,86 **** X SHELL = /bin/csh X X # These should all just be right if the above ones are. X! JOVE = $(DESTDIR)$(BINDIR)/jove X! TEACHJOVE = $(DESTDIR)$(BINDIR)/teachjove X! RECOVER = $(DESTDIR)$(LIBDIR)/recover X! PORTSRV = $(DESTDIR)$(LIBDIR)/portsrv X! JOVERC = $(DESTDIR)$(LIBDIR)/.joverc X! CMDS.DOC = $(DESTDIR)$(LIBDIR)/cmds.doc X! TEACH-JOVE = $(DESTDIR)$(LIBDIR)/teach-jove X! JOVEM = $(DESTDIR)$(MANDIR)/jove.$(MANEXT) X! TEACHJOVEM = $(DESTDIR)$(MANDIR)/teachjove.$(MANEXT) X X- # Select the right libraries for your system. X- # 2.10BSD:LIBS = -ltermcap X- # v7: LIBS = -ltermcap X- # 4.1BSD: LIBS = -ltermcap -ljobs X- # 4.2BSD: LIBS = -ltermcap X- # 4.3BSD: LIBS = -ltermcap X- # SysV Rel. 2: LIBS = -lcurses X- # SCO Xenix: LIBS = -ltermcap -lx X- X LIBS = -ltermcap X X! # If you are not VMUNIX (vax running Berkeley Version 4), you must specify X! # the -i flags (split I/D space) and maybe the -x option (for adb to work). X! # 2.10BSD:LDFLAGS = X! # v7: LDFLAGS = X! # 4.1BSD: LDFLAGS = X! # 4.2BSD: LDFLAGS = X! # 4.3BSD: LDFLAGS = X! # SysV Rel. 2: LDFLAGS = -Ml X! # SCO Xenix: LDFLAGS = -Ml -F 3000 X! # X! # SEPFLAG should be: X! # not on a PDP-11: SEPFLAG = X! # PDP-11 with separate I&D: SEPFLAG = -i X! # PDP-11 without separate I&D: SEPFLAG = -n X! # X! X! LDFLAGS = X! X! SEPFLAG = -i X! X! # for SCO Xenix, set X! # MEMFLAGS = -Mle X! # CFLAGS = -LARGE -O -F 3000 -K -Mle (say -Mle2 for an 80286) X! X CFLAGS = -O X X! BASESEG = funcdefs.o keymaps.o ask.o buf.o ctype.o delete.o \ X! disp.o insert.o io.o jove.o marks.o misc.o re.o \ X! screen.o tune.o util.o version.o X! OVLAY1 = abbrev.o rec.o paragraph.o fmt.o malloc.o vars.o table.o X! OVLAY2 = c.o wind.o fp.o X OVLAY3 = extend.o macros.o X OVLAY4 = iproc.o re1.o argcount.o X! OVLAY5 = proc.o scandir.o term.o case.o move.o X X OBJECTS = $(BASESEG) $(OVLAY1) $(OVLAY2) $(OVLAY3) $(OVLAY4) $(OVLAY5) X X--- 27,55 ---- X SHELL = /bin/csh X X # These should all just be right if the above ones are. X! JOVE = $(BINDIR)/jove X! TEACHJOVE = $(BINDIR)/teachjove X! RECOVER = $(LIBDIR)/recover X! PORTSRV = $(LIBDIR)/portsrv X! JOVERC = $(LIBDIR)/.joverc X! CMDS.DOC = $(LIBDIR)/cmds.doc X! TEACH-JOVE = $(LIBDIR)/teach-jove X! JOVEM = $(MANDIR)/jove.$(MANEXT) X! TEACHJOVEM = $(MANDIR)/teachjove.$(MANEXT) X X LIBS = -ltermcap X X! LDFLAGS = -i X CFLAGS = -O 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*************** X*** 105,125 **** X SUPPORT = teachjove.c recover.c setmaps.c portsrv.c keymaps.txt \ X macvert.c menumaps.txt mjovers.Hqx X X! BACKUPS = $(HEADERS) $(C_SRC) $(DOCS) $(SUPPORT) $(MISC) X X- all: sdate xjove recover teachjove portsrv macvert edate X- X- sdate: X- @echo "**** make started at `date` ****" X- X- edate: X- @echo "**** make completed at `date` ****" X- X xjove: $(OBJECTS) X! -if [ X$(SEPFLAG) = X ]; then \ X! $(CC) $(LDFLAGS) -o xjove $(OBJECTS) $(LIBS); \ X! elif [ X$(SEPFLAG) = X-i ]; then \ X! ld $(SEPFLAG) $(LDFLAGS) -X /lib/crt0.o \ X -Z $(OVLAY1) \ X -Z $(OVLAY2) \ X -Z $(OVLAY3) \ X--- 74,83 ---- 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 xjove: $(OBJECTS) X! ld $(LDFLAGS) -X /lib/crt0.o \ X -Z $(OVLAY1) \ X -Z $(OVLAY2) \ X -Z $(OVLAY3) \ X*************** X*** 126,160 **** X -Z $(OVLAY4) \ X -Z $(OVLAY5) \ X -Y $(BASESEG) \ X! -o xjove $(LIBS) -lc; \ X! else \ X! echo "Need overlay scheme for nonseparate I&D"; \ X! fi X @-size xjove X X- gjove: $(OBJECTS) X- ld -X /lib/gcrt0.o -o gjove $(OBJECTS) -lc $(LIBS) X- @-size gjove X- X- ovjove: $(OBJECTS) X- ld $(SEPFLAG) $(LDFLAGS) -X /lib/crt0.o \ X- -Z $(OVLAY1) \ X- -Z $(OVLAY2) \ X- -Z $(OVLAY3) \ X- -Z $(OVLAY4) \ X- -Z $(OVLAY5) \ X- -Y $(BASESEG) \ X- -o xjove $(LIBS) -lc; \ X- @-size xjove X- X portsrv: portsrv.o X! $(CC) $(LDFLAGS) -o portsrv $(SEPFLAG) portsrv.o $(LIBS) X X recover: recover.o tune.o rec.h temp.h X! $(CC) $(LDFLAGS) -o recover $(SEPFLAG) recover.o tune.o $(LIBS) X X teachjove: teachjove.o X! $(CC) $(LDFLAGS) -o teachjove $(SEPFLAG) teachjove.o $(LIBS) X X setmaps: setmaps.o funcdefs.c X $(CC) $(LDFLAGS) -o setmaps setmaps.o X--- 84,100 ---- X -Z $(OVLAY4) \ X -Z $(OVLAY5) \ X -Y $(BASESEG) \ X! -o xjove $(LIBS) -lc X @-size xjove X X portsrv: portsrv.o X! $(CC) $(LDFLAGS) -o portsrv portsrv.o $(LIBS) X X recover: recover.o tune.o rec.h temp.h X! $(CC) $(LDFLAGS) -o recover recover.o tune.o $(LIBS) X X teachjove: teachjove.o X! $(CC) $(LDFLAGS) -o teachjove teachjove.o $(LIBS) X X setmaps: setmaps.o funcdefs.c X $(CC) $(LDFLAGS) -o setmaps setmaps.o X*************** X*** 189,201 **** X macvert: macvert.c X $(CC) $(CFLAGS) -o macvert macvert.c X X- # install doesn't work for Xenix (no install program) X- X install: DESTDIR_LIBDIR TEACH-JOVE CMDS.DOC JOVERC PORTSRV RECOVER JOVE \ X TEACHJOVE JOVEM TEACHJOVEM X X DESTDIR_LIBDIR: X! -mkdir $(DESTDIR)$(LIBDIR) X X TEACH-JOVE: doc/teach-jove X install -c -m 644 doc/teach-jove $(TEACH-JOVE) X--- 129,139 ---- X macvert: macvert.c X $(CC) $(CFLAGS) -o macvert macvert.c X X install: DESTDIR_LIBDIR TEACH-JOVE CMDS.DOC JOVERC PORTSRV RECOVER JOVE \ X TEACHJOVE JOVEM TEACHJOVEM X X DESTDIR_LIBDIR: X! -mkdir $(LIBDIR) X X TEACH-JOVE: doc/teach-jove X install -c -m 644 doc/teach-jove $(TEACH-JOVE) X*************** X*** 239,247 **** X chmod 444 $(TEACHJOVEM) X chown bin.bin $(TEACHJOVEM) X X- echo: X- @echo $(C-FILES) $(HEADERS) X- X lint: X lint -n $(C_SRC) tune.c keymaps.c X @echo Done X--- 177,182 ---- X*************** X*** 249,298 **** X tags: X ctags -w $(C_SRC) $(HEADERS) iproc-ptys.c X X- ciall: X- ci $(BACKUPS) X- X- coall: X- co $(BACKUPS) X- X- jove.shar: X- shar $(BACKUPS) > jove.shar X- X- backup: $(BACKUPS) X- tar chf backup $(BACKUPS) X- X- tape-backup: X- tar c $(BACKUPS) X- X- srcdownload: X- kermit -s $(SUPPORT) $(MISC) $(HEADERS) $(C_SRC) X- X- docdownload: X- kermit -s $(DOCS) X- X- touch: X- touch $(OBJECTS) X- X clean: X rm -f a.out core *.o keymaps.c tune.c xjove portsrv recover setmaps \ X teachjove macvert X X! # This version only works under 4.3BSD X! #depend: X! # for i in ${SOURCES} ; do \ X! # cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ X! # { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! # else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! # else rec = rec " " $$2 } } \ X! # END { print rec } ' >> makedep; done X! # echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! # echo '$$r makedep' >>eddep X! # echo 'w' >>eddep X! # cp Makefile Makefile.bak X! # ed - Makefile < eddep X! # rm eddep makedep X! # echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! # echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! # echo '# see make depend above' >> Makefile X! # X! ## DO NOT DELETE THIS LINE -- make depend uses it X--- 184,192 ---- 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 teachjove macvert X X! depend: ${SOURCES} X! mkdep ${CFLAGS} ${SOURCES} X*** ./usr/src/new/l11/Makefile.old Mon Aug 24 22:27:09 1987 X--- ./usr/src/new/l11/Makefile Mon Dec 8 23:06:08 2025 X*************** X*** 1,6 **** X! DESTDIR= X X! SEPFLAG=-i X CFLAGS= -O X X HDRS= link.h X--- 1,6 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X! LDFLAGS=-i X CFLAGS= -O X X HDRS= link.h X*************** X*** 8,23 **** X OBJS= in.o link.o pass2.o sup.o X X l11: ${OBJS} X! cc -o $@ ${SEPFLAG} ${OBJS} X X- obint: obint.o in.o sup.o X- cc -o $@ ${SEPFLAG} obint.o in.o sup.o X- X install: l11 X! install -s l11 ${DESTDIR}/usr/new/l11 X X cmp: l11 X! cmp l11 ${DESTDIR}/usr/new/l11 X X lint: X lint link.c pass2.c in.c sup.c > FLUFF X--- 8,20 ---- X OBJS= in.o link.o pass2.o sup.o X X l11: ${OBJS} X! cc -o $@ ${LDFLAGS} ${OBJS} X X install: l11 X! install -c -s l11 /usr/new/l11 X X cmp: l11 X! cmp l11 /usr/new/l11 X X lint: X lint link.c pass2.c in.c sup.c > FLUFF X*************** X*** 26,32 **** X ctags $< X X clean: X! rm -f *.o l11 obint tags core X X in.o: in.c link.h X link.o: link.c link.h X--- 23,29 ---- X ctags $< X X clean: X! rm -f *.o l11 tags FLUFF X X in.o: in.c link.h X link.o: link.c link.h X*** ./usr/src/new/l11/link.c.old Wed Oct 23 17:09:11 1996 X--- ./usr/src/new/l11/link.c Fri Dec 26 01:18:20 2025 X*************** X*** 1,5 **** X # include "link.h" X! char *sprintf(),*strcpy(), *ctime(), *strsub(), *tack(), *lalloc(); X WORD getword(); X #include X X--- 1,9 ---- 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*** ./usr/src/new/l11/pass2.c.old Fri Dec 10 22:13:09 1982 X--- ./usr/src/new/l11/pass2.c Fri Dec 26 01:19:45 2025 X*************** X*** 1,7 **** X # include "link.h" X # define MAXREG 8 X WORD getword(); X- char *sprintf(); X X X /******************** variables with global scope ************************/ X--- 1,10 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)pass2.c 1.11 (2.11BSD) 2025/12/26"; X+ #endif X+ X # include "link.h" X # define MAXREG 8 X WORD getword(); X X X /******************** variables with global scope ************************/ X*** ./usr/src/new/pathalias/Makefile.old Sat Jan 23 00:03:54 1993 X--- ./usr/src/new/pathalias/Makefile Mon Dec 8 15:33:53 2025 X*************** X*** 1,4 **** X! #!/bin/make -f X # pathalias -- by steve bellovin, as told to peter honeyman X X ### configuration section X--- 1,5 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! X # pathalias -- by steve bellovin, as told to peter honeyman X X ### configuration section X*************** X*** 8,23 **** X DBM = -ldbm X # or if you roll your own ... X # DBM = dbm.o X- ### X- # where is getopt (if not in the c library)? X- # GETOPT = getopt.o X ### end of configuration section X X X CC = cc X CFLAGS = -O -DSTATIC=static X! SEPFLAG = -i X! LDFLAGS = $(GETOPT) $(SEPFLAG) X YFLAGS = -d X X OBJ = addlink.o addnode.o getstruct.o local.o main.o mapit.o mapaux.o mem.o \ X--- 9,20 ---- X DBM = -ldbm X # or if you roll your own ... X # DBM = dbm.o X ### end of configuration section X X X CC = cc X CFLAGS = -O -DSTATIC=static X! LDFLAGS = -i X YFLAGS = -d X X OBJ = addlink.o addnode.o getstruct.o local.o main.o mapit.o mapaux.o mem.o \ X*************** X*** 55,63 **** X clean: X rm -f *.o a.out core tags y.tab.? parse.c pathalias arpatxt makedb *.0 X X- clobber: clean X- rm -f pathalias makedb arpatxt X- X tags: $(SRC) $(HDRS) X ctags -w $(HDRS) $(SRC) X X--- 52,57 ---- X*************** X*** 70,76 **** X lint arpatxt.c X X install: pathalias makedb arpatxt pathalias.0 X! install -s pathalias ${DESTDIR}/usr/new X! install -s makedb ${DESTDIR}/usr/new X! install -s arpatxt ${DESTDIR}/usr/new X! install -c -m 444 -o bin -g bin pathalias.0 ${DESTDIR}/usr/new/man/cat1 X--- 64,70 ---- X lint arpatxt.c X X install: pathalias makedb arpatxt pathalias.0 X! install -c -s -m 755 -o root pathalias /usr/new X! install -c -s -m 755 -o root makedb /usr/new X! install -c -s -m 755 -o root arpatxt /usr/new X! install -c -m 444 -o root -g staff pathalias.0 /usr/new/man/cat1 X*** ./usr/src/new/bm/Makefile.old Sun Jan 28 19:39:26 1996 X--- ./usr/src/new/bm/Makefile Mon Dec 8 23:08:38 2025 X*************** X*** 1,10 **** X! # X! # bm Makefile - revised 1996/1/28 X! # X! DESTDIR= X X CFLAGS = -O X! SEPFLAG = -i X X HDRS= Extern.h bm.h X SRCS= Execute.c GetPatFile.c Global.c MakeDesc.c MakeSkip.c MatchFound.c \ X--- 1,7 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X CFLAGS = -O X! LDFLAGS = -i X X HDRS= Extern.h bm.h X SRCS= Execute.c GetPatFile.c Global.c MakeDesc.c MakeSkip.c MatchFound.c \ X*************** X*** 18,28 **** X /usr/man/manroff $*.1 > $*.0 X X bm: ${OBJS} bm.0 X! cc -o $@ ${SEPFLAG} ${OBJS} X X install: bm bm.0 X! install -s bm ${DESTDIR}/usr/new/bm X! install -c -m 444 -o bin -g bin bm.0 ${DESTDIR}/usr/new/man/cat1/bm.0 X X tags: ${HDRS} ${SRCS} X ctags $< X--- 15,25 ---- X /usr/man/manroff $*.1 > $*.0 X X bm: ${OBJS} bm.0 X! cc -o $@ ${LDFLAGS} ${OBJS} X X install: bm bm.0 X! install -c -s -m 755 bm /usr/new/bm X! install -c -m 444 -o root -g staff bm.0 /usr/new/man/cat1/bm.0 X X tags: ${HDRS} ${SRCS} X ctags $< X*** ./usr/src/new/rcs/src/Makefile.old Sun Mar 22 10:14:52 2020 X--- ./usr/src/new/rcs/src/Makefile Mon Dec 8 23:07:37 2025 X*************** X*** 1,4 **** X! # Makefile 2.0 2020/3/20 X # X # Copyright (C) 1982 by Walter F. Tichy X # Purdue University 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*************** X*** 27,33 **** X # Figure out where to put the modified diff commands, and X # install them. (Read the instructions in the Make-files). X # Define DIFF accordingly X- DESTDIR = X DIFF = /bin/diff X X # 2. Figure out where to put the RCS commands; define RCSDIR accordingly. X--- 27,32 ---- X*************** X*** 58,65 **** X X # 6. Decide what loader flags you need, and define LDFLAGS accordingly. X # On the Vax you need none, on PDP-11s with split i/d you need -i. X! SEPFLAG = -i X! LDFLAGS = ${SEPFLAG} X X # 7. RCS can maintain a log of the use of the co and ci commands. If you X # want the logging, you must X--- 57,63 ---- X X # 6. Decide what loader flags you need, and define LDFLAGS accordingly. X # On the Vax you need none, on PDP-11s with split i/d you need -i. X! LDFLAGS = -i X X # 7. RCS can maintain a log of the use of the co and ci commands. If you X # want the logging, you must X*************** X*** 77,83 **** X # On the PDP-11, define SMALLOG (-DSMALLOG in DEFINES) to reduce the X # maximum size of the log message and save memory. X # X! DEFINES= $(OS) -DSTRICT_LOCKING=$(LOCKING) -DDIFF='"${DESTDIR}$(DIFF)"' -DMERGE='"${DESTDIR}$(MERGE)"' -DTARGETDIR='"${DESTDIR}$(RCSDIR)"' -DSMALLOG X CFLAGS = -O $(DEFINES) X LINT = lint -c -u -Dlint $(DEFINES) X X--- 75,81 ---- X # On the PDP-11, define SMALLOG (-DSMALLOG in DEFINES) to reduce the X # maximum size of the log message and save memory. X # X! DEFINES= $(OS) -DSTRICT_LOCKING=$(LOCKING) -DDIFF='"$(DIFF)"' -DMERGE='"$(MERGE)"' -DTARGETDIR='"$(RCSDIR)"' -DSMALLOG X CFLAGS = -O $(DEFINES) X LINT = lint -c -u -Dlint $(DEFINES) X X*************** X*** 130,156 **** X partime.o maketime.o co.o ci.o rcs.o rlog.o rcsutil.o: time.h X X install: all X! # Save the old commands if you have any. X! # -cd ${DESTDIR}$(RCSDIR); mv $(RCSCOMMANDS) ${DESTDIR}$(OLDDIR) X! ${INSTALL} -m 775 -o bin -g bin -s ci ${DESTDIR}$(RCSDIR) X! ${INSTALL} -m 775 -o bin -g bin -s ident ${DESTDIR}$(RCSDIR) X! ${INSTALL} -m 775 -o bin -g bin -s rcs ${DESTDIR}$(RCSDIR) X! ${INSTALL} -m 775 -o bin -g bin -s rcsdiff ${DESTDIR}$(RCSDIR) X! ${INSTALL} -m 775 -o bin -g bin -s rcsmerge ${DESTDIR}$(RCSDIR) X! ${INSTALL} -m 775 -o bin -g bin -s rlog ${DESTDIR}$(RCSDIR) X! ${INSTALL} -m 775 -o bin -g bin -s co ${DESTDIR}$(RCSDIR) X! ${INSTALL} -m 775 -o bin -g bin -c merge ${DESTDIR}$(RCSDIR) X! # ${INSTALL} -m 775 -o bin -g bin -c rcsclean ${DESTDIR}$(RCSDIR) X! # ${INSTALL} -m 775 -o bin -g bin -c rcsfreeze.sh ${DESTDIR}${RCSDIR}/rcsfreeze X! ${INSTALL} -m 775 -o bin -g bin -c sccstorcs ${DESTDIR}$(RCSDIR) X X installog: installsnoop install X X installsnoop: snoop X! install -s snoop ${DESTDIR}$(SNOOP) X! chmod u+s ${DESTDIR}$(SNOOP) X! touch ${DESTDIR}$(SNOOPFILE) X! chmod 644 ${DESTDIR}$(SNOOPFILE) X # CAUTION: You may have to do a chown of SNOOP and SNOOPFILE (if not owned by root). X lint: ci.lint co.lint ident.lint rlog.lint rcs.lint rcsdiff.lint rcsmerge.lint snoop.lint X X--- 128,152 ---- X partime.o maketime.o co.o ci.o rcs.o rlog.o rcsutil.o: time.h X X install: all X! ${INSTALL} -m 755 -o root -g staff -c -s ci $(RCSDIR) X! ${INSTALL} -m 755 -o root -g staff -c -s ident $(RCSDIR) X! ${INSTALL} -m 755 -o root -g staff -c -s rcs $(RCSDIR) X! ${INSTALL} -m 755 -o root -g staff -c -s rcsdiff $(RCSDIR) X! ${INSTALL} -m 755 -o root -g staff -c -s rcsmerge $(RCSDIR) X! ${INSTALL} -m 755 -o root -g staff -c -s rlog $(RCSDIR) X! ${INSTALL} -m 755 -o root -g staff -c -s co $(RCSDIR) X! ${INSTALL} -m 755 -o root -g staff -c merge $(RCSDIR) X! # ${INSTALL} -m 755 -o root -g staff -c rcsclean $(RCSDIR) X! # ${INSTALL} -m 755 -o root -g staff -c rcsfreeze.sh ${RCSDIR}/rcsfreeze X! ${INSTALL} -m 755 -o root -g staff -c sccstorcs $(RCSDIR) X X installog: installsnoop install X X installsnoop: snoop X! install -c -m 755 -s snoop $(SNOOP) X! chmod u+s $(SNOOP) X! touch $(SNOOPFILE) X! chmod 644 $(SNOOPFILE) X # CAUTION: You may have to do a chown of SNOOP and SNOOPFILE (if not owned by root). X lint: ci.lint co.lint ident.lint rlog.lint rcs.lint rcsdiff.lint rcsmerge.lint snoop.lint X X*** ./usr/src/new/rcs/src/rcslex.c.old Thu Feb 18 14:00:20 1988 X--- ./usr/src/new/rcs/src/rcslex.c Fri Dec 26 01:50:18 2025 X*************** X*** 1,10 **** X /* X * RCS file input X */ X! #ifndef lint X! static char rcsid[]= "$Id: rcslex.c,v 4.4 87/12/18 11:44:47 narten Exp $ Purdue CS"; X #endif X! /********************************************************************************* X * Lexical Analysis. X * Character mapping table, X * hashtable, Lexinit, nextlex, getlex, getkey, X--- 1,10 ---- 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 * hashtable, Lexinit, nextlex, getlex, getkey, X*************** X*** 12,19 **** X * checkid, serror, fatserror, error, faterror, warn, diagnose X * fflsbuf, puts, fprintf X * Testprogram: define LEXDB X! ********************************************************************************* X! * X * Copyright (C) 1982 by Walter F. Tichy X * Purdue University X * Computer Science Department X--- 12,19 ---- X * checkid, serror, fatserror, error, faterror, warn, diagnose X * fflsbuf, puts, fprintf X * Testprogram: define LEXDB X! ******************************************************************************* X! * X * Copyright (C) 1982 by Walter F. Tichy X * Purdue University X * Computer Science Department X*************** X*** 72,78 **** X X X #include "rcsbase.h" X- #include X X X X--- 72,77 ---- X*************** X*** 611,617 **** X * Same routine as _flsbuf in stdio, but aborts program on error. X */ X { register result; X! if ((result=_flsbuf(c,iop))==EOF) X faterror("write error"); X return result; X } X--- 610,616 ---- X * Same routine as _flsbuf in stdio, but aborts program on error. X */ X { register result; X! if ((result=__swbuf(c,iop))==EOF) X faterror("write error"); X return result; X } X*************** X*** 634,643 **** X X X X! fprintf(iop, fmt, va_alist) X! FILE *iop; X! char *fmt; X! va_dcl X /* Function: formatted output. Same as fprintf in stdio, X * but aborts program on error X */ X--- 633,639 ---- X X X X! fprintf(FILE *iop, char *fmt, ...) X /* Function: formatted output. Same as fprintf in stdio, X * but aborts program on error X */ X*************** X*** 645,656 **** X register int value; X va_list ap; X X! va_start(ap); X! #ifdef VFPRINTF X VOID vfprintf(iop, fmt, ap); X- #else X- _doprnt(fmt, ap, iop); X- #endif VFPRINTF X if (ferror(iop)) { X faterror("write error"); X value = EOF; X--- 641,648 ---- X register int value; X va_list ap; X X! va_start(ap, fmt); X VOID vfprintf(iop, fmt, ap); X if (ferror(iop)) { X faterror("write error"); X value = EOF; X*** ./usr/src/new/rcs/src/rcsutil.c.old Thu Oct 2 23:53:29 1997 X--- ./usr/src/new/rcs/src/rcsutil.c Fri Dec 26 01:51:24 2025 X*************** X*** 2,8 **** X * RCS utilities X */ X #if !defined(lint) && defined(DOSCCS) X! static char rcsid[]= "$Id: rcsutil.c,v 4.3.1 97/10/2 10:40:22 sms Exp $"; X #endif X /***************************************************************************** X ***************************************************************************** X--- 2,8 ---- 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*** 298,305 **** X register int rcount, wcount; X X /* write the rest of the buffer to outf */ X! while ((--inf->_cnt)>=0) { X! VOID putc(*inf->_ptr++&0377,outf); X } X if (fflush(outf) == EOF) { X faterror("write error"); X--- 298,305 ---- X register int rcount, wcount; 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*** ./usr/src/new/rcs/src/sccstorcs.c.old Sat Jan 1 03:35:50 1994 X--- ./usr/src/new/rcs/src/sccstorcs.c Fri Dec 26 01:52:20 2025 X*************** X*** 1,5 **** X static char *RCSid = X! "$Header: /usr/src/new/rcs/src/RCS/sccstorcs.c,v 1.4.1 94/1/1 21:12:11 root Exp $"; X X /* X * SCCSTORCS - build RCS file from SCCS file preserving deltas. 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*************** X*** 78,84 **** X char *fmt; X { X fprintf (stderr, "sccstorcs: "); X! _doprnt(fmt, &args, stderr); X exit (1); X } X X--- 78,84 ---- X char *fmt; X { X fprintf (stderr, "sccstorcs: "); X! fprintf (stderr, fmt, args); X exit (1); X } X X*** ./usr/src/new/rcs/src/ident.c.old Thu Feb 18 13:51:26 1988 X--- ./usr/src/new/rcs/src/ident.c Fri Dec 26 01:40:13 2025 X*************** X*** 1,12 **** X! /* X! * RCS identification operation X! */ X! #ifndef lint X! static char rcsid[]= X! "$Header: /arthur/src/local/bin/rcs/src/RCS/ident.c,v 4.4 87/10/23 17:09:57 narten Exp $Purdue CS"; X #endif X /***************************************************************************** X- ***************************************************************************** X * X * Copyright (C) 1982 by Walter F. Tichy X * Purdue University X--- 1,9 ---- 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 * X * Copyright (C) 1982 by Walter F. Tichy X * Purdue University X*************** X*** 56,62 **** X */ X X #include "rcsbase.h" X! #define fflsbuf _flsbuf X /* redefinition of _flsbuf in putc not needed */ X #ifndef lint X static char rcsbaseid[] = RCSBASE; X--- 53,59 ---- X */ X 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*** ./usr/src/new/rcs/src/rcsbase.h.old Thu Feb 18 13:45:32 1988 X--- ./usr/src/new/rcs/src/rcsbase.h Fri Dec 26 01:45:00 2025 X*************** X*** 1,7 **** X- X /* X * RCS common definitions and data structures X */ X #define RCSBASE "$Id: rcsbase.h,v 4.5 87/12/18 17:06:41 narten Exp $" X /***************************************************************************** X * INSTRUCTIONS: X--- 1,10 ---- X /* 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*** 170,176 **** X #define JOINFIL3 ",RCSj3XXXXXX" X X X! #define putc(x,p) (--(p)->_cnt>=0? ((int)(*(p)->_ptr++=(unsigned)(x))):fflsbuf((unsigned)(x),p)) X /* This version of putc prints a char, but aborts on write error */ X X #define GETC(in,out,echo) (echo?putc(getc(in),out):getc(in)) X--- 173,182 ---- X #define JOINFIL3 ",RCSj3XXXXXX" X X X! #define putc(c, p) \ X! (--(p)->_w < 0 ? \ X! fflsbuf((unsigned)(c), p) : \ X! (*(p)->_p = (c), (int)*(p)->_p++)) X /* This version of putc prints a char, but aborts on write error */ X X #define GETC(in,out,echo) (echo?putc(getc(in),out):getc(in)) SHAR_EOF fi if test -f 'OLD499D.patch' then echo shar: "will not over-write existing file 'OLD499D.patch'" else sed 's/^X//' << \SHAR_EOF > 'OLD499D.patch' X*** ./usr/src/new/rcs/man/Makefile.old Sat Jan 23 00:10:06 1993 X--- ./usr/src/new/rcs/man/Makefile Mon Dec 8 15:33:53 2025 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 1.5 (Berkeley) 7/9/88 X # X X SRCS= ci.1 co.1 ident.1 rcs.1 rcsdiff.1 rcsfile.5 rcsfreeze.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 1.6 (2.11BSD) 2025/11/25 X # X X SRCS= ci.1 co.1 ident.1 rcs.1 rcsdiff.1 rcsfile.5 rcsfreeze.1 \ X*************** X*** 28,36 **** X .SUFFIXES: .5 .1 .0 X X .5.0: X! ${DESTDIR}/usr/man/manroff $*.5 > $*.0 X .1.0: X! ${DESTDIR}/usr/man/manroff $*.1 > $*.0 X X all: ${OBJS} X X--- 28,36 ---- X .SUFFIXES: .5 .1 .0 X X .5.0: X! /usr/man/manroff $*.5 > $*.0 X .1.0: X! /usr/man/manroff $*.1 > $*.0 X X all: ${OBJS} X X*************** X*** 38,45 **** X rm -f ${OBJS} X X install: ${OBJS1} ${OBJS5} X! install -c -o bin -g bin -m 444 ${OBJS1} ${DESTDIR}/usr/new/man/cat1 X! install -c -o bin -g bin -m 444 ${OBJS5} ${DESTDIR}/usr/new/man/cat5 X X FRC: X X--- 38,45 ---- X rm -f ${OBJS} X X install: ${OBJS1} ${OBJS5} X! install -c -o root -g staff -m 444 ${OBJS1} /usr/new/man/cat1 X! install -c -o root -g staff -m 444 ${OBJS5} /usr/new/man/cat5 X X FRC: X X*** ./usr/src/new/rcs/Makefile.old Fri Aug 12 04:08:00 1988 X--- ./usr/src/new/rcs/Makefile Tue Nov 25 16:59:34 2025 X*************** X*** 14,22 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 1.3 (Berkeley) 7/9/88 X # X- SEPFLAG=-i X X SUBDIR= src man X X--- 14,21 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 1.4 (2.11BSD) 2025/11/25 X # X X SUBDIR= src man X X*************** X*** 23,38 **** X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X install: X for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ X done X X clean: X for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} clean); \ X done X X FRC: X--- 22,37 ---- X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X install: X for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); \ X done X X clean: X for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} clean); \ X done X X FRC: X*** ./usr/src/new/vmsbackup/Makefile.old Sat Jan 23 00:14:38 1993 X--- ./usr/src/new/vmsbackup/Makefile Mon Dec 8 23:09:12 2025 X*************** X*** 1,8 **** X! # X #REMOTE=-DREMOTE # -DREMOTE use remote tape X SWAP= # -DSWAP swap bytes X CFLAGS= $(SWAP) $(REMOTE) -O X! LFLAGS=-i X OWNER=bin # user for remote tape access X MODE=755 X BINDIR=/usr/new X--- 1,9 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! X #REMOTE=-DREMOTE # -DREMOTE use remote tape X SWAP= # -DSWAP swap bytes X CFLAGS= $(SWAP) $(REMOTE) -O X! LDFLAGS=-i X OWNER=bin # user for remote tape access X MODE=755 X BINDIR=/usr/new X*************** X*** 10,22 **** X MAN= vmsbackup.0 X MANSRC= vmsbackup.1 X X! # X vmsbackup: vmsbackup.o match.o X! cc $(LFLAGS) -o vmsbackup vmsbackup.o match.o $(LIBS) X X install: vmsbackup $(MAN) X! install -m $(MODE) -o $(OWNER) -s vmsbackup ${DESTDIR}$(BINDIR) X! install -c -m 0444 -o bin -g bin vmsbackup.0 ${DESTDIR}$(MANDIR) X X vmsbackup.0: $(MANSRC) X /usr/man/manroff $(MANSRC) > $(MAN) X--- 11,24 ---- X MAN= vmsbackup.0 X MANSRC= vmsbackup.1 X X! all: vmsbackup vmsbackup.0 X! X vmsbackup: vmsbackup.o match.o X! cc $(LDFLAGS) -o vmsbackup vmsbackup.o match.o $(LIBS) X X install: vmsbackup $(MAN) X! install -c -m $(MODE) -o $(OWNER) -s vmsbackup $(BINDIR) X! install -c -m 0444 -o root -g staff vmsbackup.0 $(MANDIR) X X vmsbackup.0: $(MANSRC) X /usr/man/manroff $(MANSRC) > $(MAN) X*** ./usr/src/new/notes/src/parms.h.old Sun Nov 17 23:49:07 1996 X--- ./usr/src/new/notes/src/parms.h Fri Dec 26 01:35:34 2025 X*************** X*** 1,6 **** X! #if defined(RCSIDENT) && defined(MAINLINE) X! static char zzparms[] = "$Header: parms.h,v 1.7.0.12 86/08/28 22:55:49 notes Rel $"; X! #endif defined(RCSIDENT) && defined(MAINLINE) X X /* X * This file contains the constants that must be reset on each system X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char zzparms[] = "parms.h 1.7.0.2 (2.11BSD) 2025/11/29"; X! #endif X X /* X * This file contains the constants that must be reset on each system X*************** X*** 38,44 **** X * this undefined. X */ X X! #define FULLDOMAIN "imsd.contel.com" /* local domain */ X #undef IDDOMAIN /* not in unique id */ X X /* X--- 38,44 ---- X * this undefined. X */ X X! #define FULLDOMAIN "example.localhost.com" /* local domain */ X #undef IDDOMAIN /* not in unique id */ X X /* X*** ./usr/src/new/la/Makefile.old Sun Jan 28 19:44:45 1996 X--- ./usr/src/new/la/Makefile Mon Dec 8 23:07:56 2025 X*************** X*** 1,26 **** X! # X! # la Makefile. Revised 1996/1/28 X! # X! DESTDIR= X X! DEFS= X! CFLAGS= -O ${DEFS} X! SEPFLAG=-i X X all: la la.0 X X la: la.o X! cc ${CFLAGS} ${SEPFLAG} la.o -o la X X install: la la.0 X! install -s la ${DESTDIR}/usr/new/la X! install -c -m 444 -o bin -g bin la.0 ${DESTDIR}/usr/new/man/cat1/la.0 X X la.0: la.1 X /usr/man/manroff la.1 > la.0 X X clean: X! rm -f la *.o la.0 MAKELOG X X depend: X tags: X--- 1,22 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X! CFLAGS= -O X! LDFLAGS=-i X X all: la la.0 X X la: la.o X! cc ${CFLAGS} ${LDFLAGS} la.o -o la X X install: la la.0 X! install -c -s -m 755 la /usr/new/la X! install -c -m 444 -o root -g staff la.0 /usr/new/man/cat1/la.0 X X la.0: la.1 X /usr/man/manroff la.1 > la.0 X X clean: X! rm -f la *.o la.0 X X depend: X tags: X*** ./usr/src/new/Makefile.old Sat Jan 11 00:13:28 1997 X--- ./usr/src/new/Makefile Wed Dec 10 15:54:23 2025 X*************** X*** 1,31 **** X! # X! DESTDIR= X MANDIR= /usr/new/man X X! DEFS= X! CFLAGS= -O ${DEFS} X! SEPFLAG=-i X X # X # Default programs that are installed X # X! STDINST=ansi bm jove l11 la m11 \ X! 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= crash kermit5.188 pathalias rcs rn notes nntp X X! SUBDIR= ansi bm crash jove kermit5.188 l11 la m11 nntp \ X! notes pathalias rcs rn \ X! vmsbackup X X all: ${STDINST} X X ${STDINST}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X--- 1,27 ---- X! # @(#)Makefile 2.0 (2.11BSD) 2025/12/10 X! X MANDIR= /usr/new/man X X! CFLAGS= -O X 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*************** X*** 35,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} DESTDIR=${DESTDIR} install); done X -/usr/sbin/makewhatis ${MANDIR} X X clean: X--- 31,37 ---- 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*** ./usr/src/sbin/ifconfig/Makefile.old Sat Nov 16 15:52:02 1996 X--- ./usr/src/sbin/ifconfig/Makefile Mon Dec 8 15:40:21 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= ifconfig.c X OBJS= ifconfig.o X MAN= ifconfig.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= ifconfig.c X OBJS= ifconfig.o X MAN= ifconfig.0 X*************** X*** 13,19 **** X all: ifconfig ifconfig.0 X X ifconfig: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X ifconfig.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: ifconfig ifconfig.0 X X ifconfig: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X ifconfig.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: ifconfig X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 ifconfig ${DESTDIR}/sbin/ifconfig X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ifconfig X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 ifconfig /sbin/ifconfig X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/testnet/Makefile.old Sat Nov 16 16:01:23 1996 X--- ./usr/src/sbin/testnet/Makefile Mon Dec 8 15:41:54 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= testnet.c X OBJS= testnet.o X X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= testnet.c X OBJS= testnet.o X X*************** X*** 11,17 **** X all: testnet X X testnet: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} testnet tags X--- 11,17 ---- X all: testnet X X testnet: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} testnet tags X*************** X*** 20,26 **** X mkdep ${CFLAGS} ${SRCS} X X install: testnet X! install -s -o root -g bin -m 755 testnet ${DESTDIR}/sbin/testnet X X lint: ${SRCS} X lint -hax ${SRCS} X--- 20,26 ---- X mkdep ${CFLAGS} ${SRCS} X X install: testnet X! install -c -s -o root -g staff -m 755 testnet /sbin/testnet X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/init/Makefile.old Fri Jan 21 14:14:25 2022 X--- ./usr/src/sbin/init/Makefile Mon Dec 8 15:40:26 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1997/1/10 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2022/1/21 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= init.c X OBJS= init.o X MAN= init.0 X--- 1,10 ---- X # X # Public Domain. 1997/1/10 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= init.c X OBJS= init.o X MAN= init.0 X*************** X*** 13,19 **** X all: init init.0 X X init: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X init.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: init init.0 X X init: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X init.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,33 **** X mkdep ${CFLAGS} ${SRCS} X X install: init X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X -mv -f /etc/init /etc/init.old X! install -s -o root -g bin -m 700 init ${DESTDIR}/etc/init X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,33 ---- X mkdep ${CFLAGS} ${SRCS} X X install: init X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X -mv -f /etc/init /etc/init.old X! install -c -s -o root -g staff -m 700 init /etc/init X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/route/Makefile.old Sat Nov 16 17:13:02 1996 X--- ./usr/src/sbin/route/Makefile Mon Dec 8 15:41:07 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= route.c X OBJS= route.o X MAN= route.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= route.c X OBJS= route.o X MAN= route.0 X*************** X*** 13,19 **** X all: route route.0 X X route: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X route.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: route route.0 X X route: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X route.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: route X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 route ${DESTDIR}/sbin/route X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: route X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 route /sbin/route X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/route/route.c.old Mon Jan 10 23:52:14 1994 X--- ./usr/src/sbin/route/route.c Fri Dec 26 15:17:19 2025 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[] = "@(#)route.c 5.6.1 (2.11BSD GTE) 1/1/94"; 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[] = "@(#)route.c 5.6.2 (2.11BSD) 2025/12/26"; X #endif X X #include X*************** X*** 458,464 **** X X sav = malloc(strlen(s) + 1); X if (sav == NULL) { X! fprintf("route: out of memory\n"); X exit(1); X } X strcpy(sav, s); X--- 458,464 ---- X X sav = malloc(strlen(s) + 1); X if (sav == NULL) { X! fprintf(stderr, "route: out of memory\n"); X exit(1); X } X strcpy(sav, s); X*** ./usr/src/sbin/mkfs/Makefile.old Sat Nov 16 17:19:23 1996 X--- ./usr/src/sbin/mkfs/Makefile Mon Dec 8 15:40:30 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= mkfs.c X OBJS= mkfs.o X MAN= mkfs.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= mkfs.c X OBJS= mkfs.o X MAN= mkfs.0 X*************** X*** 13,19 **** X all: mkfs mkfs.0 X X mkfs: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X mkfs.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: mkfs mkfs.0 X X mkfs: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X mkfs.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: mkfs X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 mkfs ${DESTDIR}/sbin/mkfs X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: mkfs X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 mkfs /sbin/mkfs X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/quotacheck/Makefile.old Sat Nov 16 17:25:06 1996 X--- ./usr/src/sbin/quotacheck/Makefile Mon Dec 8 15:40:56 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/1/23 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD GTE) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= quotacheck.c preen.c X OBJS= quotacheck.o preen.o X MAN= quotacheck.0 X--- 1,10 ---- X # X # Public Domain. 1996/1/23 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= quotacheck.c preen.c X OBJS= quotacheck.o preen.o X MAN= quotacheck.0 X*************** X*** 13,19 **** X all: quotacheck quotacheck.0 X X quotacheck: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X quotacheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: quotacheck quotacheck.0 X X quotacheck: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X quotacheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 quotacheck ${DESTDIR}/sbin/quotacheck X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 quotacheck /sbin/quotacheck X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/savecore/savecore.c.old Sat Aug 30 23:14:21 2025 X--- ./usr/src/sbin/savecore/savecore.c Fri Dec 26 15:19:07 2025 X*************** X*** 1,5 **** X /* X! * savecore, 1.2 (2.11BSD) 2025/8/30 X */ X X #include X--- 1,5 ---- X /* X! * savecore.c 1.3 (2.11BSD) 2025/9/6 X */ X X #include X*************** X*** 329,335 **** X * partition is smaller than physical memory. The core image will be X * incomplete but usable (since kernel tables are in low memory) X */ X- printf("n: %d physmem:%u\n", n, physmem); X if (n == 0) X break; X Write(ofd, cp, n); X--- 329,334 ---- X*** ./usr/src/sbin/savecore/Makefile.old Sat Nov 16 17:46:54 1996 X--- ./usr/src/sbin/savecore/Makefile Thu Dec 18 06:28:48 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= savecore.c X OBJS= savecore.o X MAN= savecore.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/12/18 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= savecore.c X OBJS= savecore.o X MAN= savecore.0 X*************** X*** 13,19 **** X all: savecore savecore.0 X X savecore: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X savecore.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: savecore savecore.0 X X savecore: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X savecore.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 24,32 **** X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X! install: savecore X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 savecore ${DESTDIR}/sbin/savecore X X lint: ${SRCS} X lint -hax ${SRCS} X--- 24,32 ---- X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X! install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 savecore /sbin/savecore X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/routed/tools/Makefile.old Tue Jul 21 15:04:14 1987 X--- ./usr/src/sbin/routed/tools/Makefile Tue Nov 25 17:25:39 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1 (Berkeley) 6/4/85 X # X ALL= ../protocol.h query.c trace.c X CFLAGS= -O X- DESTDIR= X LDFLAGS= X X all: query trace X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/25 X # X ALL= ../protocol.h query.c trace.c X CFLAGS= -O X LDFLAGS= X X all: query trace X*** ./usr/src/sbin/routed/tools/trace.c.old Tue Aug 9 19:28:10 1988 X--- ./usr/src/sbin/routed/tools/trace.c Tue Nov 25 17:27:56 2025 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[] = "@(#)trace.c 5.3 (Berkeley) 2/12/86"; 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) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)trace.c 5.4 (2.11BSD) 2025/11/25"; X! #endif X X #include X #include X*************** X*** 49,55 **** X perror("socket"); X exit(2); X } X! #ifdef vax || pdp11 X myaddr.sin_port = htons(myaddr.sin_port); X #endif X if (bind(s, &myaddr, sizeof(myaddr)) < 0) { X--- 47,53 ---- X perror("socket"); X exit(2); X } X! #if defined(vax) || defined(pdp11) X myaddr.sin_port = htons(myaddr.sin_port); X #endif X if (bind(s, &myaddr, sizeof(myaddr)) < 0) { X*** ./usr/src/sbin/routed/Makefile.old Tue Nov 19 23:30:24 1996 X--- ./usr/src/sbin/routed/Makefile Mon Dec 8 15:41:20 2025 X*************** X*** 3,34 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2.1 (2.11BSD) 1996/11/19 X # X ALL= routed X OBJS= af.o if.o input.o main.o output.o startup.o tables.o timer.o \ X trace.o inet.o X CFLAGS= -O X! SEPFLAG=-i X! C2= /lib/c2 X! INLINE= /sys/machine/inline/inline X! DESTDIR= X! LDFLAGS= X X all: ${ALL} X X routed: ${OBJS} X! ${CC} ${SEPFLAG} -o routed ${LDFLAGS} ${OBJS} X X install: routed X! install -s routed ${DESTDIR}/sbin X! X! # The following can be deleted where not appropriate to use the kernel's X! # inline code expansions. X! #.c.o: X! # ${CC} -S ${CFLAGS} $*.c X! # ${C2} $*.s | ${INLINE} | ${AS} -o $*.o X! # rm -f $*.s X X clean: X rm -f routed *.o core a.out t.c linterrs typescript errs X--- 3,23 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2.2 (2.11BSD) 2025/11/25 X # X ALL= routed X OBJS= af.o if.o input.o main.o output.o startup.o tables.o timer.o \ X trace.o inet.o X CFLAGS= -O X! LDFLAGS=-i X X all: ${ALL} X X routed: ${OBJS} X! ${CC} ${LDFLAGS} -o routed ${LDFLAGS} ${OBJS} X X install: routed X! install -c -s routed /sbin X X clean: X rm -f routed *.o core a.out t.c linterrs typescript errs X*** ./usr/src/sbin/routed/trace.c.old Fri Sep 2 20:43:57 1988 X--- ./usr/src/sbin/routed/trace.c Sat Dec 27 09:07:44 2025 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)trace.c 5.3 (Berkeley) 5/30/86"; 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) X! static char sccsid[] = "@(#)trace.c 5.4 (2.11BSD) 2025/12/27"; X! #endif X X /* X * Routing Table Management Daemon X*************** X*** 177,182 **** X--- 177,183 ---- X } X X dumpif(fd, ifp) X+ FILE *fd; X register struct interface *ifp; X { X if (ifp->int_input.ifd_count || ifp->int_output.ifd_count) { X*** ./usr/src/sbin/mknod/Makefile.old Sat Nov 16 18:07:12 1996 X--- ./usr/src/sbin/mknod/Makefile Mon Dec 8 15:40:36 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= mknod.c X OBJS= mknod.o X MAN= mknod.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= mknod.c X OBJS= mknod.o X MAN= mknod.0 X*************** X*** 13,19 **** X all: mknod mknod.0 X X mknod: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X mknod.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: mknod mknod.0 X X mknod: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X mknod.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: mknod X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 mknod ${DESTDIR}/sbin/mknod X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: mknod X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 mknod /sbin/mknod X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/shutdown/Makefile.old Sat Nov 16 20:44:43 1996 X--- ./usr/src/sbin/shutdown/Makefile Mon Dec 8 15:41:29 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= shutdown.c X OBJS= shutdown.o X MAN= shutdown.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= shutdown.c X OBJS= shutdown.o X MAN= shutdown.0 X*************** X*** 13,19 **** X all: shutdown shutdown.0 X X shutdown: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X shutdown.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: shutdown shutdown.0 X X shutdown: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X shutdown.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: shutdown X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g operator -m 4750 shutdown ${DESTDIR}/sbin/shutdown X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: shutdown X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g operator -m 4750 shutdown /sbin/shutdown X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/reboot/Makefile.old Sat Nov 16 21:00:31 1996 X--- ./usr/src/sbin/reboot/Makefile Mon Dec 8 15:41:01 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= reboot.c X OBJS= reboot.o X MAN= reboot.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= reboot.c X OBJS= reboot.o X MAN= reboot.0 X*************** X*** 13,19 **** X all: reboot reboot.0 X X reboot: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X reboot.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: reboot reboot.0 X X reboot: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X reboot.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,38 **** X mkdep ${CFLAGS} ${SRCS} X X install: reboot X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! -rm -f ${DESTDIR}/usr/man/cat8/fastboot.0 ${DESTDIR}/usr/man/cat8/halt.0 X! ln ${DESTDIR}/usr/man/cat8/reboot.0 ${DESTDIR}/usr/man/cat8/fastboot.0 X! ln ${DESTDIR}/usr/man/cat8/reboot.0 ${DESTDIR}/usr/man/cat8/halt.0 X! install -s -o root -g bin -m 755 reboot ${DESTDIR}/sbin/reboot X! -rm ${DESTDIR}/sbin/fastboot ${DESTDIR}/sbin/halt X! ln ${DESTDIR}/sbin/reboot ${DESTDIR}/sbin/halt X! ln ${DESTDIR}/sbin/reboot ${DESTDIR}/sbin/fastboot X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,38 ---- X mkdep ${CFLAGS} ${SRCS} X X install: reboot X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! -rm -f /usr/man/cat8/fastboot.0 /usr/man/cat8/halt.0 X! ln /usr/man/cat8/reboot.0 /usr/man/cat8/fastboot.0 X! ln /usr/man/cat8/reboot.0 /usr/man/cat8/halt.0 X! install -c -s -o root -g staff -m 755 reboot /sbin/reboot X! -rm /sbin/fastboot /sbin/halt X! ln /sbin/reboot /sbin/halt X! ln /sbin/reboot /sbin/fastboot X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/dump/Makefile.old Thu Sep 26 01:16:44 2024 X--- ./usr/src/sbin/dump/Makefile Mon Dec 8 15:45:27 2025 X*************** X*** 1,4 **** X! # sccsid = "@(#)Makefile 1.6 (2.11BSD) 2024/9/26" X # X # dump.h header file X # dumpitime.c reads /etc/ddate X--- 1,4 ---- X! # sccsid = "@(#)Makefile 1.7 (2.11BSD) 2025/11/25" X # X # dump.h header file X # dumpitime.c reads /etc/ddate X*************** X*** 14,20 **** X # TDEBUG trace out the process forking X X CFLAGS= -O -I. X! SEPFLAG=-i X X HDRS= dump.h X SRCS= dumpitime.c dumpmain.c dumpoptr.c dumptape.c dumptraverse.c unctime.c \ X--- 14,20 ---- X # TDEBUG trace out the process forking X X CFLAGS= -O -I. X! LDFLAGS=-i X X HDRS= dump.h X SRCS= dumpitime.c dumpmain.c dumpoptr.c dumptape.c dumptraverse.c unctime.c \ X*************** X*** 26,43 **** X all: dump rdump dumpdir X X dump: ${OBJS} X! cc ${CFLAGS} ${SEPFLAG} ${OBJS} -o dump X X rdump: ${ROBJS} X! cc ${CFLAGS} ${SEPFLAG} ${ROBJS} -o rdump X X dumpdir: dumpdir.o X! cc ${CFLAGS} ${SEPFLAG} dumpdir.o -o dumpdir X X install: all X! install -s dump ${DESTDIR}/sbin/dump X! install -s rdump ${DESTDIR}/sbin/rdump X! install -s dumpdir ${DESTDIR}/sbin/dumpdir X X clean: X rm -f *.o dump rdump dumpdir X--- 26,43 ---- X all: dump rdump dumpdir X X dump: ${OBJS} X! cc ${CFLAGS} ${LDFLAGS} ${OBJS} -o dump X X rdump: ${ROBJS} X! cc ${CFLAGS} ${LDFLAGS} ${ROBJS} -o rdump X X dumpdir: dumpdir.o X! cc ${CFLAGS} ${LDFLAGS} dumpdir.o -o dumpdir X X install: all X! install -c -s -m 755 dump /sbin/dump X! install -c -s -m 755 rdump /sbin/rdump X! install -c -s -m 755 dumpdir /sbin/dumpdir X X clean: X rm -f *.o dump rdump dumpdir X*** ./usr/src/sbin/dump/dumpmain.c.old Wed Feb 7 21:38:07 1996 X--- ./usr/src/sbin/dump/dumpmain.c Mon Dec 1 19:24:35 2025 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumpmain.c 1.4 (2.11BSD GTE) 1996/2/7"; X #endif X X #include "dump.h" 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*************** X*** 79,90 **** X argc--; X argv++; X break; X- #ifdef notnow X- case 'b': /* blocks per tape write */ X- ntrec = numarg('b', "number of blocks per write", X- 1L, 1000L, &argc, &argv); X- break; X- #endif X X case 'B': /* blocks per output file */ X blocksperfile = numarg('B', "number of blocks per file", X--- 79,84 ---- X*** ./usr/src/sbin/fsck/Makefile.old Sat Nov 30 12:39:38 1996 X--- ./usr/src/sbin/fsck/Makefile Mon Dec 8 15:40:06 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.8.2 (2.11BSD) 1996/11/16 X # X- DESTDIR= X CFLAGS= -O X! LFLAGS= -i X XSTR= /usr/ucb/xstr X X # The program itself X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.8.3 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS=-i X XSTR= /usr/ucb/xstr X X # The program itself X*************** X*** 32,38 **** X all: ${PROG} X X ${PROG}: ${OBJS} ${HDRS} strings.o X! cc ${LFLAGS} -o ${PROG} ${OBJS} strings.o X X .c.o: X cc -E ${CFLAGS} $*.c | ${XSTR} -c - X--- 31,37 ---- X all: ${PROG} X X ${PROG}: ${OBJS} ${HDRS} strings.o X! cc ${LDFLAGS} -o ${PROG} ${OBJS} strings.o X X .c.o: X cc -E ${CFLAGS} $*.c | ${XSTR} -c - X*************** X*** 47,74 **** X rm -f xs.c X X install: ${PROG} X! install -s ${PROG} ${DESTDIR}/sbin/${PROG} X X clean: X rm -f a.out core ${OBJS} ${PROG} strings.o x.c xs.c strings X X lint: X! lint ${INCPATH} ${SRCS} X X! depend: X! cc -M ${INCPATH} ${SRCS} | \ X! awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' > makedep X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X! X! # DO NOT DELETE THIS LINE -- make depend uses it X--- 46,58 ---- X rm -f xs.c X X install: ${PROG} X! install -c -s -m 755 ${PROG} /sbin/${PROG} X X clean: X rm -f a.out core ${OBJS} ${PROG} strings.o x.c xs.c strings X X lint: X! lint ${SRCS} X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X*** ./usr/src/sbin/mkpasswd/Makefile.old Sat Nov 16 22:27:28 1996 X--- ./usr/src/sbin/mkpasswd/Makefile Mon Dec 8 15:40:41 2025 X*************** X*** 14,24 **** X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.1.1 (2.11BSD) 1996/11/16 X # X X CFLAGS= -O X! SEPFLAG= -i X SRCS= mkpasswd.c X OBJS= mkpasswd.o X MAN= mkpasswd.0 X--- 14,24 ---- X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 2025/11/25 X # X X CFLAGS= -O X! LDFLAGS= -i X SRCS= mkpasswd.c X OBJS= mkpasswd.o X MAN= mkpasswd.0 X*************** X*** 27,33 **** X all: mkpasswd ${MAN} X X mkpasswd: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS} X X clean: X rm -f ${OBJS} ${MAN} core mkpasswd X--- 27,33 ---- X all: mkpasswd ${MAN} X X mkpasswd: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${CFLAGS} ${OBJS} X X clean: X rm -f ${OBJS} ${MAN} core mkpasswd X*************** X*** 36,43 **** X mkdep -p ${CFLAGS} ${SRCS} X X install: ${MAN} mkpasswd X! install -s -o bin -g bin -m 755 mkpasswd ${DESTDIR}/sbin/mkpasswd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X X mkpasswd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 36,43 ---- X mkdep -p ${CFLAGS} ${SRCS} X X install: ${MAN} mkpasswd X! install -c -s -o root -g staff -m 755 mkpasswd /sbin/mkpasswd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X X mkpasswd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*** ./usr/src/sbin/mount/Makefile.old Sat Nov 16 22:34:50 1996 X--- ./usr/src/sbin/mount/Makefile Mon Dec 8 15:40:47 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/1/15 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD GTE) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= mount.c getmntopts.c mount_ufs.c X OBJS= mount.o getmntopts.o mount_ufs.o X # X--- 1,10 ---- X # X # Public Domain. 1996/1/15 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= mount.c getmntopts.c mount_ufs.c X OBJS= mount.o getmntopts.o mount_ufs.o X # X*************** X*** 16,22 **** X all: mount mount.0 X X mount: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X mount.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 16,22 ---- X all: mount mount.0 X X mount: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X mount.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 28,35 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 mount ${DESTDIR}/sbin/mount X X lint: ${SRCS} X lint -hax ${SRCS} X--- 28,35 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 mount /sbin/mount X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/newfs/Makefile.old Sat Nov 16 22:41:04 1996 X--- ./usr/src/sbin/newfs/Makefile Mon Dec 8 15:40:53 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= newfs.c X OBJS= newfs.o X MAN= newfs.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= newfs.c X OBJS= newfs.o X MAN= newfs.0 X*************** X*** 13,19 **** X all: newfs newfs.0 X X newfs: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X newfs.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: newfs newfs.0 X X newfs: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X newfs.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: newfs X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 newfs ${DESTDIR}/sbin/newfs X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: newfs X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 newfs /sbin/newfs X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/newfs/newfs.c.old Sat Nov 16 22:42:15 1996 X--- ./usr/src/sbin/newfs/newfs.c Fri Dec 26 02:00:04 2025 X*************** X*** 11,17 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)newfs.c 6.3 (2.11BSD) 1996/11/16"; X #endif X X /* X--- 11,17 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static chaf sccsid[] = "@(#)newfs.c 6.4 (2.11BSD) 2025/12/24"; X #endif X X /* X*************** X*** 37,43 **** X #include X #include X #include X- #include X X #ifdef COMPAT X char *disktype; X--- 37,42 ---- X*************** X*** 195,205 **** X exit(0); X } X X- #ifdef COMPAT X char lmsg[] = "%s: can't read disk label; disk type must be specified"; X- #else X- char lmsg[] = "%s: can't read disk label"; X- #endif X X struct disklabel * X getdisklabel(s, fd) X--- 194,200 ---- X*************** X*** 240,254 **** X exit(1); X } X X- /*VARARGS*/ X void X! fatal(fmt, va_alist) X! char *fmt; X! va_dcl X { X va_list ap; X X! va_start(ap); X X if (fcntl(fileno(stderr), F_GETFL) < 0) { X openlog(__progname, LOG_CONS, LOG_DAEMON); X--- 235,246 ---- X exit(1); X } X X void X! fatal(char *fmt, ...) X { X va_list ap; X X! va_start(ap, fmt); X X if (fcntl(fileno(stderr), F_GETFL) < 0) { X openlog(__progname, LOG_CONS, LOG_DAEMON); X*************** X*** 259,263 **** X } X va_end(ap); X exit(1); X- /*NOTREACHED*/ X } X--- 251,254 ---- X*** ./usr/src/sbin/restor/Makefile.old Sun Nov 17 22:35:05 1996 X--- ./usr/src/sbin/restor/Makefile Mon Dec 8 15:41:04 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= restor.c X OBJS= restor.o X MAN= restor.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= restor.c X OBJS= restor.o X MAN= restor.0 X*************** X*** 13,19 **** X all: restor restor.0 X X restor: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X restor.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: restor restor.0 X X restor: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X restor.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: restor X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 restor ${DESTDIR}/sbin/restor X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: restor X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 restor /sbin/restor X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/restor/restor.c.old Sat Jun 10 01:08:29 1995 X--- ./usr/src/sbin/restor/restor.c Fri Dec 26 19:39:28 2025 X*************** X*** 1,4 **** X--- 1,6 ---- X /* X+ * 2025/11/26 - Input file "-" means read from stdin. X+ * X * 1995/06/09 - standalone restor must be loaded split I/D because the X * disklabel handling increased the size of standalone programs. X * This is not too much of a problem since the Kernel has been X*************** X*** 7,12 **** X--- 9,17 ---- X * Since split I/D is now required the NCACHE parameter is no 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 #ifdef NONSEPARATE X*************** X*** 28,33 **** X--- 33,41 ---- X #include X #include X #include X+ #include X+ #include X+ #include X X #define MWORD(m,i) (m[(unsigned)(i-1)/MLEN]) X #define MBIT(i) (1<<((unsigned)(i-1)%MLEN)) X*************** X*** 46,57 **** X int fi; X ino_t ino, maxi, curino; X X! int mt; X char tapename[] = "/dev/rmt1"; X char *magtape = tapename; X #ifdef STANDALONE X char mbuf[50]; X- char module[] = "Restor"; X #endif X X #ifndef STANDALONE X--- 54,65 ---- X int fi; X ino_t ino, maxi, curino; X X! int mt = -1, ispipe = 0; X char tapename[] = "/dev/rmt1"; X char *magtape = tapename; X+ char module[] = "Restor"; X #ifdef STANDALONE X char mbuf[50]; X #endif X X #ifndef STANDALONE X*************** X*** 103,110 **** X } cache[NCACHE]; X int curcache; X X! extern long lseek(); X X main(argc, argv) X register char *argv[]; X { X--- 111,158 ---- X } cache[NCACHE]; X int curcache; X X! /* X! * loop reading 'fd' until the buffer is full. if 0 (end of file) is seen X! * then return the count of how many bytes have been read. if an error is X! * encountered (EINTR can be retried if not running standalone) return -1 X! * X! * this is necessary in the non-standalone mode to enable reading from X! * /dev/stdin which is often a pipe. Pipes can only hold 4KB before the X! * writer is suspended. restor would issue a read() for 10KB, receive only X! * 4KB and proceed to corrupt the filesystem (or exit with errors). Looping X! * until the entire tape record (pipes do not maintain tape record boundaries) X! * is gathered will allow restor to be used in a pipeline in much the same X! * way as restore on 4BSD X! */ X! ssize_t mtread(int fd, void *buf, size_t len) X! { X! register ssize_t n = 0, r = 0; X X+ while (r < len) X+ { X+ n = read (fd, buf + r, len - r); X+ if (n < 0) X+ { X+ #ifndef STANDALONE X+ if (errno == EINTR) X+ continue; X+ else X+ #endif X+ return(-1); X+ } X+ r += n; X+ if (n == 0) X+ break; X+ /* X+ * If not reading from a pipe then return with the amount read even if less X+ * than asked for (a short tape record). X+ */ X+ if (!ispipe) X+ break; X+ } X+ return(r); X+ } X+ X main(argc, argv) X register char *argv[]; X { X*************** X*** 116,122 **** X mktemp(dirfile); X if (argc < 2) { X usage: X! printf("Usage: restor x file file..., restor r filesys, or restor t\n"); X exit(1); X } X argv++; X--- 164,170 ---- X mktemp(dirfile); X if (argc < 2) { X usage: X! printf("Usage: restor x file..., restor r filesys, or restor t\n"); X exit(1); X } X argv++; X*************** X*** 139,145 **** X command = *cp; X break; X default: X! printf("Bad key character %c\n", *cp); X goto usage; X } X } X--- 187,193 ---- X command = *cp; X break; X default: X! printf("%s: Bad command '%c'\n", module, *cp); X goto usage; X } X } X*************** X*** 151,157 **** X X df = open(dirfile, O_CREAT | O_TRUNC| O_RDWR, 0666); X if (df < 0) { X! printf("restor: %s - cannot create directory temporary\n", dirfile); X exit(1); X } X } X--- 199,205 ---- X X df = open(dirfile, O_CREAT | O_TRUNC| O_RDWR, 0666); X if (df < 0) { X! printf("%s: cannot create %s\n", module, dirfile); X exit(1); X } X } X*************** X*** 171,178 **** X int argc; X char *argv[]; X { X! extern char *ctime(); X! register i, k; X ino_t d; X #ifndef STANDALONE X int xtrfile(), skip(), null(); X--- 219,226 ---- X int argc; X char *argv[]; X { X! int i; X! register int k; X ino_t d; X #ifndef STANDALONE X int xtrfile(), skip(), null(); X*************** X*** 181,195 **** X register struct dinode *ip, *ip1; X X #ifndef STANDALONE X! if ((mt = open(magtape, 0)) < 0) { X! printf("%s: cannot open tape\n", magtape); X! exit(1); X! } X #else X do { X printf("Tape? "); X gets(mbuf); X! mt = open(mbuf, 0); X } while (mt == -1); X magtape = mbuf; X #endif X--- 229,254 ---- X register struct dinode *ip, *ip1; X X #ifndef STANDALONE X! if ((strcmp(magtape, "-") == 0) || strcmp(magtape, "/dev/stdin") == 0) X! { X! mt = STDIN_FILENO; X! ispipe = 1; X! if (command == 'x' || command == 'R') X! { X! printf("%s: 'x' and 'R' not supported with pipe input\n", module); X! return; X! } X! } X! else if ((mt = open(magtape, O_RDONLY)) < 0) X! { X! printf("%s: cannot open %s\n", module, magtape); X! exit(1); X! } X #else X do { X printf("Tape? "); X gets(mbuf); X! mt = open(mbuf, O_RDONLY); X } while (mt == -1); X magtape = mbuf; X #endif X*************** X*** 197,203 **** X #ifndef STANDALONE X case 't': X if (readhdr(&spcl) == 0) { X! printf("Tape is not a dump tape\n"); X exit(1); X } X printf("Dump date: %s", ctime(&spcl.c_date)); X--- 256,262 ---- X #ifndef STANDALONE X case 't': X if (readhdr(&spcl) == 0) { X! printf("Tape not a dump tape\n"); X exit(1); X } X printf("Dump date: %s", ctime(&spcl.c_date)); X*************** X*** 205,216 **** X return; X case 'x': X if (readhdr(&spcl) == 0) { X! printf("Tape is not a dump tape\n"); X unlink(dirfile); X exit(1); X } X if (checkvol(&spcl, 1) == 0) { X! printf("Tape is not volume 1 of the dump\n"); X unlink(dirfile); X exit(1); X } X--- 264,275 ---- X return; X case 'x': X if (readhdr(&spcl) == 0) { X! printf("Tape not a dump tape\n"); X unlink(dirfile); X exit(1); X } X if (checkvol(&spcl, 1) == 0) { X! printf("Tape not volume 1 of the dump\n"); X unlink(dirfile); X exit(1); X } X*************** X*** 239,247 **** X printf("Volume numbers are positive numerics\n"); X goto getvol; X } X! mt = open(magtape, 0); X if (readhdr(&spcl) == 0) { X! printf("tape is not dump tape\n"); X goto newvol; X } X if (checkvol(&spcl, volno) == 0) { X--- 298,306 ---- X printf("Volume numbers are positive numerics\n"); X goto getvol; X } X! mt = open(magtape, O_RDONLY); X if (readhdr(&spcl) == 0) { X! printf("Tape not dump tape\n"); X goto newvol; X } X if (checkvol(&spcl, volno) == 0) { X*************** X*** 309,316 **** X case 'r': X case 'R': X #ifndef STANDALONE X! if ((fi = open(*argv, 2)) < 0) { X! printf("%s: cannot open\n", *argv); X exit(1); X } X #else X--- 368,375 ---- X case 'r': X case 'R': X #ifndef STANDALONE X! if ((fi = open(*argv, O_RDWR)) < 0) { X! printf("%s: cannot open %s\n", module, *argv); X exit(1); X } X #else X*************** X*** 319,325 **** X X printf("Disk? "); X gets(charbuf); X! fi = open(charbuf, 2); X } while (fi == -1); X #endif X #ifndef STANDALONE X--- 378,384 ---- X X printf("Disk? "); X gets(charbuf); X! fi = open(charbuf, O_RDWR); X } while (fi == -1); X #endif X #ifndef STANDALONE X*************** X*** 335,347 **** X else X #endif X volno = 1; X! printf("Last chance before scribbling on %s. ", X #ifdef STANDALONE X "disk"); X #else X *argv); X #endif X! while (getchar() != '\n'); X dread((daddr_t)SBLOCK, (char *)&sblock, sizeof(sblock)); X maxi = (sblock.fs_isize-2)*INOPB; X if (readhdr(&spcl) == 0) { X--- 394,413 ---- X else X #endif X volno = 1; X! /* X! * If reading from stdin (via a pipe) the last chance has to be disabled X! * because reading a character will consume part of the incoming dump data X! */ X! if (mt != STDIN_FILENO) X! { X! printf("Last chance before scribbling on %s. ", X #ifdef STANDALONE X "disk"); X #else X *argv); X #endif X! while (getchar() != '\n'); X! } X dread((daddr_t)SBLOCK, (char *)&sblock, sizeof(sblock)); X maxi = (sblock.fs_isize-2)*INOPB; X if (readhdr(&spcl) == 0) { X*************** X*** 349,355 **** X exit(1); X } X if (checkvol(&spcl, volno) == 0) { X! printf("Tape is not volume %d\n", volno); X exit(1); X } X gethead(&spcl); X--- 415,421 ---- X exit(1); X } X if (checkvol(&spcl, volno) == 0) { X! printf("Tape not volume %d\n", volno); X exit(1); X } X gethead(&spcl); X*************** X*** 442,448 **** X #ifndef STANDALONE X pass1() X { X! register i; X struct dinode *ip; X struct direct nulldir; X int putdir(), null(); X--- 508,514 ---- X #ifndef STANDALONE X pass1() X { X! register int i; X struct dinode *ip; X struct direct nulldir; X int putdir(), null(); X*************** X*** 544,551 **** X } X X /* X! * Do the tape i\/o, dealling with volume changes X! * etc.. X */ X readtape(b) X char *b; X--- 610,616 ---- X } X X /* X! * Do the tape i/o dealing with volume changes, etc.. X */ X readtape(b) X char *b; X*************** X*** 557,563 **** X for (i = 0; i < NTREC; i++) X ((struct spcl *)&tbf[i*DEV_BSIZE])->c_magic = 0; X bct = 0; X! if ((i = read(mt, tbf, NTREC*DEV_BSIZE)) < 0) { X printf("Tape read error: inode %u\n", curino); X eflag++; X for (i = 0; i < NTREC; i++) X--- 622,628 ---- X for (i = 0; i < NTREC; i++) X ((struct spcl *)&tbf[i*DEV_BSIZE])->c_magic = 0; X bct = 0; X! if ((i = mtread(mt, tbf, NTREC*DEV_BSIZE)) < 0) { X printf("Tape read error: inode %u\n", curino); X eflag++; X for (i = 0; i < NTREC; i++) X*************** X*** 564,569 **** X--- 629,644 ---- X bzero(&tbf[i*DEV_BSIZE], DEV_BSIZE); X } X if (i == 0) { X+ /* X+ * volume change on a pipe? Seriously? X+ * X+ * Should never get here as the commands 'R' and 'x' which support multiple X+ * volumes are not allowed if reading from a pipe. X+ * X+ * Not sure what to do except return and let the calling routine complain X+ */ X+ if (ispipe) X+ return; X bct = NTREC + 1; X volno++; X loop: X*************** X*** 572,578 **** X printf("Mount volume %d\n", volno); X while (getchar() != '\n') X ; X! if ((mt = open(magtape, 0)) == -1) { X printf("Cannot open tape!\n"); X goto loop; X } X--- 647,653 ---- X printf("Mount volume %d\n", volno); X while (getchar() != '\n') X ; X! if ((mt = open(magtape, O_RDONLY)) == -1) { X printf("Cannot open tape!\n"); X goto loop; X } X*************** X*** 681,687 **** X #ifdef STANDALONE X printf("disk write error: block %D\n", bno); X #else X! fprintf(stderr, "disk write error: block %ld\n", bno); X #endif X exit(1); X } X--- 756,762 ---- X #ifdef STANDALONE X printf("disk write error: block %D\n", bno); X #else X! printf("%s: disk write error: block %ld\n", module, bno); X #endif X exit(1); X } X*************** X*** 712,720 **** X lseek(fi, bno*DEV_BSIZE, 0); X if (read(fi, cache[j].c_block, DEV_BSIZE) != DEV_BSIZE) { X #ifdef STANDALONE X! printf("read error: block %D\n", bno); X #else X! printf("read error: block %ld\n", bno); X #endif X exit(1); X } X--- 787,795 ---- X lseek(fi, bno*DEV_BSIZE, 0); X if (read(fi, cache[j].c_block, DEV_BSIZE) != DEV_BSIZE) { X #ifdef STANDALONE X! printf("read error: block %D\n", bno); X #else X! printf("read error: block %ld\n", bno); X #endif X exit(1); X } X*************** X*** 835,841 **** X #ifdef STANDALONE X printf("Out of space\n"); X #else X! fprintf(stderr, "Out of space.\n"); X #endif X exit(1); X } X--- 910,916 ---- X #ifdef STANDALONE X printf("Out of space\n"); X #else X! printf("Out of space.\n"); X #endif X exit(1); X } X*** ./usr/src/sbin/restor/restor.8.old Sun Nov 17 22:36:31 1996 X--- ./usr/src/sbin/restor/restor.8 Fri Dec 26 15:15:09 2025 X*************** X*** 1,7 **** X .TH RESTOR 8 X .UC X .SH NAME X! restor \- incremental file system restore X .SH SYNOPSIS X .I restor X key [ argument ... ] X--- 1,9 ---- X+ .\" @(#)restor.8 2.0 (2.11BSD) 2025/12/26 X+ .\" X .TH RESTOR 8 X .UC X .SH NAME X! restor \- incremental filesystem restore X .SH SYNOPSIS X .I restor X key [ argument ... ] X*************** X*** 16,38 **** X .I Key X is one of the characters X .B rRxt X! optionally combined with X! .BR f . X .TP X! .B f X Use the first X .I argument X! as the name of the tape instead X! of the default. X .TP X! .B r or R X The tape X! is read and loaded into the file system X specified in X .I argument. X This should not be done lightly (see below). X! If the key is X! .B R X .I restor X asks which tape of a multi volume set to start on. X This allows restor to be interrupted and then X--- 18,39 ---- X .I Key X is one of the characters X .B rRxt X! optionally combined with \fBf\fP. X .TP X! .B f X Use the first X .I argument X! as the name of the file to read instead of the default /dev/rmt0. X! The argument may be a special file like /dev/nrmt1 (a tape drive), an ordinary X! file or '-' (the standard input). The string /dev/stdin is a synonym for '-'. X .TP X! .B r or R X The tape X! is read and loaded into the filesystem X specified in X .I argument. X This should not be done lightly (see below). X! If the key is \fBR\fP X .I restor X asks which tape of a multi volume set to start on. X This allows restor to be interrupted and then X*************** X*** 39,50 **** X restarted (an X .I icheck X \-s must be done before restarting ). X .TP X! .B x X Each file on the X tape named by an X .I argument X is extracted. X The file name has all `mount' prefixes removed; X for example, /usr/bin/lpr is named /bin/lpr on the tape. X The file extracted is placed in a file with a numeric name X--- 40,60 ---- X restarted (an X .I icheck X \-s must be done before restarting ). X+ .sp X+ .B R X+ is \fBNOT\fP allowed when the input is from stdin because the concept of X+ volume changes on a pipe makes no sense. X .TP X! .B x X Each file on the X tape named by an X .I argument X is extracted. X+ .sp X+ .B x X+ is \fBNOT\fP allowed when the input is from stdin because the concept of X+ volume changes on a pipe makes no sense. X+ .sp X The file name has all `mount' prefixes removed; X for example, /usr/bin/lpr is named /bin/lpr on the tape. X The file extracted is placed in a file with a numeric name X*************** X*** 86,98 **** X .TP X .B t X Print the date the tape was written and the date X! the file system was dumped from. X .PP X The X .B r X option should only be used to restore X! a complete dump tape onto a clear file system X! or to restore an incremental dump tape onto this. X Thus X .PP X mkfs /dev/hp0a 4807 X--- 96,108 ---- X .TP X .B t X Print the date the tape was written and the date X! the filesystem was dumped from. X .PP X The X .B r X option should only be used to restore X! a complete dump tape onto a clear filesystem X! or to restore an incremental dump tape into the filesystem. X Thus X .PP X mkfs /dev/hp0a 4807 X*************** X*** 100,105 **** X--- 110,127 ---- X restor r /dev/hp0a X .PP X is a typical sequence to restore a complete dump. X+ .PP X+ Instead of first writing a tape using dump and restoring the tape as above X+ \fIrestor\fP can be used in a pipeline. X+ For example to clone the root filesystem to another device. X+ .PP X+ newfs rl0a X+ dump 0f - / | restor rf - /dev/rrl0a X+ .sp X+ When cloning an active (mounted) filesystem you need to run \fIfsck\fP on the X+ target (rrl0a) after \fIrestor\fP to repair the unreferenced files and missing X+ blocks inconsistencies. X+ .PP X Another X .I restor X can be done to get an incremental dump X*************** X*** 112,118 **** X and a X .I restor X is used to X! change the size of a file system. X .SH FILES X .ta 2i X /dev/rmt1 default file name X--- 134,140 ---- X and a X .I restor X is used to X! change the size of a filesystem. X .SH FILES X .ta 2i X /dev/rmt1 default file name X*************** X*** 124,130 **** X There are various diagnostics X involved with reading the tape and writing the disk. X There are also diagnostics if the i-list or the free list X! of the file system is not large enough to hold the dump. X .PP X If the dump extends over more than one tape, X it may ask you to change tapes. X--- 146,152 ---- X There are various diagnostics X involved with reading the tape and writing the disk. X There are also diagnostics if the i-list or the free list X! of the filesystem is not large enough to hold the dump. X .PP X If the dump extends over more than one tape, X it may ask you to change tapes. X*************** X*** 137,141 **** X There is redundant information on the tape X that could be used in case of tape reading problems. X Unfortunately, X! .IR restor " X! does't use it. X--- 159,174 ---- X There is redundant information on the tape X that could be used in case of tape reading problems. X Unfortunately, X! .IR restor X! doesn't use it. X! .PP X! When reading from a pipe (standard input) \fIrestor\fP will not issue the X! "Last chance before scribbling on \fIdevice\fP" message and will not wait for X! a response. This is because getchar() would consume the first byte of data from X! \fIdump\fP thus corrupting the first block of data. X! .PP X! \fBx\fP and \fBR\fP commands are not allowed when reading stdin because the X! options make no sense when reading from dump input from a pipe \fBAND\fP X! prompting for a volume number would consume data from the stdin input X! data stream. X! X*** ./usr/src/sbin/umount/Makefile.old Sat Nov 16 23:54:39 1996 X--- ./usr/src/sbin/umount/Makefile Mon Dec 8 15:42:01 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/1/15 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD GTE) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= umount.c X OBJS= umount.o X MAN= umount.0 X--- 1,10 ---- X # X # Public Domain. 1996/1/15 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= umount.c X OBJS= umount.o X MAN= umount.0 X*************** X*** 13,19 **** X all: umount umount.0 X X umount: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X umount.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: umount umount.0 X X umount: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X umount.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 umount ${DESTDIR}/sbin/umount X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 umount /sbin/umount X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/badsect/Makefile.old Sun Nov 17 20:12:25 1996 X--- ./usr/src/sbin/badsect/Makefile Mon Dec 8 15:38:19 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= badsect.c X OBJS= badsect.o X MAN= badsect.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= badsect.c X OBJS= badsect.o X MAN= badsect.0 X*************** X*** 13,19 **** X all: badsect badsect.0 X X badsect: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X badsect.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: badsect badsect.0 X X badsect: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X badsect.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: badsect X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 badsect ${DESTDIR}/sbin/badsect X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: badsect X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 badsect /sbin/badsect X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/dmesg/Makefile.old Sat Sep 28 08:07:04 2024 X--- ./usr/src/sbin/dmesg/Makefile Mon Dec 8 15:39:27 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2024/9/28 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= dmesg.c X OBJS= dmesg.o X MAN= dmesg.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= dmesg.c X OBJS= dmesg.o X MAN= dmesg.0 X*************** X*** 13,19 **** X all: dmesg dmesg.0 X X dmesg: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X dmesg.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: dmesg dmesg.0 X X dmesg: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X dmesg.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: dmesg dmesg.0 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o bin -g kmem -m 2755 dmesg ${DESTDIR}/sbin/dmesg X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: dmesg dmesg.0 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g kmem -m 2755 dmesg /sbin/dmesg X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/slattach/Makefile.old Sun Nov 17 23:12:29 1996 X--- ./usr/src/sbin/slattach/Makefile Mon Dec 8 15:41:41 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= slattach.c X OBJS= slattach.o X MAN= slattach.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= slattach.c X OBJS= slattach.o X MAN= slattach.0 X*************** X*** 13,19 **** X all: slattach slattach.0 X X slattach: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X slattach.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: slattach slattach.0 X X slattach: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X slattach.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: slattach X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 slattach ${DESTDIR}/sbin/slattach X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: slattach X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 slattach /sbin/slattach X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/clri/Makefile.old Fri Nov 22 21:55:31 1996 X--- ./usr/src/sbin/clri/Makefile Mon Dec 8 15:39:21 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= clri.c X OBJS= clri.o X MAN= clri.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= clri.c X OBJS= clri.o X MAN= clri.0 X*************** X*** 13,19 **** X all: clri clri.0 X X clri: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X clri.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: clri clri.0 X X clri: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X clri.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: clri X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 clri ${DESTDIR}/sbin/clri X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: clri X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 clri /sbin/clri X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/icheck/Makefile.old Fri Nov 22 22:04:06 1996 X--- ./usr/src/sbin/icheck/Makefile Mon Dec 8 15:40:17 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= icheck.c X OBJS= icheck.o X MAN= icheck.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= icheck.c X OBJS= icheck.o X MAN= icheck.0 X*************** X*** 13,19 **** X all: icheck icheck.0 X X icheck: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X icheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: icheck icheck.0 X X icheck: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X icheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: icheck X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 icheck ${DESTDIR}/sbin/icheck X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: icheck X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 icheck /sbin/icheck X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/dcheck/Makefile.old Fri Nov 22 22:06:54 1996 X--- ./usr/src/sbin/dcheck/Makefile Mon Dec 8 15:39:25 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= dcheck.c X OBJS= dcheck.o X MAN= dcheck.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= dcheck.c X OBJS= dcheck.o X MAN= dcheck.0 X*************** X*** 13,19 **** X all: dcheck dcheck.0 X X dcheck: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X dcheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: dcheck dcheck.0 X X dcheck: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X dcheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: dcheck X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 dcheck ${DESTDIR}/sbin/dcheck X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: dcheck X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 dcheck /sbin/dcheck X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/ncheck/Makefile.old Fri Nov 22 22:09:21 1996 X--- ./usr/src/sbin/ncheck/Makefile Mon Dec 8 15:40:50 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= ncheck.c X OBJS= ncheck.o X MAN= ncheck.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= ncheck.c X OBJS= ncheck.o X MAN= ncheck.0 X*************** X*** 13,19 **** X all: ncheck ncheck.0 X X ncheck: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X ncheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: ncheck ncheck.0 X X ncheck: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X ncheck.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: ncheck X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 ncheck ${DESTDIR}/sbin/ncheck X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ncheck X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 ncheck /sbin/ncheck X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/gt307/Makefile.old Tue Aug 17 01:47:27 1999 X--- ./usr/src/sbin/gt307/Makefile Mon Dec 8 15:40:13 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1999/7/21 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1999/7/21 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= gt307.c X OBJS= gt307.o X MAN= gt307.0 X--- 1,10 ---- X # X # Public Domain. 1999/7/21 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= gt307.c X OBJS= gt307.o X MAN= gt307.0 X*************** X*** 13,19 **** X all: gt307 gt307.0 X X gt307: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X gt307.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: gt307 gt307.0 X X gt307: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X gt307.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: gt307 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 gt307 ${DESTDIR}/sbin/gt307 X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: gt307 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 gt307 /sbin/gt307 X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/sbin/gt307/gt307.8.old Tue Aug 17 01:47:28 1999 X--- ./usr/src/sbin/gt307/gt307.8 Fri Dec 26 01:53:21 2025 X*************** X*** 1,5 **** X .\" Public domain - 1999/7/21 - Steven Schultz X! .\" @(#)gt307.8 1.0 (2.11BSD) 1999/7/21 X .\" X .TH GT307 8 "July 21, 1999" X .UC 4 X--- 1,5 ---- X .\" Public domain - 1999/7/21 - Steven Schultz X! .\" @(#)gt307.8 1.1 (2.11BSD) 2025/12/26 X .\" X .TH GT307 8 "July 21, 1999" X .UC 4 X*************** X*** 75,78 **** X (robin@falstaf.demon.co.uk). X .PP X The Makefile, manpage and integration into X! 2.11BSD were done by Steven Schultz (sms@moe.2bsd.com). X--- 75,78 ---- X (robin@falstaf.demon.co.uk). X .PP X The Makefile, manpage and integration into X! 2.11BSD were done by Steven Schultz (sms@2bsd.com). X*** ./usr/src/sbin/Makefile.old Tue Aug 17 01:47:06 1999 X--- ./usr/src/sbin/Makefile Mon Dec 8 19:49:16 2025 X*************** X*** 1,27 **** X # X # Public domain - 1996/10/26 - sms X # X! # @(#)Makefile 1.3 (2.11BSD) 1999/7/21 X # X- DESTDIR= X CFLAGS= -O X- SEPFLAG= -i X X! SUBDIR= XNSrouted badsect clri dcheck dmesg dump dumpfs fsck gt307 icheck \ X ifconfig init mkfs mknod mkpasswd mount ncheck newfs \ X quotacheck reboot restor route routed savecore \ X! shutdown slattach swapon testnet tunefs umount X X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} all X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X--- 1,25 ---- X # X # Public domain - 1996/10/26 - sms X # X! # @(#)Makefile 1.4 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X X! SUBDIR= badsect clri dcheck dmesg dump fsck gt307 icheck \ X ifconfig init mkfs mknod mkpasswd mount ncheck newfs \ X quotacheck reboot restor route routed savecore \ X! shutdown slattach testnet umount X X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} all X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X*** ./usr/src/share/ms/Makefile.old Mon Oct 21 22:12:04 1996 X--- ./usr/src/share/ms/Makefile Tue Nov 25 18:20:27 2025 X*************** X*** 1,10 **** X # X # Public domain - 1996/10/21 - sms. X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/10/21 X # X- # Makefile for -ms macros X- # X X SRCS= README end.awk endnote s.acc s.cov s.eqn s.ref s.tbl s.ths s.toc X X--- 1,8 ---- X # X # Public domain - 1996/10/21 - sms. X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X X SRCS= README end.awk endnote s.acc s.cov s.eqn s.ref s.tbl s.ths s.toc X X*************** X*** 13,19 **** X install:${SRCS} X -mkdir -p /usr/share/ms X -chmod a+r /usr/share/ms X! install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/ms X! chmod a+x ${DESTDIR}/usr/share/ms/endnote X X clean: X--- 11,17 ---- X install:${SRCS} X -mkdir -p /usr/share/ms X -chmod a+r /usr/share/ms X! install -c -m 444 ${SRCS} /usr/share/ms X! chmod a+x /usr/share/ms/endnote X X clean: X*** ./usr/src/share/me/Makefile.old Mon Oct 21 22:49:17 1996 X--- ./usr/src/share/me/Makefile Tue Nov 25 18:13:08 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.1.1 (2.11BSD) 1996/10/21 X # X # Makefile for -me macros X # X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 6.1.2 (2.11BSD) 2025/11/25 X # X # Makefile for -me macros X # X*************** X*** 10,16 **** X # This makefile strips comments from the source files and X # installs them in the expected directories. X # X- DESTDIR= X LIB = /usr/share/me X X SRCS = tmac.e acm.me chars.me deltext.me eqn.me \ X--- 10,15 ---- X*************** X*** 22,30 **** X all: revisions $(SRCS) X X install: revisions $(SRCS) X! -if [ ! -d ${DESTDIR}${LIB} ]; then \ X! rm -f ${DESTDIR}${LIB}; \ X! mkdir ${DESTDIR}${LIB}; \ X fi X -for i in ${SRCS}; do \ X sed -e '/%beginstrip%/{' \ X--- 21,29 ---- X all: revisions $(SRCS) X X install: revisions $(SRCS) X! -if [ ! -d ${LIB} ]; then \ X! rm -f ${LIB}; \ X! mkdir ${LIB}; \ X fi X -for i in ${SRCS}; do \ X sed -e '/%beginstrip%/{' \ X*************** X*** 35,45 **** X -e '/%beginstrip%/,$$s/[. ][ ]*\\".*//' \ X -e '/^$$/d' \ X -e '/\\n@/d' $$i > _mac_tmp_; \ X! install -m 0444 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \ X done X! -mkdir -p ${DESTDIR}/usr/share/tmac X! mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/share/tmac/tmac.e X! install -c -m 0444 revisions ${DESTDIR}${LIB}/revisions X! install -c -m 444 ${MISC} ${DESTDIR}${LIB} X X clean: X--- 34,44 ---- X -e '/%beginstrip%/,$$s/[. ][ ]*\\".*//' \ X -e '/^$$/d' \ X -e '/\\n@/d' $$i > _mac_tmp_; \ X! install -m 0444 _mac_tmp_ ${LIB}/$$i; \ X done X! -mkdir -p /usr/share/tmac X! mv ${LIB}/tmac.e /usr/share/tmac/tmac.e X! install -c -m 0444 revisions ${LIB}/revisions X! install -c -m 444 ${MISC} ${LIB} X X clean: X*** ./usr/src/share/misc/Makefile.old Sat Nov 16 21:16:56 1996 X--- ./usr/src/share/misc/Makefile Mon Dec 8 19:57:19 2025 X*************** X*** 1,19 **** X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.2 (2.11BSD) 1996/11/16 X # X # Makefile for misc data files (lib.b from 'bc', usw.) X # X X! SRCS= eign lib.b Mail.help Mail.tildehelp units gprof.callg gprof.flat \ X vlpmacs mkproto.data X X all: ${SRCS} X X install:${SRCS} X! -mkdir -p ${DESTDIR}/usr/share/misc X! -chmod a+r,a+x ${DESTDIR}/usr/share/misc X! install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/misc X X clean: X--- 1,19 ---- 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 install:${SRCS} X! -mkdir -p /usr/share/misc X! -chmod a+r,a+x /usr/share/misc X! install -c -m 444 ${SRCS} /usr/share/misc X X clean: X*** ./usr/src/share/zoneinfo/Makefile.old Sat Nov 23 13:38:38 2019 X--- ./usr/src/share/zoneinfo/Makefile Mon Dec 8 15:33:54 2025 X*************** X*** 1,7 **** X! # @(#)Makefile 1.8 Makefile (2.11BSD) 2019/11/21 X X- DESTDIR= X- X # If you want code inspired by certain emerging standards, add X # -DSTD_INSPIRED X # to the end of the "CFLAGS=" line. X--- 1,5 ---- X! # @(#)Makefile 1.9 Makefile (2.11BSD) 2025/11/25 X X # If you want code inspired by certain emerging standards, add X # -DSTD_INSPIRED X # to the end of the "CFLAGS=" line. X*************** X*** 11,17 **** X # (and add solar87 to the DATA= line below). X X CFLAGS= -O X! SEPFLAG=-i X LINTFLAGS= -phbaxc X CC= cc X X--- 9,15 ---- X # (and add solar87 to the DATA= line below). X X CFLAGS= -O X! LDFLAGS=-i X LINTFLAGS= -phbaxc X CC= cc X X*************** X*** 28,44 **** X ZDUMANSRC= zdump.8 X MAN= $(ZICMAN) $(ZDUMAN) X MANSRC= $(ZICMANSRC) $(ZDUMAN) X! SHARDIR= ${DESTDIR}/usr/share/zoneinfo X! MANDIR= ${DESTDIR}/usr/man/cat8 X X all: zdump zic ${ZICMAN} ${ZDUMAN} X X install: zic $(DATA) $(MAN) X (umask 22; ./zic -d ${SHARDIR} $(DATA)) X! install -c -m 444 -o bin -g bin $(ZICMAN) ${MANDIR}/${ZICMAN} X! install -c -m 444 -o bin -g bin $(ZDUMAN) ${MANDIR}/${ZDUMAN} X! install -c -s -m 755 -o bin -g bin zic ${DESTDIR}/usr/sbin/zic X! install -c -s -m 755 -o bin -g bin zdump ${DESTDIR}/usr/sbin/zdump X X zdump.0: $(ZDUMANSRC) X /usr/man/manroff $(ZDUMANSRC) > $(ZDUMAN) X--- 26,42 ---- X ZDUMANSRC= zdump.8 X MAN= $(ZICMAN) $(ZDUMAN) X MANSRC= $(ZICMANSRC) $(ZDUMAN) X! SHARDIR= /usr/share/zoneinfo X! MANDIR= /usr/man/cat8 X X all: zdump zic ${ZICMAN} ${ZDUMAN} X X install: zic $(DATA) $(MAN) X (umask 22; ./zic -d ${SHARDIR} $(DATA)) X! install -c -m 444 -o root -g staff $(ZICMAN) ${MANDIR}/${ZICMAN} X! install -c -m 444 -o root -g staff $(ZDUMAN) ${MANDIR}/${ZDUMAN} X! install -c -s -m 755 -o root -g staff zic /usr/sbin/zic X! install -c -s -m 755 -o root -g staff zdump /usr/sbin/zdump X X zdump.0: $(ZDUMANSRC) X /usr/man/manroff $(ZDUMANSRC) > $(ZDUMAN) X*************** X*** 47,56 **** X /usr/man/manroff $(ZICMANSRC) > $(ZICMAN) X X zdump: $(TZDOBJS) X! $(CC) $(CFLAGS) $(LFLAGS) $(SEPFLAG) $(TZDOBJS) -o $@ X X zic: $(TZCOBJS) X! $(CC) $(CFLAGS) $(LFLAGS) $(SEPFLAG) $(TZCOBJS) -o $@ X X lint: $(TZCSRCS) $(TZDSRCS) X lint $(LINTFLAGS) $(CFLAGS) $(TZCSRCS) X--- 45,54 ---- X /usr/man/manroff $(ZICMANSRC) > $(ZICMAN) X X zdump: $(TZDOBJS) X! $(CC) $(CFLAGS) $(LFLAGS) $(LDFLAGS) $(TZDOBJS) -o $@ X X zic: $(TZCOBJS) X! $(CC) $(CFLAGS) $(LFLAGS) $(LDFLAGS) $(TZCOBJS) -o $@ X X lint: $(TZCSRCS) $(TZDSRCS) X lint $(LINTFLAGS) $(CFLAGS) $(TZCSRCS) X*** ./usr/src/share/zoneinfo/zic.c.old Mon Mar 30 19:13:39 1987 X--- ./usr/src/share/zoneinfo/zic.c Fri Dec 26 21:18:43 2025 X*************** X*** 1,5 **** X /* X! * @(#)zic.c 1.1 zic.c 3/4/87 X */ X X #include "stdio.h" X--- 1,5 ---- X /* X! * @(#)zic.c 1.2 (2.11BSD) 2025/12/26 X */ X X #include "stdio.h" X*************** X*** 26,32 **** X extern char * optarg; X extern int optind; X extern char * scheck(); X- extern char * sprintf(); X X static addtt(); X static addtype(); X--- 26,31 ---- X*** ./usr/src/share/zoneinfo/zdump.c.old Mon Mar 30 19:13:39 1987 X--- ./usr/src/share/zoneinfo/zdump.c Fri Dec 26 21:18:28 2025 X*************** X*** 1,5 **** X /* X! * @(#)zdump.c 1.1 zdump.c 3/4/87 X */ X X #include "stdio.h" X--- 1,5 ---- X /* X! * @(#)zdump.c 1.2 (2.11BSD) 2025/12/26 X */ X X #include "stdio.h" X*************** X*** 13,26 **** X #define FALSE 0 X #endif X X- extern char * asctime(); X extern char ** environ; X- extern struct tm * gmtime(); X extern char * imalloc(); X extern char * optarg; X extern int optind; X- extern char * sprintf(); X- extern long time(); X extern char * tzname[2]; X extern void tzset(); X X--- 13,22 ---- X*** ./usr/src/share/adb/Makefile.old Mon Oct 21 23:14:00 1996 X--- ./usr/src/share/adb/Makefile Tue Nov 25 18:16:55 2025 X*************** X*** 1,10 **** X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/10/21 X # X- # Makefile for adb scripts 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--- 1,8 ---- 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*** 12,19 **** X all: ${SRCS} X X install:${SRCS} X! -mkdir -p ${DESTDIR}/usr/share/adb X! -chmod a+r,a+x ${DESTDIR}/usr/share/adb X! install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/adb X X clean: X--- 10,17 ---- X all: ${SRCS} X 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*** ./usr/src/share/termcap/Makefile.old Tue Sep 23 00:44:51 1997 X--- ./usr/src/share/termcap/Makefile Tue Nov 25 18:21:46 2025 X*************** X*** 3,30 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2.4 (2.11BSD GTE) 1997/9/22 X # X # reorder gives an editor command for most common terminals X # (in reverse order from n'th to 1'st most commonly used) X # to move them to the front of termcap X # X- DESTDIR = X X termcap: reorder termcap.src X ex - termcap.src < reorder X X install: termcap tabset map3270 X! install -c -m 444 termcap ${DESTDIR}/usr/share/misc/termcap X! rm -f ${DESTDIR}/etc/termcap X! ln -s ../usr/share/misc/termcap ${DESTDIR}/etc/termcap X! install -c -m 444 map3270 ${DESTDIR}/usr/share/misc/map3270 X X tabset: FRC X! rm -fr ${DESTDIR}/usr/share/tabset X! mkdir ${DESTDIR}/usr/share/tabset X! chmod 755 ${DESTDIR}/usr/share/tabset X! install -c -m 444 tabset/* ${DESTDIR}/usr/share/tabset X X clean: X rm -f termcap X--- 3,29 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2.5 (2.11BSD) 2025/11/25 X # X # reorder gives an editor command for most common terminals X # (in reverse order from n'th to 1'st most commonly used) X # to move them to the front of termcap X # X X termcap: reorder termcap.src X ex - termcap.src < reorder X X install: termcap tabset map3270 X! install -c -m 444 termcap /usr/share/misc/termcap X! rm -f /etc/termcap X! ln -s ../usr/share/misc/termcap /etc/termcap X! install -c -m 444 map3270 /usr/share/misc/map3270 X X tabset: FRC X! rm -fr /usr/share/tabset X! mkdir /usr/share/tabset X! chmod 755 /usr/share/tabset X! install -c -m 444 tabset/* /usr/share/tabset X X clean: X rm -f termcap X*** ./usr/src/share/fontinfo/Makefile.old Tue Oct 22 23:26:59 1996 X--- ./usr/src/share/fontinfo/Makefile Tue Nov 25 18:18:03 2025 X*************** X*** 1,9 **** X # Public domain - 1996/10/22 - sms X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/10/22 X # X- # Makefile for fontinfo files. X- # X X SRCS= apl basker.b basker.i basker.r bocklin bodoni.b bodoni.i bodoni.r \ X chess clarendon cm.b cm.i cm.r countdown cyrillic delegate.b \ X--- 1,7 ---- X # Public domain - 1996/10/22 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X X SRCS= apl basker.b basker.i basker.r bocklin bodoni.b bodoni.i bodoni.r \ X chess clarendon cm.b cm.i cm.r countdown cyrillic delegate.b \ X*************** X*** 16,23 **** X all: ${SRCS} X X install:${SRCS} X! -mkdir -p ${DESTDIR}/usr/share/fontinfo X! -chmod a+r,a+x ${DESTDIR}/usr/share/fontinfo X! install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/fontinfo X X clean: X--- 14,21 ---- X all: ${SRCS} X X install:${SRCS} X! -mkdir -p /usr/share/fontinfo X! -chmod a+r,a+x /usr/share/fontinfo X! install -c -m 444 ${SRCS} /usr/share/fontinfo X X clean: X*** ./usr/src/share/font/Makefile.old Wed Oct 23 23:51:23 1996 X--- ./usr/src/share/font/Makefile Tue Nov 25 18:17:29 2025 X*************** X*** 1,7 **** X # X # Public domain - 1996/10/23 - sms X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/10/23 X # X # Makefile for the troff/nroff fonts X # X--- 1,7 ---- X # X # Public domain - 1996/10/23 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X # Makefile for the troff/nroff fonts X # X*************** X*** 17,24 **** X all: ${SRCS} X X install:${SRCS} X! -mkdir -p ${DESTDIR}/usr/share/font X! -chmod a+r,a+x ${DESTDIR}/usr/share/font X! install -c -m 444 ${SRCS} ${DESTDIR}/usr/share/font X X clean: X--- 17,24 ---- X all: ${SRCS} X X install:${SRCS} X! -mkdir -p /usr/share/font X! -chmod a+r,a+x /usr/share/font X! install -c -m 444 ${SRCS} /usr/share/font X X clean: X*** ./usr/src/share/learn/Makefile.old Tue Oct 29 00:14:58 1996 X--- ./usr/src/share/learn/Makefile Tue Dec 9 15:05:26 2025 X*************** X*** 2,36 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.3.1 (2.11BSD) 1996/10/24 X # X LESSONS=C editor eqn files macros morefiles vi X FILES= Linfo Xinfo X- DESTDIR= X X all: X X install: ${LESSONS} ${FILES} X! -mkdir -p ${DESTDIR}/usr/share/learn \ X! ${DESTDIR}/var/log/learn \ X! ${DESTDIR}/usr/share/learn/bin X! chown root.staff ${DESTDIR}/usr/share/learn \ X! ${DESTDIR}/usr/share/learn/bin X! chmod 755 ${DESTDIR}/usr/share/learn \ X! ${DESTDIR}/var/log/learn \ X! ${DESTDIR}/usr/share/learn/bin X @for i in ${LESSONS}; do \ X! touch ${DESTDIR}/var/log/learn/$$i; \ X! chmod 666 ${DESTDIR}/var/log/learn/$$i; \ X done X @for i in ${FILES}; do \ X echo copy $$i; \ X! install -c -m 644 $$i ${DESTDIR}/usr/share/learn/$$i; \ X done X # For some unknown reason the following line sometimes fails with an X # exit -115 ... X! -tar cf - ${LESSONS} | (cd ${DESTDIR}/usr/share/learn; tar xpf -) X! -chmod 555 ${DESTDIR}/usr/share/learn/*/Init X! cd ${DESTDIR}/usr/share/learn/C; cc -O -c getline.c getnum.c X X clean: X--- 2,35 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.3.2 (2.11BSD) 2025/11/25 X # X LESSONS=C editor eqn files macros morefiles vi X FILES= Linfo Xinfo X X all: X X install: ${LESSONS} ${FILES} X! -mkdir -p /usr/share/learn \ X! /var/log/learn \ X! /usr/share/learn/bin X! chown root.staff /usr/share/learn \ X! /usr/share/learn/bin X! chmod 755 /usr/share/learn \ X! /var/log/learn \ X! /usr/share/learn/bin X @for i in ${LESSONS}; do \ X! touch /var/log/learn/$$i; \ X! chmod 666 /var/log/learn/$$i; \ X done X @for i in ${FILES}; do \ X echo copy $$i; \ X! install -c -m 644 $$i /usr/share/learn/$$i; \ X done X # For some unknown reason the following line sometimes fails with an X # exit -115 ... X! -tar cf - ${LESSONS} | (cd /usr/share/learn; tar xpf -) X! -chmod 555 /usr/share/learn/*/Init X! cd /usr/share/learn/C; cc -O -c getline.c getnum.c X X clean: X*** ./usr/src/share/Makefile.old Fri Nov 29 22:19:22 1996 X--- ./usr/src/share/Makefile Wed Dec 24 19:20:23 2025 X*************** X*** 1,24 **** X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 1996/11/29 X # X- DESTDIR= X CFLAGS= -O X- SEPFLAG= -i X X! SUBDIR= adb font fontinfo learn me misc ms tmac termcap lint zoneinfo X X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X--- 1,22 ---- X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X X! SUBDIR= adb font fontinfo learn me misc ms tmac termcap zoneinfo X X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X*** ./usr/src/ucb/Mail/Makefile.old Fri Oct 31 23:15:24 1997 X--- ./usr/src/ucb/Mail/Makefile Mon Dec 8 23:24:38 2025 X*************** X*** 1,4 **** X! # @(#)Makefile 5.16.2 (2.11BSD) 1996/10/31 X X SRCS= version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \ X getname.c head.c v7.local.c lex.c list.c main.c names.c popen.c \ X--- 1,4 ---- X! # @(#)Makefile 5.16.3 (2.11BSD) 2025/11/25 X X SRCS= version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \ X getname.c head.c v7.local.c lex.c list.c main.c names.c popen.c \ X*************** X*** 9,15 **** X # X CFLAGS= -O X XSTR= /usr/ucb/xstr X- DESTDIR= X CTAGS= /usr/ucb/ctags -w X LIBES= X AS= -as X--- 9,14 ---- X*************** X*** 36,45 **** X @size Mail X X install: all X! install -s Mail ${DESTDIR}/usr/ucb/Mail X! install -s fmt ${DESTDIR}/usr/ucb/fmt X! cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail X! install -c -m 444 Mail.rc ${DESTDIR}/etc/Mail.rc X X tags: $(SRCS) X ${CTAGS} $(SRCS); X--- 35,44 ---- X @size Mail X X install: all X! install -c -s -m 755 Mail /usr/ucb/Mail X! install -c -s -m 755 fmt /usr/ucb/fmt X! cd /usr/ucb; rm -f mail; ln Mail mail X! install -c -m 444 Mail.rc /etc/Mail.rc X X tags: $(SRCS) X ${CTAGS} $(SRCS); X*** ./usr/src/ucb/msgs/Makefile.old Mon Jan 18 11:35:57 1993 X--- ./usr/src/ucb/msgs/Makefile Tue Dec 23 12:06:25 2025 X*************** X*** 3,20 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1 (Berkeley) 6/4/85 X # X # X CFLAGS=-O X! SEPFLAG= -i X SRCS = msgs.c msgs.h Makefile X! msgs: msgs.c msgs.h X! cc ${SEPFLAG} $(CFLAGS) -o msgs msgs.c -ltermlib X install: msgs X! install -s msgs ${DESTDIR}/usr/ucb X clean: X! -rm -f msgs X! sources: $(SRCS) X! $(SRCS): X! sccs get $@ X--- 3,23 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/26 X # X # X CFLAGS=-O X! LDFLAGS=-i X SRCS = msgs.c msgs.h Makefile X! OBJS = msgs.o X! X! all: msgs X! X! msgs: ${OBJS} X! cc ${LDFLAGS} -o msgs ${OBJS} -ltermlib X! X install: msgs X! install -c -s -m 755 -o root msgs /usr/ucb X! X clean: X! -rm -f msgs ${OBJS} X*** ./usr/src/ucb/ex/Makefile.old Mon Jan 20 11:45:30 2020 X--- ./usr/src/ucb/ex/Makefile Mon Dec 8 23:25:45 2025 X*************** X*** 3,21 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 7.13.2 (2.11BSD) 2020/1/21 X # X VERSION=3.7 X # X- # NB: This makefile doesn't indicate any dependencies on header files. X- # X # Ex is very large - this version will not fit on PDP-11's without overlay X # software. Things that can be turned off to save X # space include LISPCODE (-l flag, showmatch and lisp options), CHDIR (the X! # undocumented chdir command.) VMUNIX makes ex considerably larger, raising X! # many limits and improving speed and simplicity of maintenance. It is X! # suitable only for a VAX or other large machine, and then probably only in X! # a paged system. X # X # Don't define VFORK unless your system has the VFORK system call, X # which is like fork but the two processes have only one data space until the X--- 3,16 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 7.13.3 (2.11BSD) 2025/11/26 X # X VERSION=3.7 X # X # Ex is very large - this version will not fit on PDP-11's without overlay X # software. Things that can be turned off to save X # space include LISPCODE (-l flag, showmatch and lisp options), CHDIR (the X! # undocumented chdir command.) X # X # Don't define VFORK unless your system has the VFORK system call, X # which is like fork but the two processes have only one data space until the X*************** X*** 26,47 **** X BINDIR= /usr/ucb X SBINDIR= /usr/sbin X MISCDIR= /usr/share/misc X- FOLD= ${BINDIR}/fold X CTAGS= ${BINDIR}/ctags X XSTR= ${BINDIR}/xstr X DEBUGFLAGS= -DTRACE -g X NONDEBUGFLAGS= -O X DEB= ${NONDEBUGFLAGS} # or ${DEBUGFLAGS} to to debug X- #OPTIONS= -DLISPCODE -DCHDIR -DVFORK -DVMUNIX -DFASTTAG X OPTIONS= -DLISPCODE -DCHDIR -DVFORK -DFASTTAG -DTEMP512K X CFLAGS= -DTABS=8 ${OPTIONS} ${DEB} X! LDFLAGS= -X X! SEPFLAG= -i X TERMLIB= -ltermcap X MKSTR= ${BINDIR}/mkstr X- CXREF= ${BINDIR}/cxref X- INCLUDE=/usr/include X- PR= pr X OBJS= ex.o ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o \ X ex_data.o ex_extern.o ex_get.o ex_io.o ex_put.o ex_re.o \ X ex_set.o ex_subr.o ex_tagio.o ex_temp.o ex_tty.o ex_unix.o \ X--- 21,36 ---- X BINDIR= /usr/ucb X SBINDIR= /usr/sbin X MISCDIR= /usr/share/misc X CTAGS= ${BINDIR}/ctags X XSTR= ${BINDIR}/xstr X DEBUGFLAGS= -DTRACE -g X NONDEBUGFLAGS= -O X DEB= ${NONDEBUGFLAGS} # or ${DEBUGFLAGS} to to debug X OPTIONS= -DLISPCODE -DCHDIR -DVFORK -DFASTTAG -DTEMP512K X CFLAGS= -DTABS=8 ${OPTIONS} ${DEB} X! LDFLAGS= -X -i X TERMLIB= -ltermcap X MKSTR= ${BINDIR}/mkstr X OBJS= ex.o ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o \ X ex_data.o ex_extern.o ex_get.o ex_io.o ex_put.o ex_re.o \ X ex_set.o ex_subr.o ex_tagio.o ex_temp.o ex_tty.o ex_unix.o \ X*************** X*** 55,99 **** X SRC4= ex_v.c ex_vadj.c ex_vget.c ex_vmain.c ex_voper.c X SRC5= ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c X SRC6= printf.c expreserve.c exrecover.c X- MISC= makefile READ_ME X- VGRIND= csh /usr/ucb/vgrind X- VHDR= "Ex Version ${VERSION}" X X .c.o: X- # ifdef VMUNIX X- # ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c - X- # else X ${MKSTR} - exstrings x $*.c X ${CC} -E ${CFLAGS} x$*.c | ${XSTR} -c - X rm -f x$*.c X! # endif X! ${CC} ${CFLAGS} -c x.c X mv x.o $*.o X X all: a.out exrecover expreserve X X- # 11/23, 34, 40 and other non split I/D machines X- # each of the 6 overlays must stay less than 16K. X- X a.out: ${OBJS} X! -if [ X${SEPFLAG} = X-i ]; then \ X! ld ${LDFLAGS} /lib/crt0.o ${SEPFLAG} \ X! -Z ex_voper.o ex_vget.o ex_vops.o ex_vops2.o ex_vops3.o \ X! -Z ex_set.o ex_re.o ex_io.o ex_tty.o ex_unix.o ex.o ex_v.o \ X! -Y ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o ex_tagio.o \ X! ex_get.o ex_temp.o ex_vadj.o ex_vmain.o ex_vwind.o\ X! ex_vput.o ex_put.o ex_subr.o printf.o strings.o \ X! ex_data.o ex_extern.o ${TERMLIB} -lc; \ X! else \ X! ld ${LDFLAGS} /lib/crt0.o ${SEPFLAG} \ X! -Z ex_cmds.o ex_cmds2.o ex_cmdsub.o ex_tagio.o ex_re.o \ X! -Z ex_vadj.o ex_vmain.o ex_voper.o ex_vwind.o ex_vops3.o\ X! -Z ex_v.o ex_vget.o ex_vops.o ex_vops2.o ex_vput.o\ X! -Z ex_get.o ex_io.o ex_temp.o ex_tty.o ex_unix.o \ X! ex_addr.o ex.o ex_set.o \ X! -Z ex_put.o ex_subr.o ${TERMLIB} \ X! -Y ex_data.o ex_extern.o printf.o strings.o -lc; \ X! fi X X tags: /tmp X ${CTAGS} -w ex.[hc] ex_*.[hc] X--- 44,67 ---- X SRC4= ex_v.c ex_vadj.c ex_vget.c ex_vmain.c ex_voper.c X SRC5= ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c X SRC6= printf.c expreserve.c exrecover.c X X .c.o: X ${MKSTR} - exstrings x $*.c X ${CC} -E ${CFLAGS} x$*.c | ${XSTR} -c - X rm -f x$*.c X! ${CC} ${CFLAGS} -c x.c X mv x.o $*.o X X all: a.out exrecover expreserve X X a.out: ${OBJS} X! ld ${LDFLAGS} /lib/crt0.o \ X! -Z ex_voper.o ex_vget.o ex_vops.o ex_vops2.o ex_vops3.o \ X! -Z ex_set.o ex_re.o ex_io.o ex_tty.o ex_unix.o ex.o ex_v.o \ X! -Y ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o ex_tagio.o \ X! ex_get.o ex_temp.o ex_vadj.o ex_vmain.o ex_vwind.o\ X! ex_vput.o ex_put.o ex_subr.o printf.o strings.o \ X! ex_data.o ex_extern.o ${TERMLIB} -lc X X tags: /tmp X ${CTAGS} -w ex.[hc] ex_*.[hc] X*************** X*** 109,124 **** X ${CC} -c -o strings.o xs.c X X exrecover: exrecover.o ex_extern.o X! ${CC} ${SEPFLAG} ${CFLAGS} exrecover.o ex_extern.o -o exrecover X X exrecover.o: exrecover.c X! ${CC} ${CFLAGS} -c -O exrecover.c X X expreserve: expreserve.o X! ${CC} ${SEPFLAG} expreserve.o -o expreserve X X expreserve.o: X! ${CC} ${CFLAGS} -c -O expreserve.c X X clean: X # If we dont have ex we cant make it so don't rm ex_vars.h X--- 77,92 ---- X ${CC} -c -o strings.o xs.c X X exrecover: exrecover.o ex_extern.o X! ${CC} ${LDFLAGS} exrecover.o ex_extern.o -o exrecover X X exrecover.o: exrecover.c X! ${CC} ${CFLAGS} -c exrecover.c X X expreserve: expreserve.o X! ${CC} ${LDFLAGS} expreserve.o -o expreserve X X expreserve.o: X! ${CC} ${CFLAGS} -c expreserve.c X X clean: X # If we dont have ex we cant make it so don't rm ex_vars.h X*************** X*** 127,175 **** X X # install in standard place (/usr/ucb) X install: a.out exrecover expreserve X! -rm -f ${DESTDIR}/${BINDIR}/ex X! -rm -f ${DESTDIR}/${BINDIR}/vi X! -rm -f ${DESTDIR}/${BINDIR}/view X! -rm -f ${DESTDIR}/usr/bin/ex X! install -s -m 1755 a.out ${DESTDIR}/${BINDIR}/ex X! install -c -m 444 exstrings ${DESTDIR}/${MISCDIR}/exstrings X! ln ${DESTDIR}/${BINDIR}/ex ${DESTDIR}/${BINDIR}/vi X! ln ${DESTDIR}/${BINDIR}/ex ${DESTDIR}/${BINDIR}/view X! ln ${DESTDIR}/${BINDIR}/ex ${DESTDIR}/usr/bin/ex X! chmod 1755 ${DESTDIR}/${BINDIR}/ex X! install -s -o root -m 4755 exrecover ${DESTDIR}/${SBINDIR}/exrecover X! install -s -o root -m 4755 expreserve ${DESTDIR}/${SBINDIR}/expreserve X # The following line normally fails. This is OK. X! -mkdir ${DESTDIR}/usr/preserve X X lint: X! lint ${CFLAGS} ex.c ex_?*.c X! lint ${CFLAGS} -u exrecover.c X! lint ${CFLAGS} expreserve.c X! X! print: X! @${PR} READ* BUGS X! @${PR} makefile* X! @${PR} /etc/termcap X! @(size -l a.out ; size *.o) | ${PR} -h sizes X! @${PR} -h errno.h ${INCLUDE}/errno.h X! @${PR} -h setjmp.h ${INCLUDE}/setjmp.h X! @${PR} -h sgtty.h ${INCLUDE}/sgtty.h X! @${PR} -h signal.h ${INCLUDE}/signal.h X! @${PR} -h sys/stat.h ${INCLUDE}/sys/stat.h X! @${PR} -h sys/types.h ${INCLUDE}/sys/types.h X! @ls -ls | ${PR} X! @${CXREF} *.c | ${PR} -h XREF X! @${PR} *.h *.c X! X! vgrind: X! tee index < /dev/null X! ${VGRIND} -h ${VHDR} ${HDRS} X! ${VGRIND} -h ${VHDR} ${SRC1} X! ${VGRIND} -h ${VHDR} ${SRC2} X! ${VGRIND} -h ${VHDR} ${SRC3} X! ${VGRIND} -h ${VHDR} ${SRC4} X! ${VGRIND} -h ${VHDR} ${SRC5} X! ${VGRIND} -h ${VHDR} ${SRC6} X! ${VGRIND} -n -h ${VHDR} ${MISC} X! ${VGRIND} -i -h ${VHDR} index X--- 95,116 ---- X X # install in standard place (/usr/ucb) X install: a.out exrecover expreserve X! -rm -f ${BINDIR}/ex X! -rm -f ${BINDIR}/vi X! -rm -f ${BINDIR}/view X! -rm -f /usr/bin/ex X! install -c -s -m 1755 a.out ${BINDIR}/ex X! install -c -m 444 exstrings ${MISCDIR}/exstrings X! ln ${BINDIR}/ex ${BINDIR}/vi X! ln ${BINDIR}/ex ${BINDIR}/view X! ln ${BINDIR}/ex /usr/bin/ex X! chmod 1755 ${BINDIR}/ex X! install -s -o root -m 4755 exrecover ${SBINDIR}/exrecover X! install -s -o root -m 4755 expreserve ${SBINDIR}/expreserve X # The following line normally fails. This is OK. X! -mkdir /usr/preserve X X lint: X! lint -haxc ex.c ex_?*.c X! lint -haxcu exrecover.c X! lint -haxc expreserve.c X*** ./usr/src/ucb/ex/exrecover.c.old Sun Oct 27 00:31:10 1996 X--- ./usr/src/ucb/ex/exrecover.c Fri Dec 26 15:27:31 2025 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 = "@(#)exrecover.c 7.9.2 (2.11BSD) 1996/10/26"; X #endif X X #include /* mjm: BUFSIZ: stdio = 512, VMUNIX = 1024 */ X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char *sccsid = "@(#)exrecover.c 7.9.3 (2.11BSD) 2025/12/26"; X #endif X X #include /* mjm: BUFSIZ: stdio = 512, VMUNIX = 1024 */ X*************** X*** 42,54 **** X */ X X /* X- * For lint's sake... X- */ X- #ifndef lint X- #define ignorl(a) a X- #endif X- X- /* X * This directory definition also appears (obviously) in expreserve.c. X * Change both if you change either. X */ X--- 42,47 ---- X*************** X*** 125,131 **** X */ X b = 0; X while (H.Flines > 0) { X! ignorl(lseek(tfile, (long) blocks[b] * BUFSIZ, 0)); X i = H.Flines < BUFSIZ / sizeof (line) ? X H.Flines * sizeof (line) : BUFSIZ; X if (read(tfile, (char *) dot, i) != i) { X--- 118,124 ---- X */ X b = 0; X while (H.Flines > 0) { X! lseek(tfile, (long) blocks[b] * BUFSIZ, 0); X i = H.Flines < BUFSIZ / sizeof (line) ? X H.Flines * sizeof (line) : BUFSIZ; X if (read(tfile, (char *) dot, i) != i) { X*************** X*** 402,408 **** X */ X tfile = bestfd; X CP(nb, bestnb); X! ignorl(lseek(tfile, 0l, 0)); X X /* X * Gotta be able to read the header or fall through X--- 395,401 ---- X */ X tfile = bestfd; X CP(nb, bestnb); X! lseek(tfile, 0l, 0); X X /* X * Gotta be able to read the header or fall through X*************** X*** 500,506 **** X * puts a word LOST in the header block, so that lost lines X * can be made to point at it. X */ X! ignorl(lseek(tfile, (long)(BUFSIZ*HBLKS-8), 0)); X ignore(write(tfile, "LOST", 5)); X return (1); X } X--- 493,499 ---- X * puts a word LOST in the header block, so that lost lines X * can be made to point at it. X */ X! lseek(tfile, (long)(BUFSIZ*HBLKS-8), 0); X ignore(write(tfile, "LOST", 5)); X return (1); X } X*************** X*** 546,552 **** X * if the last block is. X */ X while (bno > 0) { X! ignorl(lseek(tfile, (long) BUFSIZ * bno, 0)); X cnt = read(tfile, (char *) bk, BUFSIZ); X while (cnt > 0) X if (bk[--cnt] == 0) X--- 539,545 ---- X * if the last block is. X */ X while (bno > 0) { X! lseek(tfile, (long) BUFSIZ * bno, 0); X cnt = read(tfile, (char *) bk, BUFSIZ); X while (cnt > 0) X if (bk[--cnt] == 0) X*************** X*** 598,636 **** X fprintf(stderr, "]"); X } X X- /* X- * Aw shucks, if we only had a (void) cast. X- */ X- #ifdef lint X- Ignorl(a) X- long a; X- { X- X- a = a; X- } X- X- Ignore(a) X- char *a; X- { X- X- a = a; X- } X- X- Ignorf(a) X- int (*a)(); X- { X- X- a = a; X- } X- X- ignorl(a) X- long a; X- { X- X- a = a; X- } X- #endif X- X int cntch, cntln, cntodd, cntnull; X /* X * Following routines stolen mercilessly from ex. X--- 591,596 ---- X*************** X*** 655,661 **** X if (--nib < 0) { X nib = fp - genbuf; X if (write(io, genbuf, nib) != nib) X! wrerror(); X cntch += nib; X nib = 511; X fp = genbuf; X--- 615,621 ---- X if (--nib < 0) { X nib = fp - genbuf; X if (write(io, genbuf, nib) != nib) X! syserror(); X cntch += nib; X nib = 511; X fp = genbuf; X*************** X*** 668,683 **** X } while (a1 <= addr2); X nib = fp - genbuf; X if (write(io, genbuf, nib) != nib) X! wrerror(); X cntch += nib; X } X X- wrerror() X- { X- X- syserror(); X- } X- X clrstats() X { X X--- 628,637 ---- X } while (a1 <= addr2); X nib = fp - genbuf; X if (write(io, genbuf, nib) != nib) X! syserror(); X cntch += nib; X } X X clrstats() X { X X*************** X*** 763,768 **** X--- 717,723 ---- X exit(1); X } X X+ #ifdef notanymore X /* X * Must avoid stdio because expreserve uses sbrk to do memory X * allocation and stdio uses malloc. X*************** X*** 779,781 **** X--- 734,737 ---- X sprintf(buf, fmt, a1, a2, a3, a4, a5); X write(2, buf, strlen(buf)); X } X+ #endif X*** ./usr/src/ucb/error/Makefile.old Mon Jan 18 11:35:49 1993 X--- ./usr/src/ucb/error/Makefile Wed Nov 26 09:25:20 2025 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.1 (Berkeley) 5/31/85 X # X # X # error.h error header file X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/26 X # X # X # error.h error header file X*************** X*** 16,39 **** X # X X HDRS = error.h X- PHDRS = $(HDRS) X SRCS = errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c errortouch.c X- PSRCS = $(SRCS) X OBJS = errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o errortouch.o X X! DFLAGS = -DDEBUG X! SEPFLAG= -i X CFLAGS = -O $(DFLAGS) X X! LINTFLAGS = $(DFLAGS) X X error: $(OBJS) X! $(CC) ${SEPFLAG} $(CFLAGS) $(OBJS) -o error X X $(OBJS): $(HDRS) X X install: error X! install -s error $(DESTDIR)/usr/ucb X X clean: X rm -f error $(OBJS) X--- 16,36 ---- X # X X HDRS = error.h X SRCS = errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c errortouch.c X OBJS = errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o errortouch.o X X! LDFLAGS= -i X CFLAGS = -O $(DFLAGS) X X! LINTFLAGS = -haxc X X error: $(OBJS) X! $(CC) ${LDFLAGS} $(OBJS) -o error X X $(OBJS): $(HDRS) X X install: error X! install -c -s -m 755 -o root error /usr/ucb X X clean: X rm -f error $(OBJS) X*************** X*** 40,48 **** X X lint: X lint $(LINTFLAGS) $(SRCS) X- X- psrcs: X- echo $(PHDRS) $(PSRCS) X- X- print: X- print $(PHDRS) $(PSRCS) X--- 37,39 ---- X*** ./usr/src/ucb/tset/Makefile.old Fri Mar 28 16:23:54 1997 X--- ./usr/src/ucb/tset/Makefile Mon Dec 8 23:32:11 2025 X*************** X*** 3,29 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4.1 (2.11BSD) 1997/3/28 X # X- DESTDIR= X CFLAGS=-O X! SEPFLAG= -i X X all: tset tset.0 X X tset: tset.o X! ${CC} ${SEPFLAG} ${CFLAGS} tset.o -o tset -ltermlib X X tset.0: tset.1 X /usr/man/manroff tset.1 > tset.0 X X install: all X! install -s tset ${DESTDIR}/usr/ucb X! rm -f ${DESTDIR}/usr/ucb/reset X! ln ${DESTDIR}/usr/ucb/tset ${DESTDIR}/usr/ucb/reset X! rm -f ${DESTDIR}/usr/man/cat1/reset.0 X! install -c -o bin -g bin -m 444 tset.0 ${DESTDIR}/usr/man/cat1/tset.0 X! ln ${DESTDIR}/usr/man/cat1/tset.0 ${DESTDIR}/usr/man/cat1/reset.0 X X clean: X rm -f *.o tset tset.o tset.0 tags X--- 3,28 ---- 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/25 X # X CFLAGS=-O X! LDFLAGS= -i X X all: tset tset.0 X X tset: tset.o X! ${CC} ${LDFLAGS} ${CFLAGS} tset.o -o tset -ltermlib X X tset.0: tset.1 X /usr/man/manroff tset.1 > tset.0 X X install: all X! install -c -s -m 755 tset /usr/ucb X! rm -f /usr/ucb/reset X! ln /usr/ucb/tset /usr/ucb/reset X! rm -f /usr/man/cat1/reset.0 X! install -c -o root -g staff -m 444 tset.0 /usr/man/cat1/tset.0 X! ln /usr/man/cat1/tset.0 /usr/man/cat1/reset.0 X X clean: X rm -f *.o tset tset.o tset.0 tags X*** ./usr/src/ucb/more/Makefile.old Sat Oct 18 19:46:42 1997 X--- ./usr/src/ucb/more/Makefile Wed Dec 24 15:54:00 2025 X*************** X*** 3,22 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 1997/10/17 X # X CFLAGS= -O X! SEPFLAG= -i X! DESTDIR= X X more: more.o X! ${CC} ${SEPFLAG} -o more more.o -ltermcap X X install: more more.help X! install -m 755 -s more ${DESTDIR}/usr/ucb/more X! rm -f ${DESTDIR}/usr/ucb/page X! ln ${DESTDIR}/usr/ucb/more ${DESTDIR}/usr/ucb/page X! install -m 444 -c more.help ${DESTDIR}/usr/share/misc/more.help X X clean: X rm -f more more.o core a.out errs X--- 3,21 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.3 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X X more: more.o X! ${CC} ${LDFLAGS} -o more more.o -ltermcap X X install: more more.help X! install -c -s -m 755 -o root -g staff more /usr/ucb/more X! rm -f /usr/ucb/page X! ln /usr/ucb/more /usr/ucb/page X! install -m 444 -c more.help /usr/share/misc/more.help X X clean: X rm -f more more.o core a.out errs X*** ./usr/src/ucb/more/more.c.old Tue Mar 25 17:35:17 2025 X--- ./usr/src/ucb/more/more.c Fri Dec 26 17:32:24 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)more.c 5.8 (2.11BSD) 2022/9/17"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)more.c 5.9 (2.11BSD) 2025/12/26"; X #endif X X /* X*************** X*** 350,356 **** X X /* Try to see whether it is an ASCII file */ X X! switch ((c | *f->_ptr << 8) & 0177777) { X case 0405: X case 0407: X case 0410: X--- 350,356 ---- X X /* Try to see whether it is an ASCII file */ X X! switch ((c | *f->_p << 8) & 0177777) { X case 0405: X case 0407: X case 0410: X*************** X*** 542,589 **** X putchar(c); X } X X- /* Simplified printf function */ X- X- printf (fmt, args) X- register char *fmt; X- int args; X- { X- register int *argp; X- register char ch; X- register int ccount; X- X- ccount = 0; X- argp = &args; X- while (*fmt) { X- while ((ch = *fmt++) != '%') { X- if (ch == '\0') X- return (ccount); X- ccount++; X- putchar (ch); X- } X- switch (*fmt++) { X- case 'd': X- ccount += printd (*argp); X- break; X- case 's': X- ccount += pr ((char *)*argp); X- break; X- case '%': X- ccount++; X- argp--; X- putchar ('%'); X- break; X- case '0': X- return (ccount); X- default: X- break; X- } X- ++argp; X- } X- return (ccount); X- X- } X- X /* X ** Print an integer as a string of decimal digits, X ** returning the length of the print representation. X--- 542,547 ---- X*************** X*** 1330,1336 **** X } X if (feof (file)) { X if (!no_intty) { X- file->_flag &= ~_IOEOF; /* why doesn't fseek do this ??!!??! */ X Currline = saveln; X Fseek (file, startline); X } X--- 1288,1293 ---- X*** ./usr/src/ucb/vgrind/Makefile.old Wed Oct 23 18:23:58 1996 X--- ./usr/src/ucb/vgrind/Makefile Mon Dec 8 23:33:39 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.1 (2.11BSD) 1996/10/23 X # X- DESTDIR= X CFLAGS=-O X! SEPFLAG= -i X SOURCES=vfontedpr.c vgrindefs.c regexp.c retest.c X CMDS=vfontedpr retest X OBJS=retest.o regexp.o vfontedpr.o vgrindefs.o X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 2025/11/25 X # X CFLAGS=-O X! LDFLAGS= -i X SOURCES=vfontedpr.c vgrindefs.c regexp.c retest.c X CMDS=vfontedpr retest X OBJS=retest.o regexp.o vfontedpr.o vgrindefs.o X*************** X*** 15,29 **** X all: $(CMDS) ${OBJS} X X vfontedpr: vfontedpr.o vgrindefs.o regexp.o X! cc ${SEPFLAG} ${CFLAGS} -o vfontedpr vfontedpr.o vgrindefs.o regexp.o X retest: retest.o regexp.o X! cc ${SEPFLAG} ${CFLAGS} -o retest retest.c regexp.o X X install: all X! install -s vfontedpr ${DESTDIR}/usr/libexec/vfontedpr X! install -c vgrind.sh ${DESTDIR}/usr/ucb/vgrind X! install -c -m 444 vgrindefs.src ${DESTDIR}/usr/share/misc/vgrindefs X! install -c -m 444 tmac.vgrind ${DESTDIR}/usr/share/tmac/tmac.vgrind X X clean: X rm -f ${CMDS} ${OBJS} X--- 14,28 ---- X all: $(CMDS) ${OBJS} X X vfontedpr: vfontedpr.o vgrindefs.o regexp.o X! cc ${LDFLAGS} ${CFLAGS} -o vfontedpr vfontedpr.o vgrindefs.o regexp.o X retest: retest.o regexp.o X! cc ${LDFLAGS} ${CFLAGS} -o retest retest.c regexp.o X X install: all X! install -c -s -m 755 -o root vfontedpr /usr/libexec/vfontedpr X! install -c -m 755 -o root vgrind.sh /usr/ucb/vgrind X! install -c -m 444 -o root vgrindefs.src /usr/share/misc/vgrindefs X! install -c -m 444 tmac.vgrind /usr/share/tmac/tmac.vgrind X X clean: X rm -f ${CMDS} ${OBJS} X*** ./usr/src/ucb/vgrind/vgrind.sh.old Wed Oct 30 00:26:44 1996 X--- ./usr/src/ucb/vgrind/vgrind.sh Thu Nov 27 21:04:04 2025 X*************** X*** 4,10 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)vgrind.sh 5.3.1 (2.11BSD) 1996/10/29 X # X # vgrind X # X--- 4,10 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)vgrind.sh 5.3.2 (2.11BSD) 2025/11/27 X # X # vgrind X # X*************** X*** 90,99 **** X else X if ("$head" != "") then X $b/vfontedpr $options -h "$head" $files | \ X! /bin/sh -c "vtroff -rx1 $voptions -i -mvgrind 2>> xindex" X else X $b/vfontedpr $options $files | \ X! /bin/sh -c "vtroff -rx1 $voptions -i -mvgrind 2>> xindex" X endif X endif X sort -df +0 -2 xindex >index X--- 90,99 ---- X else X if ("$head" != "") then X $b/vfontedpr $options -h "$head" $files | \ X! /bin/sh -c "troff -rx1 $voptions -i -mvgrind 2>> xindex" X else X $b/vfontedpr $options $files | \ X! /bin/sh -c "troff -rx1 $voptions -i -mvgrind 2>> xindex" X endif X endif X sort -df +0 -2 xindex >index X*************** X*** 108,117 **** X else X if ("$head" != "") then X $b/vfontedpr $options -h "$head" $files \ X! | vtroff -i $voptions -mvgrind X else X $b/vfontedpr $options $files \ X! | vtroff -i $voptions -mvgrind X endif X endif X endif X--- 108,117 ---- X else X if ("$head" != "") then X $b/vfontedpr $options -h "$head" $files \ X! | troff -i $voptions -mvgrind X else X $b/vfontedpr $options $files \ X! | troff -i $voptions -mvgrind X endif X endif X endif X*** ./usr/src/ucb/indent/Makefile.old Tue Feb 17 01:15:43 1987 X--- ./usr/src/ucb/indent/Makefile Mon Dec 8 23:26:49 2025 X*************** X*** 3,55 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4 (Berkeley) 9/8/85 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c X OBJS= indent.o io.o lexi.o parse.o pr_comment.o args.o X X indent: ${OBJS} X! cc ${SEPFLAG} ${CFLAGS} -o indent ${OBJS} X X clean: X rm -f ${OBJS} indent core X X- .DEFAULT: X- sccs get $< X- X install: indent X! install -s indent ${DESTDIR}/usr/ucb/indent X X! depend: X! cc -M ${SRCS} | \ X! awk '{ if ($$1 != prev) { if (rec != "") print rec; \ X! rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec }' >makedep X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >> eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X! X! # DO NOT DELETE THIS LINE -- make depend uses it X! X! indent.o: indent.c ./indent_globs.h /usr/include/stdio.h ./indent_codes.h X! io.o: io.c ./indent_globs.h /usr/include/stdio.h X! lexi.o: lexi.c ./indent_globs.h /usr/include/stdio.h ./indent_codes.h X! lexi.o: /usr/include/ctype.h X! parse.o: parse.c ././indent_globs.h /usr/include/stdio.h ././indent_codes.h X! pr_comment.o: pr_comment.c ./indent_globs.h /usr/include/stdio.h X! args.o: args.c ./indent_globs.h /usr/include/stdio.h /usr/include/sys/types.h X! args.o: /usr/include/ctype.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 3,23 ---- 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/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c X OBJS= indent.o io.o lexi.o parse.o pr_comment.o args.o X X indent: ${OBJS} X! cc ${LDFLAGS} ${CFLAGS} -o indent ${OBJS} X X clean: X rm -f ${OBJS} indent core X X install: indent X! install -c -s -m 755 indent /usr/ucb/indent X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X*** ./usr/src/ucb/indent/io.c.old Tue Jan 7 22:26:36 2020 X--- ./usr/src/ucb/indent/io.c Sat Dec 27 09:32:51 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 5.4 (2.11BSD) 2020/1/7"; X #endif X X /*- X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 5.5 (2.11BSD) 2025/12/27"; X #endif X X /*- X*************** X*** 501,506 **** X--- 501,507 ---- X }; X X diag(level, msg, a, b) X+ char *msg, *a, *b; X { X if (output == stdout) { X fprintf(stdout, "/**INDENT** %s@%d: ", level == 0 ? "Warning" : "Error", line_no); X*** ./usr/src/ucb/rdist/Makefile.old Thu Jul 3 10:53:37 1997 X--- ./usr/src/ucb/rdist/Makefile Mon Dec 8 23:30:24 2025 X*************** X*** 3,12 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.4 (2.11BSD GTE) 1997/7/3 X # X! DESTDIR= X! SEPFLAG= -i X XSTR= xstr X YACC= yacc X SRCS = docmd.c expand.c gram.y lookup.c main.c server.c X--- 3,11 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.5 (2.11BSD) 2025/11/25 X # X! LDFLAGS= -i X XSTR= xstr X YACC= yacc X SRCS = docmd.c expand.c gram.y lookup.c main.c server.c X*************** X*** 21,27 **** X rm -f x.c X X rdist: ${OBJS} strings.o X! ${CC} ${SEPFLAG} -o rdist ${OBJS} strings.o -lstubs X X ${OBJS}: defs.h X X--- 20,26 ---- X rm -f x.c X X rdist: ${OBJS} strings.o X! ${CC} ${LDFLAGS} -o rdist ${OBJS} strings.o -lstubs X X ${OBJS}: defs.h X X*************** X*** 39,45 **** X rm -f ${OBJS} gram.c errs rdist strings strings.o x.c xs.c y.tab.c X X install: rdist X! install -s -m 4751 rdist ${DESTDIR}/usr/ucb/rdist X X lint: docmd.c expand.c gram.c lookup.c main.c server.c X ${LINT} docmd.c expand.c gram.c lookup.c main.c server.c X--- 38,44 ---- X rm -f ${OBJS} gram.c errs rdist strings strings.o x.c xs.c y.tab.c X X install: rdist X! install -c -s -m 4751 rdist /usr/ucb/rdist X X lint: docmd.c expand.c gram.c lookup.c main.c server.c X ${LINT} docmd.c expand.c gram.c lookup.c main.c server.c X*** ./usr/src/ucb/rdist/server.c.old Wed May 17 00:58:38 1995 X--- ./usr/src/ucb/rdist/server.c Fri Dec 26 17:41:33 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)server.c 5.3.2 (2.11BSD) 1995/05/16"; 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.3 (2.11BSD) 2025/12/26"; X #endif X X #include "defs.h" X*************** X*** 1206,1212 **** X (void) sprintf(cp, "need to remove: %s\n", target); X (void) write(rem, buf, strlen(cp) + 1); X } else X! remove(&stb); X } X closedir(d); X (void) write(rem, "E\n", 2); X--- 1206,1212 ---- X (void) sprintf(cp, "need to remove: %s\n", target); X (void) write(rem, buf, strlen(cp) + 1); X } else X! rremove(&stb); X } X closedir(d); X (void) write(rem, "E\n", 2); X*************** X*** 1219,1225 **** X * Remove a file or directory (recursively) and send back an acknowledge X * or an error message. X */ X! remove(stp) X struct stat *stp; X { X DIR *d; X--- 1219,1225 ---- X * Remove a file or directory (recursively) and send back an acknowledge X * or an error message. X */ X! rremove(stp) X struct stat *stp; X { X DIR *d; X*************** X*** 1267,1273 **** X error("%s:%s: %s\n", host, target, strerror(errno)); X continue; X } X! remove(&stb); X } X closedir(d); X tp = otp; X--- 1267,1273 ---- X error("%s:%s: %s\n", host, target, strerror(errno)); X continue; X } X! rremove(&stb); X } X closedir(d); X tp = otp; X*************** X*** 1354,1370 **** X ack(); X } X X- #include X- X /*VARARGS2*/ X! log(fp, fmt, va_alist) X! FILE *fp; X! char *fmt; X! va_dcl X { X va_list ap; X X! va_start(ap); X /* Print changes locally if not quiet mode */ X if (!qflag) X vprintf(fmt, ap); X--- 1354,1365 ---- X ack(); X } X X /*VARARGS2*/ X! log(FILE *fp, char *fmt, ...) X { X va_list ap; X X! va_start(ap, fmt); X /* Print changes locally if not quiet mode */ X if (!qflag) X vprintf(fmt, ap); X*************** X*** 1376,1389 **** X } X X /*VARARGS1*/ X! error(fmt, va_alist) X! char *fmt; X! va_dcl X { X static FILE *fp; X va_list ap; X X! va_start(ap); X ++nerrs; X if (!fp && !(fp = fdopen(rem, "w"))) X return; X--- 1371,1382 ---- X } X X /*VARARGS1*/ X! error(char *fmt, ...) X { X static FILE *fp; X va_list ap; X X! va_start(ap, fmt); X ++nerrs; X if (!fp && !(fp = fdopen(rem, "w"))) X return; X*************** X*** 1407,1420 **** X } X X /*VARARGS1*/ X! fatal(fmt, va_alist) X! char *fmt; X! va_dcl X { X static FILE *fp; X va_list ap; X X! va_start(ap); X ++nerrs; X if (!fp && !(fp = fdopen(rem, "w"))) X return; X--- 1400,1411 ---- X } X X /*VARARGS1*/ X! fatal(char *fmt, ...) X { X static FILE *fp; X va_list ap; X X! va_start(ap, fmt); X ++nerrs; X if (!fp && !(fp = fdopen(rem, "w"))) X return; X*************** X*** 1494,1507 **** X exit(1); X } X X! note(fmt, va_alist) X! char *fmt; X! va_dcl X { X char buf[BUFSIZ]; X va_list ap; X X! va_start(ap); X (void)vsprintf(buf, fmt, ap); X va_end(ap); X comment(buf); X--- 1485,1496 ---- X exit(1); X } X X! note(char *fmt, ...) X { X char buf[BUFSIZ]; X va_list ap; X X! va_start(ap, fmt); X (void)vsprintf(buf, fmt, ap); X va_end(ap); X comment(buf); X*** ./usr/src/ucb/pascal/pi/version.c.old Mon Dec 7 14:40:17 1981 X--- ./usr/src/ucb/pascal/pi/version.c Fri Dec 26 17:35:39 2025 X*************** X*** 1,6 **** X /* Copyright (c) 1979 Regents of the University of California */ X X! static char sccsid[] = "@(#)version.c 2.1"; /* SCCS id keyword */ X X /* X * this writes the declaration of the character string version X--- 1,8 ---- X /* Copyright (c) 1979 Regents of the University of California */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)version.c (2.11BSD) 2.2 2025/12/26"; X! #endif X X /* X * this writes the declaration of the character string version X*************** X*** 10,17 **** X X #include X X- char *ctime(); X- X long clock; X char *cstring; X X--- 12,17 ---- X*************** X*** 21,25 **** X--- 21,26 ---- X cstring = ctime( &clock ); X cstring[ 24 ] = '\0'; X printf( "char version[] = \"%s\";\n" , cstring ); X+ return 0; X } X X*** ./usr/src/ucb/pascal/pi/Makefile.old Tue Nov 25 08:50:17 2025 X--- ./usr/src/ucb/pascal/pi/Makefile Fri Dec 26 17:33:00 2025 X*************** X*** 1,19 **** X # X! # pi Makefile - 1.2.3 2022/10/2 X # X X- DESTDIR= X- X MKSTR= /usr/ucb/mkstr X EYACC= ../eyacc/eyacc X- GET= sccs get X X TEMPDIR= tmp X X CFLAGS= -O -w X DEFS= -I. X! LDFLAGS= -X X! SEPFLAG= -i X X HDRS= 0.h OPnames.h opcode.h tree.h yy.h X X--- 1,15 ---- X # X! # pi Makefile - 1.3 (2.11BSD) 2025/11/25 X # X X MKSTR= /usr/ucb/mkstr X EYACC= ../eyacc/eyacc X X TEMPDIR= tmp X X CFLAGS= -O -w X DEFS= -I. X! LDFLAGS= -X -i X X HDRS= 0.h OPnames.h opcode.h tree.h yy.h X X*************** X*** 33,49 **** X yyid.o yylex.o yymain.o yyoptions.o yypanic.o yyparse.o yyprint.o \ X yyput.o yyrecover.o yyseman.o yytree.o X X- BASE= main.o Version.o putn.o rec.o X- OV1= TRdata.o ato.o call.o case.o clas.o const.o conv.o cset.o stat.o X- OV4= rval.o proc.o X- OV2= gen.o hash.o lab.o lookup.o string.o subr.o tree.o treen.o var.o \ X- nl.o put.o X- OV5= fdec.o func.o lval.o type.o X- OV3= yycopy.o yycosts.o yyerror.o yyget.o yyid.o yylex.o yymain.o \ X- yyoptions.o yypanic.o yyparse.o yyprint.o yyput.o yyseman.o \ X- yytree.o error.o X- OV6= y.tab.o yyrecover.o X- X INSTALL= pix px_header.out pi X UTILS= version X ERRORSTRINGS= pi1.2strings X--- 29,34 ---- X*************** X*** 61,67 **** X rm -f ${TEMPDIR}/$*.c X X pix: pix.c X! ${CC} ${SEPFLAG} ${CFLAGS} ${DEFS} -o pix pix.c X X px_header.out: px_header.c X ${CC} ${CFLAGS} ${DEFS} -o px_header.out px_header.c X--- 46,52 ---- X rm -f ${TEMPDIR}/$*.c X X pix: pix.c X! ${CC} ${LDFLAGS} ${CFLAGS} ${DEFS} -o pix pix.c X X px_header.out: px_header.c X ${CC} ${CFLAGS} ${DEFS} -o px_header.out px_header.c X*************** X*** 68,80 **** X strip px_header.out X X pi: ${OBJS} version X! -if [ X${SEPFLAG} = X-i ]; then \ X! ${CC} ${SEPFLAG} ${CFLAGS} -o pi ${OBJS} Version.c; \ X! else \ X! ld ${SEPFLAG} ${LDFLAGS} -o pi /lib/crt0.o ${BASE} \ X! -Z ${OV1} -Z ${OV2} -Z ${OV3} -Z ${OV4} -Z ${OV5} -Z ${OV6} \ X! -Y -lc; \ X! fi X size pi X X y.tab.h y.tab.c: pas.y X--- 53,59 ---- X strip px_header.out X X pi: ${OBJS} version X! ${CC} ${LDFLAGS} -o pi ${OBJS} Version.c X size pi X X y.tab.h y.tab.c: pas.y X*************** X*** 88,102 **** X ./version > Version.c X X install: ${ALL} X! -mkdir -p ${DESTDIR}/usr/share/pascal X! chmod 755 ${DESTDIR}/usr/share/pascal X! install -c ${ERRORSTRINGS} ${DESTDIR}/usr/share/pascal X! install -c how_pi ${DESTDIR}/usr/share/pascal X! install -c how_pix ${DESTDIR}/usr/share/pascal X! dd if=px_header.out of=${DESTDIR}/usr/share/pascal/npx_header conv=sync X! chmod a+r $(DESTDIR)/usr/share/pascal/npx_header X! install -s pi ${DESTDIR}/usr/ucb X! install -s pix ${DESTDIR}/usr/ucb X X tags: FRC X ctags ${HDRS} ${SRCS} X--- 67,81 ---- X ./version > Version.c X X install: ${ALL} X! -mkdir -p /usr/share/pascal X! chmod 755 /usr/share/pascal X! install -c ${ERRORSTRINGS} /usr/share/pascal X! install -c how_pi /usr/share/pascal X! install -c how_pix /usr/share/pascal X! dd if=px_header.out of=/usr/share/pascal/npx_header conv=sync X! chmod a+r /usr/share/pascal/npx_header X! install -c -s -m 755 pi /usr/ucb X! install -c -s -m 755 pix /usr/ucb X X tags: FRC X ctags ${HDRS} ${SRCS} X*************** X*** 107,119 **** X rm -f *.o ${TEMPDIR}/* y.tab.c y.tab.h \ X ${ALL} core *.list tags Version.c X rm -fr tmp X- X- print : X- @ls -ls | pr X- @pr READ_ME Makefile X- @pr 0.h whoami main.c pas.y X- @pr yy.h yy*.c X- @pr [a-ln-x]*.c X X yy.h: y.tab.h X Version.o: Version.c X--- 86,91 ---- X*** ./usr/src/ucb/pascal/px/Makefile.old Wed Oct 23 18:10:37 1996 X--- ./usr/src/ucb/pascal/px/Makefile Mon Dec 8 23:28:22 2025 X*************** X*** 1,15 **** X # X! # px makefile X # X X- DESTDIR= X- X AS= as -V - X X DEFS= -DHZ=60.0 X CFLAGS= -O -w X! LDFLAGS= -X X! SEPFLAG= -i X X SRCS= 00int.s 02rel.s 02relset.s 03bool.s 04as.s 05lv.s \ X 06add.s 07sub.s 10mul.s 12div.s 13mod.s 14neg.s \ X--- 1,12 ---- X # X! # #(@)Makefile 2.0 (2.11BSD) 2025/11/25 X # X X AS= as -V - X X DEFS= -DHZ=60.0 X CFLAGS= -O -w X! LDFLAGS= -X -i X X SRCS= 00int.s 02rel.s 02relset.s 03bool.s 04as.s 05lv.s \ X 06add.s 07sub.s 10mul.s 12div.s 13mod.s 14neg.s \ X*************** X*** 34,43 **** X ${AS} -o $*.o $*.s X X px: as.o ${OBJS} X! ld ${SEPFLAG} ${LDFLAGS} -o px /lib/crt0.o as.o ${OBJS} -lm -lc X X gather: gather.o X! cc ${SEPFLAG} -o gather gather.o X X as.o: E.s ${SRCS} X ${AS} -o as.o E.s ${SRCS} X--- 31,40 ---- X ${AS} -o $*.o $*.s X X px: as.o ${OBJS} X! ld ${LDFLAGS} -o px /lib/crt0.o as.o ${OBJS} -lm -lc X X gather: gather.o X! cc ${LDFLAGS} -o gather gather.o X X as.o: E.s ${SRCS} X ${AS} -o as.o E.s ${SRCS} X*************** X*** 48,55 **** X ed - Edata < Emake.ed X X install: ${ALL} X! install -s px ${DESTDIR}/usr/ucb/px X! install -s gather ${DESTDIR}/usr/libexec/gather X X tags: FRC X X--- 45,52 ---- X ed - Edata < Emake.ed X X install: ${ALL} X! install -c -s -m 755 px /usr/ucb/px X! install -c -s -m 755 gather /usr/libexec/gather X X tags: FRC X X*************** X*** 57,66 **** X X clean: X rm -f ${ALL} core E.h E.s *.o tags X- X- print: X- @ls -ls | pr X- @pr README Makefile X- @pr 0x.h int.c exit.c X- @pr [0-9][0-9]*.s X- @pr p*.c X--- 54,56 ---- X*** ./usr/src/ucb/pascal/pxp/Makefile.old Wed Oct 23 18:12:09 1996 X--- ./usr/src/ucb/pascal/pxp/Makefile Mon Dec 8 23:30:11 2025 X*************** X*** 1,9 **** X # X! # pxp makefile X # X X- DESTDIR= X- X ED= -ed X AS= as -V - X EYACC= ../eyacc/eyacc X--- 1,7 ---- X # X! # #(@)Makefile 2.0 (2.11BSD) 2025/11/25 X # X X ED= -ed X AS= as -V - X EYACC= ../eyacc/eyacc X*************** X*** 10,17 **** X X DEFS= -DPXP X CFLAGS= -O -w X! LDFLAGS= -X X! SEPFLAG= -i X X HDRS= 0.h opcode.h tree.h yy.h X X--- 8,14 ---- X X DEFS= -DPXP X CFLAGS= -O -w X! LDFLAGS= -X -i X X HDRS= 0.h opcode.h tree.h yy.h X X*************** X*** 44,50 **** X X pxp: y.tab.h ${OBJS} ${OBJS2} X ${CC} ${CFLAGS} ${DEFS} -c Version.c X! ${CC} ${SEPFLAG} ${LDFLAGS} -o pxp ${OBJS} ${OBJS2} Version.o X X y.tab.c y.tab.h: pas.y X ${EYACC} -v pas.y X--- 41,47 ---- X X pxp: y.tab.h ${OBJS} ${OBJS2} X ${CC} ${CFLAGS} ${DEFS} -c Version.c X! ${CC} ${LDFLAGS} -o pxp ${OBJS} ${OBJS2} Version.o X X y.tab.c y.tab.h: pas.y X ${EYACC} -v pas.y X*************** X*** 51,58 **** X ${ED} - y.tab.c < gram.ex X X install: pxp how_pxp X! install -s pxp ${DESTDIR}/usr/ucb/pxp X! install -c how_pxp ${DESTDIR}/usr/share/pascal/how_pxp X X tags: FRC X ctags ${HDRS} ${SRCS} X--- 48,55 ---- X ${ED} - y.tab.c < gram.ex X X install: pxp how_pxp X! install -c -s -m 755 pxp /usr/ucb/pxp X! install -c -m 644 how_pxp /usr/share/pascal/how_pxp X X tags: FRC X ctags ${HDRS} ${SRCS} X*************** X*** 61,71 **** X X clean: X rm -f pi1.2strings a.out core y.tab.c y.output *.o x* tags X- X- print: X- @ls -ls | pr X- @pr READ_ME Makefile X- @pr 0.h main.c pas.y X- @pr yy.h yy*.c X- @pr [a-ln-x]*.c X- @pr treen.s yycopy.s X--- 58,60 ---- X*** ./usr/src/ucb/pascal/eyacc/Makefile.old Sat Jul 25 12:57:13 1987 X--- ./usr/src/ucb/pascal/eyacc/Makefile Wed Nov 26 19:22:11 2025 X*************** X*** 1,10 **** X! # X! # eyacc makefile X! # X X! CFLAGS= X! LDFLAGS= X! SEPFLAG= -i X X HDRS= ey.h X SRCS= ey0.c ey1.c ey2.c ey3.c ey4.c ey5.c X--- 1,7 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X! CFLAGS=-O X! LDFLAGS=-i X X HDRS= ey.h X SRCS= ey0.c ey1.c ey2.c ey3.c ey4.c ey5.c X*************** X*** 11,23 **** X OBJS= ey0.o ey1.o ey2.o ey3.o ey4.o ey5.o X X eyacc: ${OBJS} X! -if [ X${SEPFLAG} = X-i ]; then \ X! ${CC} ${SEPFLAG} ${LDFLAGS} -o eyacc ${OBJS}; \ X! else \ X! ld ${SEPFLAG} ${LDFLAGS} -o eyacc /lib/crt0.o ey0.o \ X! -Z ey1.o ey3.o -Z ey2.o ey4.o \ X! -Y ey5.o -lc; \ X! fi X X install: X @echo "Eyacc is only used by pascal, we don't install it for general" X--- 8,14 ---- X OBJS= ey0.o ey1.o ey2.o ey3.o ey4.o ey5.o X X eyacc: ${OBJS} X! ${CC} ${LDFLAGS} -o eyacc ${OBJS} X X install: X @echo "Eyacc is only used by pascal, we don't install it for general" X*************** X*** 30,40 **** X X clean: X rm -f *.o eyacc tags X- X- print: X- @ls -l | pr X- @pr READ_ME Makefile X- @pr ${HDRS} ${SRCS} X X ey0.o: ey0.c X ey1.o: ey1.c ey.h X--- 21,26 ---- X*** ./usr/src/ucb/pascal/Makefile.old Wed Oct 23 18:01:16 1996 X--- ./usr/src/ucb/pascal/Makefile Wed Nov 26 19:18:05 2025 X*************** X*** 1,9 **** X! DESTDIR= X BINDIR= /usr/ucb X X CFLAGS= -O -w X! LDFLAGS= -X X! SEPFLAG= -i X X PASCAL= pi px pxp X UTILS= eyacc X--- 1,10 ---- X! # X! # #(@)Makefile 2.0 (2.11BSD) 2025/11/25 X! # X BINDIR= /usr/ucb X X CFLAGS= -O -w X! LDFLAGS= -X -i X X PASCAL= pi px pxp X UTILS= eyacc X*************** X*** 14,25 **** X pi pxp: eyacc X X ${ALL}: FRC X! cd $@; make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" SEPFLAG=${SEPFLAG} \ X BINDIR=${BINDIR} X X install: ${UTILS} X for i in ${PASCAL}; do \ X! (cd $$i; make install DESTDIR=${DESTDIR}); \ X done X X tags: FRC X--- 15,26 ---- X pi pxp: eyacc X X ${ALL}: FRC X! cd $@; make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ X BINDIR=${BINDIR} X X install: ${UTILS} X for i in ${PASCAL}; do \ X! (cd $$i; make install); \ X done X X tags: FRC X*** ./usr/src/ucb/ftp/Makefile.old Sun Dec 1 16:48:11 1996 X--- ./usr/src/ucb/ftp/Makefile Mon Dec 8 23:26:17 2025 X*************** X*** 14,23 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.9.2 (2.11BSD) 1996/12/1 X # X CFLAGS= -O -I. X! SEPFLAG= -i X SRCS= cmds.c cmdtab.c ftp.c glob.c main.c ruserpass.c domacro.c X OBJS= cmds.o cmdtab.o ftp.o glob.o main.o ruserpass.o domacro.o X MAN= ftp.0 X--- 14,23 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.9.3 (2.11BSD) 2025/11/26 X # X CFLAGS= -O -I. X! LDFLAGS= -i X SRCS= cmds.c cmdtab.c ftp.c glob.c main.c ruserpass.c domacro.c X OBJS= cmds.o cmdtab.o ftp.o glob.o main.o ruserpass.o domacro.o X MAN= ftp.0 X*************** X*** 26,32 **** X all: ftp ${MAN} X X ftp: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS} X X ftp.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 26,32 ---- X all: ftp ${MAN} X X ftp: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X ftp.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 41,48 **** X mkdep ${CFLAGS} ${SRCS} X X install: ftp ${MAN} X! install -s -o bin -g bin -m 751 ftp ${DESTDIR}/usr/ucb X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X--- 41,48 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ftp ${MAN} X! install -c -s -o root -g staff -m 755 ftp /usr/ucb X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X*** ./usr/src/ucb/ftp/ftp.c.old Fri Mar 21 18:53:02 2025 X--- ./usr/src/ucb/ftp/ftp.c Fri Dec 26 15:31:54 2025 X*************** X*** 16,22 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ftp.c 5.29 (2.11BSD) 2025/3/21"; X #endif X X #include 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*************** X*** 38,82 **** X #include X #include X #include X- #include X #include X X #include "ftp_var.h" X X- #ifndef MAXHOSTNAMELEN X- #define MAXHOSTNAMELEN 64 X- #endif X- X- #ifdef sun X- /* FD_SET wasn't defined until 4.0. its a cheap test for uid_t presence */ X- #ifndef FD_SET X- #define NBBY 8 /* number of bits in a byte */ X- /* X- * Select uses bit masks of file descriptors in longs. X- * These macros manipulate such bit fields (the filesystem macros use chars). X- * FD_SETSIZE may be defined by the user, but the default here X- * should be >= NOFILE (param.h). X- */ X- #ifndef FD_SETSIZE X- #define FD_SETSIZE 256 X- #endif X- X- typedef long fd_mask; X- #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */ X- #ifndef howmany X- #define howmany(x, y) (((x)+((y)-1))/(y)) X- #endif X- X- #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) X- #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) X- #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) X- #define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) X- X- typedef int uid_t; X- typedef int gid_t; X- #endif X- #endif X- X struct sockaddr_in hisctladdr; X struct sockaddr_in data_addr; X int data = -1; X--- 38,47 ---- X*************** X*** 270,299 **** X } X X /*VARARGS1*/ X! #ifdef pyr X! command(fmt, va_alist) X! char *fmt; X! va_dcl X! #else X! command(fmt, args) X! char *fmt; X! #endif /* !pyr */ X { X- #ifdef pyr X va_list ap; X- #endif /* pyr */ X int r, (*oldintr)(), cmdabort(); X X abrtflag = 0; X if (debug) { X printf("---> "); X! #ifdef pyr X! va_start(ap); X! _doprnt(fmt, ap, stdout); X va_end(ap); X- #else X- _doprnt(fmt, &args, stdout); X- #endif /* !pyr */ X printf("\n"); X (void) fflush(stdout); X } X--- 235,251 ---- X } X X /*VARARGS1*/ X! command(char *fmt, ...) X { X va_list ap; X int r, (*oldintr)(), cmdabort(); X X abrtflag = 0; X if (debug) { X printf("---> "); X! va_start(ap, fmt); X! vfprintf(stdout, fmt, ap); X va_end(ap); X printf("\n"); X (void) fflush(stdout); X } X*************** X*** 303,315 **** X return (0); X } X oldintr = signal(SIGINT,cmdabort); X! #ifdef pyr X! va_start(ap); X! _doprnt(fmt, ap, cout); X va_end(ap); X- #else X- _doprnt(fmt, &args, cout); X- #endif /* !pyr */ X fprintf(cout, "\r\n"); X (void) fflush(cout); X cpend = 1; X--- 255,263 ---- X return (0); X } X oldintr = signal(SIGINT,cmdabort); X! va_start(ap, fmt); X! vfprintf(cout, fmt, ap); X va_end(ap); X fprintf(cout, "\r\n"); X (void) fflush(cout); X cpend = 1; X*** ./usr/src/ucb/netstat/Makefile.old Sun Dec 1 16:49:07 1996 X--- ./usr/src/ucb/netstat/Makefile Sat Nov 29 06:42:24 2025 X*************** X*** 8,17 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.8.1 (2.11BSD) 1996/12/1 X # X # X! CFLAGS= -O -i X SRCS= host.c inet.c if.c main.c mbuf.c route.c unix.c ns.c X OBJS= host.o inet.o if.o main.o mbuf.o route.o unix.o ns.o X X--- 8,18 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.8.2 (2.11BSD) 2025/11/26 X # X # X! CFLAGS= -O X! LDFLAGS= -i X SRCS= host.c inet.c if.c main.c mbuf.c route.c unix.c ns.c X OBJS= host.o inet.o if.o main.o mbuf.o route.o unix.o ns.o X X*************** X*** 18,24 **** X all: netstat X X netstat: ${OBJS} X! ${CC} -o $@ ${CFLAGS} ${OBJS} X X clean: FRC X rm -f ${OBJS} core netstat X--- 19,25 ---- X all: netstat X X netstat: ${OBJS} X! ${CC} -o $@ ${LDFLAGS} ${OBJS} X X clean: FRC X rm -f ${OBJS} core netstat X*************** X*** 27,33 **** X mkdep ${CFLAGS} ${SRCS} X X install: netstat X! install -s -g kmem -m 2755 netstat ${DESTDIR}/usr/ucb/netstat X X lint: FRC X lint ${CFLAGS} ${SRCS} X--- 28,34 ---- X mkdep ${CFLAGS} ${SRCS} X X install: netstat X! install -c -s -g kmem -m 2755 netstat /usr/ucb/netstat X X lint: FRC X lint ${CFLAGS} ${SRCS} X*** ./usr/src/ucb/tftp/Makefile.old Thu Mar 13 12:51:22 2025 X--- ./usr/src/ucb/tftp/Makefile Mon Dec 8 23:31:38 2025 X*************** X*** 3,19 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (Berkeley) 2/6/86 X # X ALL= tftp tftp.0 X- DESTDIR= X CFLAGS=-O X! SEPFLAG=-i X X all: ${ALL} X X tftp: main.o tftp.o tftpsubs.o X! ${CC} main.o tftp.o tftpsubs.o ${SEPFLAG} -o tftp X X tftp.0: tftp.1 X /usr/man/manroff tftp.1 > tftp.0 X--- 3,18 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/25 X # X ALL= tftp tftp.0 X CFLAGS=-O X! LDFLAGS=-i X X all: ${ALL} X X tftp: main.o tftp.o tftpsubs.o X! ${CC} main.o tftp.o tftpsubs.o ${LDFLAGS} -o tftp X X tftp.0: tftp.1 X /usr/man/manroff tftp.1 > tftp.0 X*************** X*** 22,26 **** X rm -f ${ALL} *.o *.s errs core a.out t.? tftp.0 X X install: tftp tftp.0 X! install -s tftp ${DESTDIR}/usr/ucb X! install -c -o bin -g bin -m 444 tftp.0 ${DESTDIR}/usr/man/cat1 X--- 21,25 ---- X rm -f ${ALL} *.o *.s errs core a.out t.? tftp.0 X X install: tftp tftp.0 X! install -c -s -m 755 tftp /usr/ucb X! install -c -o root -g staff -m 444 tftp.0 /usr/man/cat1 X*** ./usr/src/ucb/window/Makefile.old Fri Jan 7 00:30:15 1994 X--- ./usr/src/ucb/window/Makefile Wed Nov 26 19:43:27 2025 X*************** X*** 3,16 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 3.2 (2.11BSD GTE) 1/06/94 X! # X! # X! # Window makefile, update with mkmf (or "make depend") X! # X! SEPFLAG = -i X! CFLAGS = -O -R X X EXTHDRS = /usr/include/fcntl.h \ X /usr/include/setjmp.h \ X /usr/include/sgtty.h \ X--- 3,13 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 3.3 (2.11BSD) 2025/11/26 X X+ LDFLAGS = -i X+ CFLAGS = -O X+ X EXTHDRS = /usr/include/fcntl.h \ X /usr/include/setjmp.h \ X /usr/include/sgtty.h \ X*************** X*** 41,54 **** X var.h \ X ww.h X X- LDFLAGS = ${SEPFLAG} X- X LIBS = /usr/lib/libtermcap.a X X LINKER = cc X X- MAKEFILE = Makefile X- X OBJS = char.o \ X cmd.o \ X cmd1.o \ X--- 38,47 ---- X*************** X*** 126,133 **** X wwupdate.o \ X wwwrite.o X X- PRINT = pr X- X PROGRAM = a.out X X SRCS = char.c \ X--- 119,124 ---- X*************** X*** 207,449 **** X wwupdate.c \ X wwwrite.c X X! all: $(PROGRAM) X X! $(PROGRAM): $(OBJS) $(LIBS) X! @echo -n "Loading $(PROGRAM) ... " X! @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) X! @echo "done" X X! clean:; @rm -f $(OBJS) make.out a.out X X! depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) X X install: $(PROGRAM) windowrc X! install -s a.out $(DESTDIR)/usr/ucb/window X! # install -c windowrc $(DESTDIR)/usr/local/lib X X- print:; @$(PRINT) $(MAKEFILE) README $(HDRS) $(SRCS) X- X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X X lint:; @lint -z $(SRCS) X- X- wc:; @wc $(SRCS) $(HDRS) X- X- ### X- char.o: char.h X- cmd.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h char.h X- cmd1.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h char.h X- cmd2.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h X- cmd3.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h string.h X- cmd4.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h X- cmd5.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h X- cmd6.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h string.h char.h X- cmd7.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h X- context.o: /usr/include/stdio.h value.h string.h context.h X- error.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h value.h context.h \ X- /usr/include/stdio.h char.h X- lcmd.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h value.h lcmd.h X- lcmd1.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h string.h value.h lcmd.h \ X- var.h X- lcmd2.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h string.h value.h var.h \ X- lcmd.h /usr/include/sys/resource.h alias.h X- main.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h \ X- /usr/include/sys/signal.h /usr/include/stdio.h string.h char.h \ X- local.h X- mloop.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h X- parser1.o: parser.h /usr/include/stdio.h value.h context.h token.h string.h X- parser2.o: parser.h /usr/include/stdio.h value.h context.h token.h string.h \ X- var.h lcmd.h alias.h X- parser3.o: parser.h /usr/include/stdio.h value.h context.h token.h string.h X- parser4.o: parser.h /usr/include/stdio.h value.h context.h token.h string.h X- parser5.o: parser.h /usr/include/stdio.h value.h context.h token.h string.h \ X- var.h X- scanner.o: /usr/include/stdio.h value.h token.h context.h string.h X- startup.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h value.h var.h char.h \ X- local.h X- string.o: string.h X- ttf100.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- ttgeneric.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- tth19.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- tth29.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- ttinit.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- ttoutput.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h /usr/include/sys/errno.h X- tttermcap.o: tt.h X- tttvi925.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- var.o: value.h var.h string.h X- win.o: defs.h ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h char.h X- wwadd.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwalloc.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwbox.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwchild.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/wait.h X- wwclose.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/signal.h X- wwclreol.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwclreos.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwcursor.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwdata.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwdelchar.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwdelete.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwdelline.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwdump.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwend.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwenviron.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/signal.h X- wwerror.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwflush.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwframe.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwgets.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h char.h X- wwinit.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h /usr/include/sys/signal.h \ X- /usr/include/fcntl.h char.h X- wwinschar.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwinsline.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwiomux.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/time.h X- wwlabel.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h char.h X- wwmisc.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h char.h X- wwmove.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwopen.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/types.h \ X- /usr/include/sys/socket.h X- wwprintf.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/stdio.h X- wwpty.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwputc.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwputs.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwredraw.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwredrawwin.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwrint.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/fcntl.h /usr/include/sys/signal.h X- wwscroll.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwsize.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwspawn.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/sys/signal.h X- wwsuspend.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h /usr/include/sys/signal.h X- wwtty.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h /usr/include/fcntl.h X- wwunframe.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h X- wwupdate.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h X- wwwrite.o: ww.h /usr/include/sgtty.h /usr/include/sys/ioctl.h \ X- /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \ X- /usr/include/setjmp.h tt.h char.h X--- 198,217 ---- X wwupdate.c \ X wwwrite.c X X! all: ${PROGRAM} X X! ${PROGRAM}: $(OBJS) $(LIBS) X! $(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) X X! clean:; rm -f $(OBJS) a.out X X! depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X X install: $(PROGRAM) windowrc X! install -c -s -m 755 -o root a.out /usr/ucb/window X! # install -c windowrc /usr/local/lib X X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X X lint:; @lint -z $(SRCS) X*** ./usr/src/ucb/window/wwprintf.c.old Tue Feb 17 00:10:50 1987 X--- ./usr/src/ucb/window/wwprintf.c Fri Dec 26 21:20:49 2025 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwprintf.c 3.5 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwprintf.c 3.6 (2.11BSD) 2025/12/26"; X #endif X X /* X*************** X*** 9,33 **** X */ X X #include "ww.h" X X! /*VARARGS2*/ X! wwprintf(w, fmt, args) X! struct ww *w; X! char *fmt; X { X! #include X! struct _iobuf _wwbuf; X char buf[1024]; X X! /* X! * A danger is that when buf overflows, _flsbuf() will be X! * called automatically. It doesn't check for _IOSTR. X! * We set the file descriptor to -1 so no actual io will be done. X! */ X! _wwbuf._flag = _IOWRT+_IOSTRG; X! _wwbuf._base = _wwbuf._ptr = buf; X! _wwbuf._cnt = sizeof buf; X! _wwbuf._file = -1; /* safe */ X! _doprnt(fmt, &args, &_wwbuf); X! (void) wwwrite(w, buf, _wwbuf._ptr - buf); X } X--- 9,24 ---- X */ X X #include "ww.h" X+ #include X+ #include X X! wwprintf(struct ww *w, char *fmt, ...) X { X! va_list ap; X char buf[1024]; X X! va_start(ap, fmt); X! vsnprintf(buf, sizeof buf, fmt, ap); X! va_end(ap); X! (void) wwwrite(w, buf, strlen(buf)); X } X*** ./usr/src/ucb/sendbug/Makefile.old Fri Mar 7 21:56:11 2025 X--- ./usr/src/ucb/sendbug/Makefile Mon Dec 8 23:31:24 2025 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.8 (2.11BSD) 2025/3/7 X # X # Bug report processor and associated programs 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.9 (2.11BSD) 2025/11/25 X # X # Bug report processor and associated programs X # X*************** X*** 12,32 **** X BUGS_HOME = @2BSD.COM X DEFS = -DBUGS_NAME='"$(BUGS_NAME)"' -DBUGS_HOME='"$(BUGS_HOME)"' X CFLAGS = -O -DUNIXCOMP $(DEFS) X- DESTDIR= X X all: bugfiler unixtomh X X bugfiler: bugfiler.c X! ${CC} ${CFLAGS} ${SEPFLAG} -DUNIXTOMH='"/usr/libexec/unixtomh"' -o bugfiler bugfiler.c X X unixtomh: unixtomh.c X! ${CC} ${SEPFLAG} ${CFLAGS} -o unixtomh unixtomh.c X X install: bugfiler sendbug.sh bugformat unixtomh X! install -s bugfiler ${DESTDIR}/usr/libexec/bugfiler X! install -c -m 555 sendbug.sh ${DESTDIR}/usr/ucb/sendbug X! install -s unixtomh ${DESTDIR}/usr/libexec/unixtomh X! install -c -m 644 bugformat ${DESTDIR}/usr/share/misc/bugformat X X clean: X rm -f *.o bugfiler unixtomh X--- 12,31 ---- X BUGS_HOME = @2BSD.COM X DEFS = -DBUGS_NAME='"$(BUGS_NAME)"' -DBUGS_HOME='"$(BUGS_HOME)"' X CFLAGS = -O -DUNIXCOMP $(DEFS) X X all: bugfiler unixtomh X X bugfiler: bugfiler.c X! ${CC} ${CFLAGS} -i -DUNIXTOMH='"/usr/libexec/unixtomh"' -o bugfiler bugfiler.c X X unixtomh: unixtomh.c X! ${CC} -i ${CFLAGS} -o unixtomh unixtomh.c X X install: bugfiler sendbug.sh bugformat unixtomh X! install -c -s -m 755 bugfiler /usr/libexec/bugfiler X! install -c -m 755 sendbug.sh /usr/ucb/sendbug X! install -c -s -m 755 unixtomh /usr/libexec/unixtomh X! install -c -m 644 bugformat /usr/share/misc/bugformat X X clean: X rm -f *.o bugfiler unixtomh X*** ./usr/src/ucb/compress/compress.c.old Thu Oct 13 13:56:54 1988 X--- ./usr/src/ucb/compress/compress.c Thu Jan 1 15:13:55 2026 X*************** X*** 1,127 **** X! #ifndef lint X! static char sccsid[] = "@(#)compress.c @(#)compress.c 5.9 (Berkeley) 5/11/86"; X! #endif not lint X X /* X * Compress - data compression program X */ X! #define min(a,b) ((a>b) ? b : a) X X /* X- * machine variants which require cc -Dmachine: pdp11, z8000, pcxt X- */ X- X- /* X- * Set USERMEM to the maximum amount of physical user memory available X- * in bytes. USERMEM is used to determine the maximum BITS that can be used X- * for compression. X- * X- * SACREDMEM is the amount of physical memory saved for others; compress X- * will hog the rest. X- */ X- #ifndef SACREDMEM X- #define SACREDMEM 0 X- #endif X- X- #ifndef USERMEM X- # define USERMEM 450000 /* default user memory */ X- #endif X- X- #ifdef interdata /* (Perkin-Elmer) */ X- #define SIGNED_COMPARE_SLOW /* signed compare is slower than unsigned */ X- #endif X- X- #ifdef pdp11 X- # define BITS 12 /* max bits/code for 16-bit machine */ X- # define NO_UCHAR /* also if "unsigned char" functions as signed char */ X- # undef USERMEM X- #endif /* pdp11 */ /* don't forget to compile with -i */ X- X- #ifdef z8000 X- # define BITS 12 X- # undef vax /* weird preprocessor */ X- # undef USERMEM X- #endif /* z8000 */ X- X- #ifdef pcxt X- # define BITS 12 X- # undef USERMEM X- #endif /* pcxt */ X- X- #ifdef USERMEM X- # if USERMEM >= (433484+SACREDMEM) X- # define PBITS 16 X- # else X- # if USERMEM >= (229600+SACREDMEM) X- # define PBITS 15 X- # else X- # if USERMEM >= (127536+SACREDMEM) X- # define PBITS 14 X- # else X- # if USERMEM >= (73464+SACREDMEM) X- # define PBITS 13 X- # else X- # define PBITS 12 X- # endif X- # endif X- # endif X- # endif X- # undef USERMEM X- #endif /* USERMEM */ X- X- #ifdef PBITS /* Preferred BITS for this memory size */ X- # ifndef BITS X- # define BITS PBITS X- # endif BITS X- #endif /* PBITS */ X- X- #if BITS == 16 X- # define HSIZE 69001 /* 95% occupancy */ X- #endif X- #if BITS == 15 X- # define HSIZE 35023 /* 94% occupancy */ X- #endif X- #if BITS == 14 X- # define HSIZE 18013 /* 91% occupancy */ X- #endif X- #if BITS == 13 X- # define HSIZE 9001 /* 91% occupancy */ X- #endif X- #if BITS <= 12 X- # define HSIZE 5003 /* 80% occupancy */ X- #endif X- X- #ifdef M_XENIX /* Stupid compiler can't handle arrays with */ X- # if BITS == 16 /* more than 65535 bytes - so we fake it */ X- # define XENIX_16 X- # else X- # if BITS > 13 /* Code only handles BITS = 12, 13, or 16 */ X- # define BITS 13 X- # endif X- # endif X- #endif X- X- /* X * a code_int must be able to hold 2**BITS values of type int, and also -1 X */ X- #if BITS > 15 X- typedef long int code_int; X- #else X typedef int code_int; X! #endif X! X! #ifdef SIGNED_COMPARE_SLOW X! typedef unsigned long int count_int; X! typedef unsigned short int count_short; X! #else X! typedef long int count_int; X! #endif X! X! #ifdef NO_UCHAR X! typedef char char_type; X! #else X! typedef unsigned char char_type; X! #endif /* UCHAR */ X char_type magic_header[] = { "\037\235" }; /* 1F 9D */ X X /* Defines for third byte of header */ X--- 1,20 ---- 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 * Compress - data compression program X */ X! #define min(a,b) ((a>b) ? b : a) X! #define BITS 12 /* max bits/code for 16-bit machine */ X! #define HSIZE 5003 /* 80% occupancy */ X X /* X * a code_int must be able to hold 2**BITS values of type int, and also -1 X */ X typedef int code_int; X! typedef long int count_int; X! typedef unsigned char char_type; X char_type magic_header[] = { "\037\235" }; /* 1F 9D */ X X /* Defines for third byte of header */ X*************** X*** 254,260 **** X * Add variable bit length output. X * X */ X- static char rcs_ident[] = "$Header: compress.c,v 4.0 85/07/30 12:50:00 joe Release $"; X X #include X #include X--- 147,152 ---- X*************** X*** 261,269 **** X #include X #include X #include X- #ifdef notdef X- #include X- #endif X X #define ARGVAL() (*++(*argv) || (--argc && *++argv)) X X--- 153,158 ---- X*************** X*** 271,323 **** X int maxbits = BITS; /* user settable max # bits/code */ X code_int maxcode; /* maximum code, given n_bits */ X code_int maxmaxcode = 1 << BITS; /* should NEVER generate this code */ X! #ifdef COMPATIBLE /* But wrong! */ X! # define MAXCODE(n_bits) (1 << (n_bits) - 1) X! #else X! # define MAXCODE(n_bits) ((1 << (n_bits)) - 1) X! #endif /* COMPATIBLE */ X X! #ifdef XENIX_16 X! count_int htab0[8192]; X! count_int htab1[8192]; X! count_int htab2[8192]; X! count_int htab3[8192]; X! count_int htab4[8192]; X! count_int htab5[8192]; X! count_int htab6[8192]; X! count_int htab7[8192]; X! count_int htab8[HSIZE-65536]; X! count_int * htab[9] = { X! htab0, htab1, htab2, htab3, htab4, htab5, htab6, htab7, htab8 }; X X- #define htabof(i) (htab[(i) >> 13][(i) & 0x1fff]) X- unsigned short code0tab[16384]; X- unsigned short code1tab[16384]; X- unsigned short code2tab[16384]; X- unsigned short code3tab[16384]; X- unsigned short code4tab[16384]; X- unsigned short * codetab[5] = { X- code0tab, code1tab, code2tab, code3tab, code4tab }; X- X- #define codetabof(i) (codetab[(i) >> 14][(i) & 0x3fff]) X- X- #else /* Normal machine */ X- X- #ifdef sel /* gould base register braindamage */ X- /*NOBASE*/ X count_int htab [HSIZE]; X unsigned short codetab [HSIZE]; X- /*NOBASE*/ X- #else X- count_int htab [HSIZE]; X- unsigned short codetab [HSIZE]; X- #endif sel X X! #define htabof(i) htab[i] X! #define codetabof(i) codetab[i] X! #endif /* XENIX_16 */ X! code_int hsize = HSIZE; /* for dynamic table sizing */ X! count_int fsize; X X /* X * To save much memory, we overlay the table used by compress() with those X--- 160,175 ---- X int maxbits = BITS; /* user settable max # bits/code */ X code_int maxcode; /* maximum code, given n_bits */ X code_int maxmaxcode = 1 << BITS; /* should NEVER generate this code */ X! #define MAXCODE(n_bits) ((1 << (n_bits)) - 1) X X! code_int hsize = HSIZE; /* for dynamic table sizing */ X! count_int fsize; X X count_int htab [HSIZE]; X unsigned short codetab [HSIZE]; X X! #define htabof(i) htab[i] X! #define codetabof(i) codetab[i] X X /* X * To save much memory, we overlay the table used by compress() with those X*************** X*** 329,341 **** X */ X X #define tab_prefixof(i) codetabof(i) X! #ifdef XENIX_16 X! # define tab_suffixof(i) ((char_type *)htab[(i)>>15])[(i) & 0x7fff] X! # define de_stack ((char_type *)(htab2)) X! #else /* Normal machine */ X! # define tab_suffixof(i) ((char_type *)(htab))[i] X! # define de_stack ((char_type *)&tab_suffixof(1< 12) { X- fprintf(stderr,"%s: filename too long to tack on .Z\n",cp); X- continue; X- } X- #endif /* BSD4_2 Long filenames allowed */ X strcat(ofname, ".Z"); X } X /* Check for overwrite of existing file */ X--- 461,466 ---- X*************** X*** 701,707 **** X block_compress = maxbits & BLOCK_MASK; X maxbits &= BIT_MASK; X maxmaxcode = 1 << maxbits; X! fsize = 100000; /* assume stdin large for USERMEM */ X if(maxbits > BITS) { X fprintf(stderr, X "stdin: compressed with %d bits, can only handle %d bits\n", X--- 533,539 ---- X block_compress = maxbits & BLOCK_MASK; X maxbits &= BIT_MASK; X maxmaxcode = 1 << maxbits; X! fsize = 100000; X if(maxbits > BITS) { X fprintf(stderr, X "stdin: compressed with %d bits, can only handle %d bits\n", X*************** X*** 743,761 **** X */ X X compress() { X! register long fcode; X register code_int i = 0; X register int c; X! register code_int ent; X! #ifdef XENIX_16 X! register code_int disp; X! #else /* Normal machine */ X! register int disp; X! #endif X! register code_int hsize_reg; X register int hshift; X X- #ifndef COMPATIBLE X if (nomagic == 0) { X putchar(magic_header[0]); putchar(magic_header[1]); X putchar((char)(maxbits | block_compress)); X--- 575,588 ---- X */ X X compress() { X! long fcode; X register code_int i = 0; X register int c; X! code_int ent; X! int disp; X! code_int hsize_reg; X register int hshift; X X if (nomagic == 0) { X putchar(magic_header[0]); putchar(magic_header[1]); X putchar((char)(maxbits | block_compress)); X*************** X*** 762,768 **** X if(ferror(stdout)) X writeerr(); X } X- #endif /* COMPATIBLE */ X X offset = 0; X bytes_out = 3; /* includes 3-byte header mojo */ X--- 589,594 ---- X*************** X*** 784,794 **** X hsize_reg = hsize; X cl_hash( (count_int) hsize_reg); /* clear hash table */ X X- #ifdef SIGNED_COMPARE_SLOW X- while ( (c = getchar()) != (unsigned) EOF ) { X- #else X while ( (c = getchar()) != EOF ) { X- #endif X in_count++; X fcode = (long) (((long) c << maxbits) + ent); X i = ((c << hshift) ^ ent); /* xor hashing */ X--- 610,616 ---- X*************** X*** 815,825 **** X output ( (code_int) ent ); X out_count++; X ent = c; X- #ifdef SIGNED_COMPARE_SLOW X- if ( (unsigned) free_ent < (unsigned) maxmaxcode) { X- #else X if ( free_ent < maxmaxcode ) { X- #endif X codetabof (i) = free_ent++; /* code -> hashtable */ X htabof (i) = fcode; X } X--- 637,643 ---- X*************** X*** 877,886 **** X X static char buf[BITS]; X X- #ifndef vax X char_type lmask[9] = {0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, 0x00}; X char_type rmask[9] = {0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff}; X- #endif /* vax */ X X output( code ) X code_int code; X--- 695,702 ---- X*************** X*** 902,916 **** X (col+=6) >= 74 ? (col = 0, '\n') : ' ' ); X #endif /* DEBUG */ X if ( code >= 0 ) { X- #ifdef vax X- /* VAX DEPENDENT!! Implementation on other machines is below. X- * X- * Translation: Insert BITS bits from the argument starting at X- * offset bits from the beginning of buf. X- */ X- 0; /* Work around for pcc -O bug with asm and if stmt */ X- asm( "insv 4(ap),r11,r10,(r9)" ); X- #else /* not a vax */ X /* X * byte/bit numbering on the VAX is simulated by the following code X */ X--- 718,723 ---- X*************** X*** 936,942 **** X /* Last bits. */ X if(bits) X *bp = code; X- #endif /* vax */ X offset += n_bits; X if ( offset == (n_bits << 3) ) { X bp = buf; X--- 743,748 ---- X*************** X*** 1053,1063 **** X /* X * Generate output characters in reverse order X */ X- #ifdef SIGNED_COMPARE_SLOW X- while ( ((unsigned long)code) >= ((unsigned long)256) ) { X- #else X while ( code >= 256 ) { X- #endif X *stackp++ = tab_suffixof(code); X code = tab_prefixof(code); X } X--- 859,865 ---- X*************** X*** 1136,1144 **** X } X r_off = offset; X bits = n_bits; X- #ifdef vax X- asm( "extzv r10,r9,(r8),r11" ); X- #else /* not a vax */ X /* X * Get to the first byte. X */ X--- 938,943 ---- X*************** X*** 1145,1172 **** X bp += (r_off >> 3); X r_off &= 7; X /* Get first part (low order bits) */ X- #ifdef NO_UCHAR X- code = ((*bp++ >> r_off) & rmask[8 - r_off]) & 0xff; X- #else X code = (*bp++ >> r_off); X- #endif /* NO_UCHAR */ X bits -= (8 - r_off); X r_off = 8 - r_off; /* now, offset into code word */ X /* Get any 8 bit parts in the middle (<=1 for up to 16 bits). */ X if ( bits >= 8 ) { X- #ifdef NO_UCHAR X- code |= (*bp++ & 0xff) << r_off; X- #else X code |= *bp++ << r_off; X- #endif /* NO_UCHAR */ X r_off += 8; X bits -= 8; X } X /* high order bits. */ X code |= (*bp & rmask[bits]) << r_off; X- #endif /* vax */ X offset += n_bits; X- X return code; X } X X--- 944,961 ---- X*************** X*** 1411,1438 **** X cl_hash(hsize) /* reset code table */ X register count_int hsize; X { X- #ifndef XENIX_16 /* Normal machine */ X register count_int *htab_p = htab+hsize; X- #else X- register j; X- register long k = hsize; X- register count_int *htab_p; X- #endif X register long i; X register long m1 = -1; X X- #ifdef XENIX_16 X- for(j=0; j<=8 && k>=0; j++,k-=8192) { X- i = 8192; X- if(k < 8192) { X- i = k; X- } X- htab_p = &(htab[j][i]); X- i -= 16; X- if(i > 0) { X- #else X i = hsize - 16; X- #endif X do { /* might use Sys V memset(3) here */ X *(htab_p-16) = m1; X *(htab_p-15) = m1; X--- 1200,1210 ---- X*************** X*** 1452,1461 **** X *(htab_p-1) = m1; X htab_p -= 16; X } while ((i -= 16) >= 0); X- #ifdef XENIX_16 X- } X- } X- #endif X for ( i += 16; i > 0; i-- ) X *--htab_p = m1; X } X--- 1224,1229 ---- X*************** X*** 1480,1507 **** X X version() X { X! fprintf(stderr, "%s, Berkeley 5.9 5/11/86\n", rcs_ident); X! fprintf(stderr, "Options: "); X! #ifdef vax X! fprintf(stderr, "vax, "); X! #endif X! #ifdef NO_UCHAR X! fprintf(stderr, "NO_UCHAR, "); X! #endif X! #ifdef SIGNED_COMPARE_SLOW X! fprintf(stderr, "SIGNED_COMPARE_SLOW, "); X! #endif X! #ifdef XENIX_16 X! fprintf(stderr, "XENIX_16, "); X! #endif X! #ifdef COMPATIBLE X! fprintf(stderr, "COMPATIBLE, "); X! #endif X #ifdef DEBUG X! fprintf(stderr, "DEBUG, "); X! #endif X! #ifdef BSD4_2 X! fprintf(stderr, "BSD4_2, "); X #endif X fprintf(stderr, "BITS = %d\n", BITS); X } X--- 1248,1256 ---- X X version() X { X! fputs("compress 2.11BSD 5.9.1 2026/1/1\nOptions:", stderr); X #ifdef DEBUG X! fputs("DEBUG, ", stderr); X #endif X fprintf(stderr, "BITS = %d\n", BITS); X } X*** ./usr/src/ucb/compress/Makefile.old Tue Feb 17 00:34:45 1987 X--- ./usr/src/ucb/compress/Makefile Thu Jan 1 10:59:30 2026 X*************** X*** 1,27 **** X # X! # @(#)Makefile 5.5 (Berkeley) 9/18/85 X # X! COMFLAGS=-DBSD4_2 -O -DSACREDMEM=256000 X! SEPFLAG= -i X! BIN=${DESTDIR}/usr/ucb X X! compress: compress.c USERMEM X! cc ${SEPFLAG} $(COMFLAGS) -DUSERMEM=`cat USERMEM` -o compress compress.c X X- # USERMEM may have to be set by hand. It should contain the amount of X- # available user memory in bytes. Set it to zero, for physical memory X- # less than 1 Meg. X- USERMEM: X- sh usermem.sh > USERMEM X- X install: compress X! install -s compress $(BIN) X rm -f $(BIN)/uncompress $(BIN)/zcat X ln $(BIN)/compress $(BIN)/uncompress X ln $(BIN)/compress $(BIN)/zcat X X- # Temporarily don't delete USERMEM. When chroot'ed to /nbsd, usermem.sh X- # fails totally. X clean: X! rm -f compress core errs X! # rm -f compress USERMEM core errs X--- 1,18 ---- X # X! # @(#)Makefile 5.6 (2.11BSD) 2026/1/1 X # X! CFLAGS=-O X! LDFLAGS= -i X! BIN=/usr/ucb X X! compress: compress.o X! cc ${LDFLAGS} -o compress compress.o X X install: compress X! install -c -s -m 755 compress $(BIN) X rm -f $(BIN)/uncompress $(BIN)/zcat X ln $(BIN)/compress $(BIN)/uncompress X ln $(BIN)/compress $(BIN)/zcat X X clean: X! rm -f compress *.core errs *.o X*** ./usr/src/ucb/compress/README.old Tue Feb 17 00:11:01 1987 X--- ./usr/src/ucb/compress/README Thu Jan 1 11:31:09 2026 X*************** X*** 1,5 **** X X! @(#)README 5.3 (Berkeley) 9/17/85 X X Compress version 4.0 improvements over 3.0: X o compress() speedup (10-50%) by changing division hash to xor X--- 1,7 ---- X+ @(#)README 5.4 (2.11BSD) 2026/1/1 X X! Rip out all the non-pdp11 conditionals. If someone want to port this version X! to those systems then: have fun! X X Compress version 4.0 improvements over 3.0: X o compress() speedup (10-50%) by changing division hash to xor SHAR_EOF fi if test -f 'OLD499E.patch' then echo shar: "will not over-write existing file 'OLD499E.patch'" else sed 's/^X//' << \SHAR_EOF > 'OLD499E.patch' X*** ./usr/src/ucb/lock/Makefile.old Sun Dec 1 16:48:29 1996 X--- ./usr/src/ucb/lock/Makefile Mon Dec 8 23:27:06 2025 X*************** X*** 14,24 **** X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.2.2 (2.11BSD) 1996/12/1 X # X X CFLAGS= -O X! SEPFLAG= -i X SRCS= lock.c X OBJS= lock.o X MAN= lock.0 X--- 14,24 ---- X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.2.3 (2.11BSD) 2025/11/26 X # X X CFLAGS= -O X! LDFLAGS= -i X SRCS= lock.c X OBJS= lock.o X MAN= lock.0 X*************** X*** 27,33 **** X all: lock ${MAN} X X lock: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${OBJS} X X lock.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 27,33 ---- X all: lock ${MAN} X X lock: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X lock.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 42,49 **** X mkdep ${CFLAGS} ${SRCS} X X install: lock ${MAN} X! install -s -o root -g bin -m 4755 lock ${DESTDIR}/usr/ucb X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X--- 42,49 ---- X mkdep ${CFLAGS} ${SRCS} X X install: lock ${MAN} X! install -c -s -o root -g staff -m 4755 lock /usr/ucb X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X*** ./usr/src/ucb/man/Makefile.old Sun Dec 1 16:48:47 1996 X--- ./usr/src/ucb/man/Makefile Mon Dec 8 23:27:27 2025 X*************** X*** 14,23 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.5.2 (2.11BSD) 1996/12/1 X # X CFLAGS= -O X! SEPFLAG= -i X ASRCS= apropos.c X AOBJS= apropos.o X MSRCS= man.c X--- 14,23 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.5.3 (2.11BSD) 2025/11/26 X # X CFLAGS= -O X! LDFLAGS= -i X ASRCS= apropos.c X AOBJS= apropos.o X MSRCS= man.c X*************** X*** 26,47 **** X all: man apropos X X apropos: ${AOBJS} X! ${CC} ${SEPFLAG} -o $@ ${AOBJS} X X man: ${MOBJS} X! ${CC} ${SEPFLAG} -o $@ ${MOBJS} X X clean: FRC X rm -f core apropos man *.o X X depend: FRC X! mkdep ${CFLAGS} ${ASRCS} ${MSRCS} X X install: man apropos X! rm -f ${DESTDIR}/usr/ucb/whatis ${DESTDIR}/usr/ucb/apropos X! install -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/ucb/apropos X! install -s -o bin -g bin -m 755 man ${DESTDIR}/usr/ucb/man X! ln ${DESTDIR}/usr/ucb/apropos ${DESTDIR}/usr/ucb/whatis X X lint: FRC X lint ${CFLAGS} ${ASRCS} X--- 26,47 ---- X all: man apropos X X apropos: ${AOBJS} X! ${CC} ${LDFLAGS} -o $@ ${AOBJS} X X man: ${MOBJS} X! ${CC} ${LDFLAGS} -o $@ ${MOBJS} X X clean: FRC X rm -f core apropos man *.o X X depend: FRC X! mkdep ${ASRCS} ${MSRCS} X X install: man apropos X! rm -f /usr/ucb/whatis /usr/ucb/apropos X! install -c -s -o root -g staff -m 755 apropos /usr/ucb/apropos X! install -c -s -o root -g staff -m 755 man /usr/ucb/man X! ln /usr/ucb/apropos /usr/ucb/whatis X X lint: FRC X lint ${CFLAGS} ${ASRCS} X*** ./usr/src/ucb/tn3270/Makefile.old Sun Dec 1 18:47:35 1996 X--- ./usr/src/ucb/tn3270/Makefile Tue Nov 25 19:30:40 2025 X*************** X*** 1,27 **** X! # Makefile for tn3270 and friends... X! # @(#)Makefile 2.12 1996/11/16 X X CC = cc X! SEPFLAG = -i X X! DEFINES = -DDEBUG X! DEFINES = X X- INCLUDES = -I. X- INCLUDES = X- X OPTIMIZE = -O X X! CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES) X X # Lint flags X LINTFLAGS = -hbxaz X- # How to install the bloody thing... X X! DESTDIR= X X- BINDIR = $(DESTDIR)/usr/ucb X- X # Names for the terminal libraries... X LIBCURSES = -lcurses X LIBTERM = -ltermlib X--- 1,19 ---- X! # @(#)Makefile 2.13 (2.11BSD) 2025/11/25 X X CC = cc X! LDFLAGS = -i X X! # DEFINES = -DDEBUG X X OPTIMIZE = -O X X! CFLAGS = $(OPTIMIZE) $(DEFINES) X X # Lint flags X LINTFLAGS = -hbxaz X X! BINDIR = /usr/ucb X X # Names for the terminal libraries... X LIBCURSES = -lcurses X LIBTERM = -ltermlib X*************** X*** 72,85 **** X all: ${ALLH} ${ALLC} ${ALLS} tn3270 mset X X tn3270: $(MOSTO) X! ${CC} ${CFLAGS} ${SEPFLAG} -o tn3270 $(MOSTO) $(LIBCURSES) $(LIBTERM) X X mset: mset.o map3270.o X! ${CC} ${CFLAGS} ${SEPFLAG} -o mset mset.o map3270.o $(LIBCURSES) X X install: tn3270 mset X! install -s tn3270 $(BINDIR) X! install -s mset $(BINDIR) X X clean: X rm -f $(ALLO) mset tn3270 m4.out errs Makefile.bak X--- 64,77 ---- X all: ${ALLH} ${ALLC} ${ALLS} tn3270 mset X X tn3270: $(MOSTO) X! ${CC} ${CFLAGS} ${LDFLAGS} -o tn3270 $(MOSTO) $(LIBCURSES) $(LIBTERM) X X mset: mset.o map3270.o X! ${CC} ${CFLAGS} ${LDFLAGS} -o mset mset.o map3270.o $(LIBCURSES) X X install: tn3270 mset X! install -c -s -m 755 -o root tn3270 $(BINDIR) X! install -c -s -m 755 -o root mset $(BINDIR) X X clean: X rm -f $(ALLO) mset tn3270 m4.out errs Makefile.bak X*** ./usr/src/ucb/talk/Makefile.old Tue Feb 17 01:49:20 1987 X--- ./usr/src/ucb/talk/Makefile Sat Nov 29 07:53:14 2025 X*************** X*** 3,11 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4 (Berkeley) 4/12/86 X # X- DESTDIR= X OBJS= talk.o get_names.o display.o io.o ctl.o init_disp.o \ X msgs.o get_addrs.o ctl_transact.o invite.o look_up.o X SRCS= talk.c get_names.c display.c io.c ctl.c init_disp.c \ X--- 3,10 ---- 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/11/29 X # X OBJS= talk.o get_names.o display.o io.o ctl.o init_disp.o \ X msgs.o get_addrs.o ctl_transact.o invite.o look_up.o X SRCS= talk.c get_names.c display.c io.c ctl.c init_disp.c \ X*************** X*** 12,28 **** X msgs.c get_addrs.c ctl_transact.c invite.c look_up.c X INCLUDE=talk.h talk_ctl.h X CFLAGS= -O X! SEPFLAG= -i X X all: talk X X talk: ${OBJS} X! cc ${SEPFLAG} -o talk ${OBJS} -lcurses -ltermlib X X ${OBJS}: talk.h talk_ctl.h X X install: talk X! install -g tty -m 2755 -s talk ${DESTDIR}/usr/ucb/talk X X clean: X rm -f ${OBJS} a.out errs core talk X--- 11,27 ---- X msgs.c get_addrs.c ctl_transact.c invite.c look_up.c X INCLUDE=talk.h talk_ctl.h X CFLAGS= -O X! LDFLAGS= -i X X all: talk X X talk: ${OBJS} X! cc ${LDFLAGS} -o talk ${OBJS} -lcurses -ltermlib X X ${OBJS}: talk.h talk_ctl.h X X install: talk X! install -g tty -m 2755 -s talk /usr/ucb/talk X X clean: X rm -f ${OBJS} a.out errs core talk X*************** X*** 31,115 **** X ctags ${SRCS} ${INCLUDE} X X depend: ${SRCS} X! for i in ${SRCS}; do \ X! cc -M $$i | sed 's/\.o//' | \ X! awk ' { if ($$1 != prev) \ X! { if (rec != "") print rec; rec = $$0; prev = $$1; } \ X! else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ X! else rec = rec " " $$2 } } \ X! END { print rec } ' >> makedep; done X! echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep X! echo '$$r makedep' >>eddep X! echo 'w' >>eddep X! cp Makefile Makefile.bak X! ed - Makefile < eddep X! rm eddep makedep X! echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile X! echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile X! echo '# see make depend above' >> Makefile X X! # DO NOT DELETE THIS LINE -- make depend uses it X X! talk: talk.c ./talk.h /usr/include/curses.h /usr/include/stdio.h X! talk: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! talk: /usr/include/sys/ttydev.h /usr/include/utmp.h X! get_names: get_names.c ./talk.h /usr/include/curses.h /usr/include/stdio.h X! get_names: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! get_names: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! get_names: /usr/include/utmp.h /usr/include/sys/param.h X! get_names: /usr/include/machine/machparam.h /usr/include/signal.h X! get_names: /usr/include/sys/types.h /usr/include/protocols/talkd.h X! get_names: /usr/include/sys/types.h /usr/include/sys/socket.h X! display: display.c ./talk.h /usr/include/curses.h /usr/include/stdio.h X! display: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! display: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! display: /usr/include/utmp.h X! io: io.c ./talk.h /usr/include/curses.h /usr/include/stdio.h X! io: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! io: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/stdio.h X! io: /usr/include/errno.h /usr/include/sys/time.h /usr/include/time.h X! ctl: ctl.c ./talk_ctl.h /usr/include/sys/types.h /usr/include/protocols/talkd.h X! ctl: /usr/include/sys/types.h /usr/include/sys/socket.h X! ctl: /usr/include/netinet/in.h ./talk.h /usr/include/curses.h X! ctl: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X! ctl: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h /usr/include/utmp.h X! ctl: /usr/include/errno.h X! init_disp: init_disp.c ./talk.h /usr/include/curses.h /usr/include/stdio.h X! init_disp: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! init_disp: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! init_disp: /usr/include/utmp.h /usr/include/signal.h X! msgs: msgs.c /usr/include/signal.h /usr/include/stdio.h /usr/include/sys/time.h X! msgs: /usr/include/time.h ./talk.h /usr/include/curses.h /usr/include/stdio.h X! msgs: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! msgs: /usr/include/sys/ttydev.h /usr/include/utmp.h X! get_addrs: get_addrs.c ./talk_ctl.h /usr/include/sys/types.h X! get_addrs: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! get_addrs: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h X! get_addrs: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! get_addrs: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! get_addrs: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h X! get_addrs: /usr/include/netdb.h X! ctl_transact: ctl_transact.c ./talk_ctl.h /usr/include/sys/types.h X! ctl_transact: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! ctl_transact: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h X! ctl_transact: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! ctl_transact: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! ctl_transact: /usr/include/sys/ttydev.h /usr/include/utmp.h X! ctl_transact: /usr/include/errno.h /usr/include/sys/time.h /usr/include/time.h X! invite: invite.c ./talk_ctl.h /usr/include/sys/types.h X! invite: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! invite: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h X! invite: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! invite: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! invite: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h X! invite: /usr/include/sys/time.h /usr/include/time.h /usr/include/signal.h X! invite: /usr/include/setjmp.h X! look_up: look_up.c ./talk_ctl.h /usr/include/sys/types.h X! look_up: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! look_up: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h X! look_up: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! look_up: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! look_up: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h X! # DEPENDENCIES MUST END AT END OF FILE X! # IF YOU PUT STUFF HERE IT WILL GO AWAY X! # see make depend above X--- 30,118 ---- X ctags ${SRCS} ${INCLUDE} X X depend: ${SRCS} X! mkdep ${CFLAGS} ${SRCS} X! # DO NOT DELETE THIS LINE -- mkdep uses it. X! # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X X! talk.o: talk.c talk.h /usr/include/curses.h /usr/include/stdio.h X! talk.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! talk.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! talk.o: /usr/include/utmp.h X! get_names.o: get_names.c talk.h /usr/include/curses.h /usr/include/stdio.h X! get_names.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! get_names.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! get_names.o: /usr/include/utmp.h /usr/include/sys/param.h X! get_names.o: /usr/include/sys/localopts.h /usr/include/sys/stddef.h X! get_names.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X! get_names.o: /usr/include/sys/select.h /usr/include/sys/types.h X! get_names.o: /usr/include/signal.h /usr/include/sys/types.h X! get_names.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! get_names.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X! get_names.o: /usr/include/string.h /usr/include/sys/types.h X! get_names.o: /usr/include/unistd.h /usr/include/sys/types.h X! get_names.o: /usr/include/stdint.h X! display.o: display.c talk.h /usr/include/curses.h /usr/include/stdio.h X! display.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! display.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! display.o: /usr/include/utmp.h X! io.o: io.c talk.h /usr/include/curses.h /usr/include/stdio.h X! io.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! io.o: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/stdio.h X! io.o: /usr/include/errno.h /usr/include/string.h /usr/include/sys/types.h X! io.o: /usr/include/sys/select.h /usr/include/sys/types.h X! io.o: /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/time.h X! io.o: /usr/include/sys/types.h X! ctl.o: ctl.c talk_ctl.h /usr/include/sys/types.h /usr/include/sys/select.h X! ctl.o: /usr/include/sys/types.h /usr/include/protocols/talkd.h X! ctl.o: /usr/include/sys/types.h /usr/include/sys/socket.h X! ctl.o: /usr/include/netinet/in.h talk.h /usr/include/curses.h X! ctl.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X! ctl.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! ctl.o: /usr/include/utmp.h /usr/include/errno.h X! init_disp.o: init_disp.c talk.h /usr/include/curses.h /usr/include/stdio.h X! init_disp.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X! init_disp.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! init_disp.o: /usr/include/utmp.h /usr/include/signal.h X! msgs.o: msgs.c /usr/include/signal.h /usr/include/stdio.h X! msgs.o: /usr/include/sys/time.h /usr/include/sys/types.h X! msgs.o: /usr/include/sys/select.h /usr/include/sys/types.h /usr/include/time.h X! msgs.o: /usr/include/sys/types.h talk.h /usr/include/curses.h X! msgs.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X! msgs.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X! msgs.o: /usr/include/utmp.h X! get_addrs.o: get_addrs.c talk_ctl.h /usr/include/sys/types.h X! get_addrs.o: /usr/include/sys/select.h /usr/include/sys/types.h X! get_addrs.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! get_addrs.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h X! get_addrs.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! get_addrs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! get_addrs.o: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h X! get_addrs.o: /usr/include/netdb.h X! ctl_transact.o: ctl_transact.c talk_ctl.h /usr/include/sys/types.h X! ctl_transact.o: /usr/include/sys/select.h /usr/include/sys/types.h X! ctl_transact.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! ctl_transact.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h X! ctl_transact.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! ctl_transact.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! ctl_transact.o: /usr/include/sys/ttydev.h /usr/include/utmp.h X! ctl_transact.o: /usr/include/errno.h /usr/include/sys/time.h X! ctl_transact.o: /usr/include/sys/types.h /usr/include/time.h X! ctl_transact.o: /usr/include/sys/types.h X! invite.o: invite.c talk_ctl.h /usr/include/sys/types.h X! invite.o: /usr/include/sys/select.h /usr/include/sys/types.h X! invite.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! invite.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h X! invite.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! invite.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! invite.o: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h X! invite.o: /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/time.h X! invite.o: /usr/include/sys/types.h /usr/include/signal.h /usr/include/setjmp.h X! look_up.o: look_up.c talk_ctl.h /usr/include/sys/types.h X! look_up.o: /usr/include/sys/select.h /usr/include/sys/types.h X! look_up.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h X! look_up.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h X! look_up.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h X! look_up.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X! look_up.o: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h X X! # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/ucb/rsh.c.old Thu Aug 13 23:35:17 1987 X--- ./usr/src/ucb/rsh.c Fri Dec 26 17:44:22 2025 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[] = "@(#)rsh.c 5.4 (Berkeley) 8/28/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) 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 #include X*************** X*** 26,41 **** X #include X #include X #include X X /* X * rsh - remote shell X */ X! /* VARARGS */ X int error(); X- char *index(), *rindex(), *malloc(), *getpass(), *sprintf(), *strcpy(); X X- struct passwd *getpwuid(); X- X int errno; X int options; X int rfd2; X--- 24,37 ---- X #include X #include X #include X+ #include X X /* X * rsh - remote shell X */ X! X int error(); X X int errno; X int options; X int rfd2; X*************** X*** 124,130 **** X cc = 0; X for (ap = argv; *ap; ap++) X cc += strlen(*ap) + 1; X! cp = args = malloc(cc); X for (ap = argv; *ap; ap++) { X (void) strcpy(cp, *ap); X while (*cp) X--- 120,126 ---- X cc = 0; X for (ap = argv; *ap; ap++) X cc += strlen(*ap) + 1; X! cp = args = (char *)malloc(cc); X for (ap = argv; *ap; ap++) { X (void) strcpy(cp, *ap); X while (*cp) X*** ./usr/src/ucb/top/Makefile.old Mon Mar 23 20:50:08 2020 X--- ./usr/src/ucb/top/Makefile Mon Dec 8 15:33:54 2025 X*************** X*** 1,9 **** X # X! # @(#)Makefile 1.1 (2.11BSD) 2020/3/23 X # X X CFLAGS= -O X! SEPFLAG= -i X MAN= top.0 X MANSRC= top.1 X X--- 1,9 ---- X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/26 X # X X CFLAGS= -O X! LDFLAGS= -i X MAN= top.0 X MANSRC= top.1 X X*************** X*** 10,16 **** X all: top ${MAN} X X top: top.o psdb.o X! cc -i -o top top.o psdb.o -lcurses -ltermcap X X top.o: top.c psdb.h X cc ${CFLAGS} -c top.c X--- 10,16 ---- 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*** 22,29 **** X /usr/man/manroff ${MANSRC} > ${MAN} X X install: all X! install -c -s -o root -g kmem -m 2755 top ${DESTDIR}/usr/ucb X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X X clean: X rm -f top.o psdb.o top ${MAN} X--- 22,29 ---- X /usr/man/manroff ${MANSRC} > ${MAN} X X install: all X! install -c -s -o root -g kmem -m 2755 top /usr/ucb 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*** ./usr/src/ucb/finger/Makefile.old Sun Dec 1 16:47:55 1996 X--- ./usr/src/ucb/finger/Makefile Mon Dec 8 15:33:54 2025 X*************** X*** 14,24 **** X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.2.2 (2.11BSD) 1996/12/1 X # X X! SEPFLAG= -i X! CFLAGS= -O -DSECSPERDAY=86400 -DDAYSPERNYEAR=365 ${SEPFLAG} X SRCS= finger.c lprint.c net.c sprint.c util.c X OBJS= finger.o lprint.o net.o sprint.o util.o X MAN= finger.0 X--- 14,24 ---- X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.2.3 (2.11BSD) 2025/11/26 X # X X! LDFLAGS= -i X! CFLAGS= -O -DSECSPERDAY=86400 -DDAYSPERNYEAR=365 X SRCS= finger.c lprint.c net.c sprint.c util.c X OBJS= finger.o lprint.o net.o sprint.o util.o X MAN= finger.0 X*************** X*** 26,32 **** X all: finger ${MAN} X X finger: ${OBJS} X! ${CC} -o $@ ${CFLAGS} ${OBJS} X X clean: X rm -f ${OBJS} core finger ${MAN} X--- 26,32 ---- X all: finger ${MAN} X X finger: ${OBJS} X! ${CC} -o $@ ${LDFLAGS} ${OBJS} X X clean: X rm -f ${OBJS} core finger ${MAN} X*************** X*** 39,46 **** X X # install: ${MAN} X install: finger ${MAN} X! install -s -o bin -g bin -m 755 finger ${DESTDIR}/usr/ucb X! install -c -o bin -g bin -m 444 finger.0 ${DESTDIR}/usr/man/cat1 X X ${MAN}: finger.1 X /usr/man/manroff finger.1 > ${MAN} X--- 39,46 ---- X X # install: ${MAN} X install: finger ${MAN} X! install -c -s -o root -g staff -m 755 finger /usr/ucb X! install -c -o root -g staff -m 444 finger.0 /usr/man/cat1 X X ${MAN}: finger.1 X /usr/man/manroff finger.1 > ${MAN} X*** ./usr/src/ucb/rlogin/Makefile.old Fri Oct 13 23:54:32 2000 X--- ./usr/src/ucb/rlogin/Makefile Mon Dec 8 23:30:49 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 2000/5/17 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= rlogin.c X OBJS= rlogin.o X MAN= rlogin.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/26 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= rlogin.c X OBJS= rlogin.o X MAN= rlogin.0 X*************** X*** 13,19 **** X all: rlogin rlogin.0 X X rlogin: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X rlogin.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: rlogin rlogin.0 X X rlogin: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X rlogin.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: rlogin X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 4755 rlogin ${DESTDIR}/usr/ucb/rlogin X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rlogin X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 4755 rlogin /usr/ucb/rlogin X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/ucb/Makefile.old Wed Mar 4 20:18:10 2020 X--- ./usr/src/ucb/Makefile Mon Dec 8 23:25:16 2025 X*************** X*** 3,19 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.18 (2.11BSD) 2020/3/4 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X # Programs that live in subdirectories, and have makefiles of their own. X # X! SUBDIR= Mail compress dbx error ex finger fp ftp indent lock man \ X more msgs netstat pascal rdist rlogin sendbug talk tftp \ X! tn3270 top tset vgrind vlp window X X # Shell scripts that need only be installed and are never removed. 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.19 (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 # 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 # Shell scripts that need only be installed and are never removed. X # X*************** X*** 23,29 **** X # explicit make lines. X # X STD= apply biff checknr colcrt colrm ctags expand fold \ X! from gprof 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--- 22,28 ---- 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*** 43,69 **** X all: ${SUBDIR} ${STD} ${NSTD} ${KMEM} ${SETUID} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X ${STD} ${KMEM} ${SETUID}: X! cc ${CFLAGS} ${SEPFLAG} -o $@ $@.c X X install: ${STD} ${NSTD} ${KMEM} ${SETUID} X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X -for i in ${CSHSCRIPT}; do \ X! (install -m 755 -c $$i.csh ${DESTDIR}/usr/ucb/$$i); done X -for i in ${STD} ${NSTD}; do \ X! (install -s $$i ${DESTDIR}/usr/ucb/$$i); done X -for i in ${KMEM}; do \ X! (install -g kmem -m 2755 -s $$i ${DESTDIR}/usr/ucb/$$i); done X -for i in ${SETUID}; do \ X! (install -o root -m 4755 -s $$i ${DESTDIR}/usr/ucb/$$i); done X! rm -f ${DESTDIR}/usr/ucb/uptime ${DESTDIR}/usr/ucb/f X! ln ${DESTDIR}/usr/ucb/w ${DESTDIR}/usr/ucb/uptime X! ln ${DESTDIR}/usr/ucb/finger ${DESTDIR}/usr/ucb/f X! rm -f ${DESTDIR}/usr/ucb/u X! ln ${DESTDIR}/usr/ucb/users ${DESTDIR}/usr/ucb/u X X clean: X rm -f a.out core *.s *.o X--- 42,68 ---- X all: ${SUBDIR} ${STD} ${NSTD} ${KMEM} ${SETUID} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X ${STD} ${KMEM} ${SETUID}: X! cc ${CFLAGS} ${LDFLAGS} -o $@ $@.c X X install: ${STD} ${NSTD} ${KMEM} ${SETUID} X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X -for i in ${CSHSCRIPT}; do \ X! (install -m 755 -c $$i.csh /usr/ucb/$$i); done X -for i in ${STD} ${NSTD}; do \ X! (install -c -s -m 755 $$i /usr/ucb/$$i); done X -for i in ${KMEM}; do \ X! (install -g kmem -m 2755 -c -s $$i /usr/ucb/$$i); done X -for i in ${SETUID}; do \ X! (install -o root -m 4755 -c -s $$i /usr/ucb/$$i); done X! rm -f /usr/ucb/uptime /usr/ucb/f X! ln /usr/ucb/w /usr/ucb/uptime X! ln /usr/ucb/finger /usr/ucb/f X! rm -f /usr/ucb/u X! ln /usr/ucb/users /usr/ucb/u X X clean: X rm -f a.out core *.s *.o X*************** X*** 93,105 **** X # Files listed in ${NSTD} have explicit make lines given below. X X clear: X! ${CC} -o clear ${SEPFLAG} ${CFLAGS} clear.c -ltermlib X X ul: X! ${CC} -o ul ${SEPFLAG} ${CFLAGS} ul.c -ltermlib X X vacation: vacation.c X! ${CC} -o vacation ${SEPFLAG} ${CFLAGS} vacation.c -ldbm X X # DO NOT DELETE THIS LINE -- make depend uses it X X--- 92,104 ---- X # Files listed in ${NSTD} have explicit make lines given below. X X clear: X! ${CC} -o clear ${LDFLAGS} ${CFLAGS} clear.c -ltermlib X X ul: X! ${CC} -o ul ${LDFLAGS} ${CFLAGS} ul.c -ltermlib X X vacation: vacation.c X! ${CC} -o vacation ${LDFLAGS} ${CFLAGS} vacation.c -ldbm X X # DO NOT DELETE THIS LINE -- make depend uses it X X*** ./usr/src/ucb/gcore.c.old Fri Sep 20 14:10:09 2024 X--- ./usr/src/ucb/gcore.c Fri Dec 26 15:35:00 2025 X*************** X*** 11,17 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)gcore.c 1.3 (2.11BSD) 2024/9/20"; X #endif X X #include X--- 11,17 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)gcore.c 1.4 (2.11BSD) 2025/12/26"; X #endif X X #include X*************** X*** 20,26 **** X #include X #include X #include X! #include X X #define NLIST "/unix" X #define MEM "/dev/mem" X--- 20,27 ---- X #include X #include X #include X! #include X! #include X X #define NLIST "/unix" X #define MEM "/dev/mem" X*************** X*** 37,46 **** X struct proc *pbuf; X char *corefile, *program_name; X X- extern int optind, opterr; X- extern char *optarg, *rindex(); X- extern off_t lseek(); X- X main(argc, argv) X int argc; X char **argv; X--- 38,43 ---- X*************** X*** 187,194 **** X X /* VARARGS */ X void X! error(va_alist) X! va_dcl X { X va_list ap; X register char *cp; X--- 184,190 ---- X X /* VARARGS */ X void X! error(char *fmt, ...) X { X va_list ap; X register char *cp; X*************** X*** 195,203 **** X X (void)fprintf(stderr, "%s: ", program_name); X X! va_start(ap); X! cp = va_arg(ap, char *); X! (void)vfprintf(stderr, cp, ap); X va_end(ap); X if (*cp) X { X--- 191,199 ---- X X (void)fprintf(stderr, "%s: ", program_name); X X! va_start(ap, fmt); X! cp = fmt; X! (void)vfprintf(stderr, fmt, ap); X va_end(ap); X if (*cp) X { X*************** X*** 211,218 **** X X /* VARARGS */ X void X! warning(va_alist) X! va_dcl X { X va_list ap; X register char *cp; X--- 207,213 ---- X X /* VARARGS */ X void X! warning(char *fmt, ...) X { X va_list ap; X register char *cp; X*************** X*** 219,226 **** X X (void)fprintf(stderr, "%s: warning: ", program_name); X X! va_start(ap); X! cp = va_arg(ap, char *); X (void)vfprintf(stderr, cp, ap); X va_end(ap); X if (*cp) X--- 214,221 ---- X X (void)fprintf(stderr, "%s: warning: ", program_name); X X! va_start(ap, fmt); X! cp = fmt; X (void)vfprintf(stderr, cp, ap); X va_end(ap); X if (*cp) X*** ./usr/src/ucb/head.c.old Tue Feb 17 00:11:14 1987 X--- ./usr/src/ucb/head.c Thu Dec 25 20:01:59 2025 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[] = "@(#)head.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X /* X--- 4,15 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if defined(DOSCCS) && !defined(lint) X char copyright[] = X! "@(#) Copyright (c) 1980 Regents of the University of California.\nAll rights reserved.\n"; X X! static char sccsid[] = "@(#)head.c 5.2 (2.11BSD) 2025/12/25"; X! #endif X X #include X /* X*************** X*** 43,49 **** X if (argc == 0 && around) X break; X if (argc > 0) { X- close(0); X if (freopen(argv[0], "r", stdin) == NULL) { X perror(argv[0]); X exit(1); X--- 40,45 ---- X*************** X*** 65,71 **** X copyout(cnt) X register int cnt; X { X- register int c; X char lbuf[BUFSIZ]; X X while (cnt > 0 && fgets(lbuf, sizeof lbuf, stdin) != 0) { X--- 61,66 ---- X*** ./usr/src/ucb/grep.c.old Tue Feb 17 01:10:03 1987 X--- ./usr/src/ucb/grep.c Sat Dec 27 21:44:08 2025 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[] = "@(#)grep.c 5.2 (Berkeley) 3/4/86"; 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[] = "@(#)grep.c 5.3 (2.11BSD) 2025/12/27"; X! #endif X X #include X #include X*************** X*** 54,59 **** X--- 52,58 ---- X int retcode = 0; X X main(argc, argv) X+ int argc; X char **argv; X { X X*************** X*** 222,227 **** X--- 221,227 ---- X } X X execute(file) X+ char *file; X { X register char *p1, *p2; X register c; X*************** X*** 417,423 **** X char *aset; X { X register char *set, c; X! register n; X X set = aset; X if ((c = ac) == 0) X--- 417,423 ---- X char *aset; X { X register char *set, c; X! register int n; X X set = aset; X if ((c = ac) == 0) X*** ./usr/src/ucb/logger.c.old Fri Oct 3 00:54:00 1997 X--- ./usr/src/ucb/logger.c Fri Dec 26 15:36:05 2025 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[] = "@(#)logger.c 6.2.1 (2.11BSD) 1997/10/2"; 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[] = "@(#)logger.c 6.2.2 (2.11BSD) 2025/12/26"; X #endif X X #include X*************** X*** 78,84 **** X argc--; X if (freopen(*++argv, "r", stdin) == NULL) X { X! fprintf("logger: "); X perror(*argv); X exit(1); X } X--- 78,84 ---- X argc--; X if (freopen(*++argv, "r", stdin) == NULL) X { X! fprintf(stderr, "logger: "); X perror(*argv); X exit(1); X } X*** ./usr/src/ucb/ruptime.c.old Fri Apr 18 14:39:53 1997 X--- ./usr/src/ucb/ruptime.c Fri Dec 26 17:47:06 2025 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.1 (2.11BSD) 1997/4/18"; 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.2 (2.11BSD) 2025/12/26"; X #endif X X #include X*************** X*** 33,39 **** X X char *interval(); X time_t now; X- char *malloc(), *sprintf(); X int aflg; X int rflg = 1; X X--- 33,38 ---- X*** ./usr/src/ucb/vacation.c.old Wed Oct 23 18:20:59 1996 X--- ./usr/src/ucb/vacation.c Fri Dec 26 17:48:26 2025 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char SccsId[] = "@(#)vacation.c 5.3.2 (2.11BSD GTE) 1996/10/23"; X #endif X X # include X--- 9,15 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char SccsId[] = "@(#)vacation.c 5.3.3 (2.11BSD) 2025/12/26"; X #endif X X # include X*************** X*** 401,413 **** X ** none. X */ X X! usrerr(f, p) X! char *f; X! char *p; X { X fprintf(stderr, "vacation: "); X! _doprnt(f, &p, stderr); X fprintf(stderr, "\n"); X } X /* X ** SYSERR -- print system error X--- 401,415 ---- X ** none. X */ X X! usrerr(char *f, ...) X { X+ va_list ap; X+ X+ va_start(ap, f); X fprintf(stderr, "vacation: "); X! vfprintf(stderr, f, ap); X fprintf(stderr, "\n"); X+ va_end(ap); X } X /* X ** SYSERR -- print system error X*************** X*** 423,435 **** X ** none. X */ X X! syserr(f, p) X! char *f; X! char *p; X { X fprintf(stderr, "vacation: "); X! _doprnt(f, &p, stderr); X fprintf(stderr, "\n"); X exit(EX_USAGE); X } X /* X--- 425,439 ---- X ** none. X */ X X! syserr(char *f, ...) X { X+ va_list ap; X+ X+ va_start(ap, f); X fprintf(stderr, "vacation: "); X! vfprintf(stderr, f, ap); X fprintf(stderr, "\n"); X+ va_end(ap); X exit(EX_USAGE); X } X /* X*** ./usr/src/usr.bin/diff3/Makefile.old Wed Oct 23 22:19:14 1996 X--- ./usr/src/usr.bin/diff3/Makefile Tue Dec 9 09:36:49 2025 X*************** X*** 1,15 **** X! # Makefile 4.1.1 (2.11BSD) 1996/10/23 X X CFLAGS=-O X! SEPFLAG= -i X! DESTDIR= X X diff3: diff3.o X! cc ${SEPFLAG} -o diff3 diff3.o X X install: diff3 X! install -s -m 755 diff3 $(DESTDIR)/usr/libexec X! install -c -m 755 diff3.sh $(DESTDIR)/usr/bin/diff3 X X clean: X rm -f diff3.o diff3 X--- 1,14 ---- X! # Makefile 4.1.2 (2.11BSD) 2025/11/25 X X CFLAGS=-O X! LDFLAGS= -i X X diff3: diff3.o X! cc ${LDFLAGS} -o diff3 diff3.o X X install: diff3 X! install -c -s -m 755 -o root diff3 /usr/libexec X! install -c -m 755 -o root diff3.sh /usr/bin/diff3 X X clean: X rm -f diff3.o diff3 X*** ./usr/src/usr.bin/plot/Makefile.old Mon Dec 26 02:47:38 1988 X--- ./usr/src/usr.bin/plot/Makefile Tue Dec 9 09:39:05 2025 X*************** X*** 1,7 **** X! # Makefile 4.7 85/11/11 X! # X CFLAGS= -O X! SEPFLAG= -i X ALL= tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \ X hpplot hp7221plot implot atoplot plottoa X X--- 1,8 ---- X! # Makefile 4.8 (2.11BSD) 2025/11/27 X! X CFLAGS= -O X! LDFLAGS= -i X! X ALL= tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \ X hpplot hp7221plot implot atoplot plottoa X X*************** X*** 8,64 **** X all: ${ALL} debug X X tek: driver.o X! cc ${SEPFLAG} -o tek driver.o -l4014 -lm X X t4013: driver.o X! cc ${SEPFLAG} -o t4013 driver.o -l4013 -lm X X t300: driver.o X! cc ${SEPFLAG} -o t300 driver.o -l300 -lm X X t300s: driver.o X! cc ${SEPFLAG} -o t300s driver.o -l300s -lm X X t450: driver.o X! cc ${SEPFLAG} -o t450 driver.o -l450 -lm X X aedplot: driver.o X! cc ${SEPFLAG} -o aedplot driver.o -lplotaed X X bgplot: driver.o X! cc ${SEPFLAG} -o bgplot driver.o -lplotbg -lm X X crtplot: crtdriver.o crtplot.o X! cc ${SEPFLAG} -o crtplot crtdriver.o crtplot.o -lcurses -ltermcap -lm X X dumbplot: driver.o X! cc ${SEPFLAG} -o dumbplot driver.o -lplotdumb -ltermcap -lm X X gigiplot: driver.o X! cc ${SEPFLAG} -o gigiplot driver.o -lplotgigi -lm X X hpplot: driver.o X! cc ${SEPFLAG} -o hpplot driver.o -lplot2648 -lm X X hp7221plot: driver.o X! cc ${SEPFLAG} -o hp7221plot driver.o -lplot7221 -lm X X implot: driver.o X! cc ${SEPFLAG} -o implot driver.o -lplotimagen -lm X X atoplot: atoplot.o X! cc ${SEPFLAG} -o atoplot atoplot.o -lplot -lm X X plottoa: plottoa.o X! cc ${SEPFLAG} -o plottoa plottoa.o X X debug: debug.o X! cc ${SEPFLAG} -o debug debug.o X X install: all X -for i in ${ALL}; do \ X! (install -s $$i ${DESTDIR}/usr/bin/$$i); done X! install -c plot.sh ${DESTDIR}/usr/bin/plot X X clean: X rm -f *.o ${ALL} a.out core errs debug X--- 9,65 ---- X all: ${ALL} debug X X tek: driver.o X! cc ${LDFLAGS} -o tek driver.o -l4014 -lm X X t4013: driver.o X! cc ${LDFLAGS} -o t4013 driver.o -l4013 -lm X X t300: driver.o X! cc ${LDFLAGS} -o t300 driver.o -l300 -lm X X t300s: driver.o X! cc ${LDFLAGS} -o t300s driver.o -l300s -lm X X t450: driver.o X! cc ${LDFLAGS} -o t450 driver.o -l450 -lm X X aedplot: driver.o X! cc ${LDFLAGS} -o aedplot driver.o -lplotaed X X bgplot: driver.o X! cc ${LDFLAGS} -o bgplot driver.o -lplotbg -lm X X crtplot: crtdriver.o crtplot.o X! cc ${LDFLAGS} -o crtplot crtdriver.o crtplot.o -lcurses -ltermcap -lm X X dumbplot: driver.o X! cc ${LDFLAGS} -o dumbplot driver.o -lplotdumb -ltermcap -lm X X gigiplot: driver.o X! cc ${LDFLAGS} -o gigiplot driver.o -lplotgigi -lm X X hpplot: driver.o X! cc ${LDFLAGS} -o hpplot driver.o -lplot2648 -lm X X hp7221plot: driver.o X! cc ${LDFLAGS} -o hp7221plot driver.o -lplot7221 -lm X X implot: driver.o X! cc ${LDFLAGS} -o implot driver.o -lplotimagen -lm X X atoplot: atoplot.o X! cc ${LDFLAGS} -o atoplot atoplot.o -lplot -lm X X plottoa: plottoa.o X! cc ${LDFLAGS} -o plottoa plottoa.o X X debug: debug.o X! cc ${LDFLAGS} -o debug debug.o X X install: all X -for i in ${ALL}; do \ X! (install -c -s -m 755 $$i /usr/bin/$$i); done X! install -c -m 755 plot.sh /usr/bin/plot X X clean: X rm -f *.o ${ALL} a.out core errs debug X*** ./usr/src/usr.bin/ratfor/Makefile.old Mon Feb 16 20:12:08 1987 X--- ./usr/src/usr.bin/ratfor/Makefile Tue Dec 9 09:39:46 2025 X*************** X*** 1,11 **** X X- # @(#)Makefile 1.1 (Berkeley) 12/15/82 X- X CFLAGS = -O X! SEPFLAG= -i X X ratfor: r0.o r1.o r2.o rio.o rlook.o rlex.o y.tab.o X! cc ${SEPFLAG} r*.o y.tab.o -o ratfor X X r0.o: r.h y.tab.h r0.c X r1.o: r.h y.tab.h r1.c X--- 1,10 ---- X+ # @(#)Makefile 1.2 (2.11BSD) 2025/11/27 X X CFLAGS = -O X! LDFLAGS= -i X X ratfor: r0.o r1.o r2.o rio.o rlook.o rlex.o y.tab.o X! cc ${LDFLAGS} r*.o y.tab.o -o ratfor X X r0.o: r.h y.tab.h r0.c X r1.o: r.h y.tab.h r1.c X*************** X*** 17,24 **** X yacc -d r.g X y.tab.h: r.g X yacc -d r.g X install: ratfor X! install -s ratfor $(DESTDIR)/usr/bin X clean: X rm -f y.tab.c *.o ratfor y.tab.h X X--- 16,24 ---- X yacc -d r.g X y.tab.h: r.g X yacc -d r.g X+ X install: ratfor X! install -c -s -m 755 ratfor /usr/bin X clean: X rm -f y.tab.c *.o ratfor y.tab.h X X*** ./usr/src/usr.bin/tbl/Makefile.old Mon Jan 18 11:37:14 1993 X--- ./usr/src/usr.bin/tbl/Makefile Tue Dec 9 09:42:31 2025 X*************** X*** 1,16 **** X! # Makefile 4.1 83/02/12 X X CFLAGS=-O X! SEPFLAGS= -i X o = t0.o t1.o t2.o t3.o t4.o t5.o t6.o t7.o t8.o t9.o\ X tb.o tc.o te.o tf.o tg.o ti.o tm.o ts.o tt.o tu.o tv.o X X tbl : $o X! $(CC) ${SEPFLAG} $o -o tbl X $o : t..c X X install: tbl X! install -s tbl $(DESTDIR)/usr/bin X X clean : X rm -f *.o X--- 1,17 ---- X! # Makefile 4.2 (2.11BSD) 2025/11/27 X X CFLAGS=-O X! LDFLAGS= -i X o = t0.o t1.o t2.o t3.o t4.o t5.o t6.o t7.o t8.o t9.o\ X tb.o tc.o te.o tf.o tg.o ti.o tm.o ts.o tt.o tu.o tv.o X X tbl : $o X! $(CC) ${LDFLAGS} $o -o tbl X! X $o : t..c X X install: tbl X! install -c -s -m 755 tbl /usr/bin X X clean : X rm -f *.o X*************** X*** 65,72 **** X--- 66,75 ---- X sh compr sample47 X sh compnr sample48 X sh compeq /usr/doc/mel/tables X+ X ichk: /usr/bin/tbl X /usr/bin/tbl sample1 >junk1 X cmp -s junk1 out1 X+ X comp: tbl X cmp -s tbl /usr/bin/tbl X*** ./usr/src/usr.bin/refer/Makefile.old Wed Oct 23 23:25:35 1996 X--- ./usr/src/usr.bin/refer/Makefile Tue Dec 9 09:40:10 2025 X*************** X*** 1,18 **** X! # @(#)Makefile 4.5.1 (2.11BSD) 1996/10/23 X # X- DESTDIR= X CFLAGS = -O X! SEPFLAG= -i X X all: mkey inv hunt refer addbib lookbib sortbib X X mkey: mkey1.o mkey2.o mkey3.o deliv2.o X! cc ${SEPFLAG} mkey?.o deliv2.o -o mkey X inv: inv1.o inv2.o inv3.o inv5.o inv6.o deliv2.o X! cc ${SEPFLAG} 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 ${SEPFLAG} hunt?.o refer3.o glue5.o glue4.o shell.o deliv2.o tick.o -o hunt X X glue3.o: refer..c X hunt2.o: refer..c X--- 1,17 ---- 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 hunt2.o: refer..c X*************** X*** 27,55 **** 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 ${SEPFLAG} glue?.o refer[01245678].o hunt[2356789].o mkey3.o \ X shell.o deliv2.o -o refer X X addbib: addbib.o X! cc ${SEPFLAG} addbib.o -o addbib X lookbib: lookbib.o X! cc ${SEPFLAG} lookbib.o -o lookbib X sortbib: sortbib.o X! cc ${SEPFLAG} sortbib.o -o sortbib X X install: all /usr/dict/papers X! -mkdir -p ${DESTDIR}/usr/libexec/refer X! chmod 755 ${DESTDIR}/usr/libexec/refer X! install -s -m 755 mkey $(DESTDIR)/usr/libexec/refer X! install -s -m 755 inv $(DESTDIR)/usr/libexec/refer X! install -s -m 755 hunt $(DESTDIR)/usr/libexec/refer X! install -s -m 755 refer $(DESTDIR)/usr/bin X! install -s -m 755 addbib $(DESTDIR)/usr/bin X! install -s -m 755 sortbib $(DESTDIR)/usr/bin X! install -c -m 755 roffbib.sh $(DESTDIR)/usr/bin/roffbib X! install -c -m 755 indxbib.sh $(DESTDIR)/usr/bin/indxbib X! install -s -m 755 lookbib $(DESTDIR)/usr/bin X! install -c -m 444 tmac.bib $(DESTDIR)/usr/share/tmac X (cd /usr/dict/papers; /bin/sh runinv) X X clean: X--- 26,54 ---- 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 addbib: addbib.o X! cc ${LDFLAGS} addbib.o -o addbib X lookbib: lookbib.o X! cc ${LDFLAGS} lookbib.o -o lookbib X sortbib: sortbib.o X! cc ${LDFLAGS} sortbib.o -o sortbib X X install: all /usr/dict/papers X! -mkdir -p /usr/libexec/refer X! chmod 755 /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! install -c -s -m 755 refer /usr/bin X! install -c -s -m 755 addbib /usr/bin X! install -c -s -m 755 sortbib /usr/bin X! install -c -m 755 roffbib.sh /usr/bin/roffbib X! install -c -m 755 indxbib.sh /usr/bin/indxbib X! install -c -s -m 755 lookbib /usr/bin X! install -c -m 444 tmac.bib /usr/share/tmac X (cd /usr/dict/papers; /bin/sh runinv) X X clean: X*************** X*** 56,64 **** 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 ${SEPFLAG} what?.o shell.o mkey3.o -o whatabout X deliv: deliv1.o deliv2.o X! cc ${SEPFLAG} 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 ${SEPFLAG} refer?.o deliv2.o glue4.o -o refpart X--- 55,63 ---- 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*** ./usr/src/usr.bin/refer/refer..c.old Sat Jan 1 04:17:34 1994 X--- ./usr/src/usr.bin/refer/refer..c Fri Dec 26 18:29:30 2025 X*************** X*** 1,4 **** X! /* refer..c 4.4 1/1/94 */ X X #include X #include X--- 1,6 ---- 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 #include X*************** X*** 45,48 **** X extern char *artskp(),*fpar(); X extern char *trimnl(); X X! extern char *getenv(), *sprintf(), *strcpy(), *strcat(); X--- 47,50 ---- X extern char *artskp(),*fpar(); X extern char *trimnl(); X X! extern char *getenv(), *strcpy(), *strcat(); X*** ./usr/src/usr.bin/refer/sortbib.c.old Mon Feb 16 18:21:01 1987 X--- ./usr/src/usr.bin/refer/sortbib.c Fri Dec 26 18:30:01 2025 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)sortbib.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 = "@(#)sortbib.c 4.2 (2.11BSD) 2025/12/26"; X #endif X X #include X*************** X*** 132,138 **** X FILE *fp[], *tfp; X { X char str[BUF], buff[BUF*8]; /* for tempfile & databases */ X! char cmd[80], *sprintf(); /* for using system sort command */ X long int offset; X int i, length; X X--- 132,138 ---- X FILE *fp[], *tfp; X { X char str[BUF], buff[BUF*8]; /* for tempfile & databases */ X! char cmd[80]; /* for using system sort command */ X long int offset; X int i, length; X X*** ./usr/src/usr.bin/refer/hunt2.c.old Mon Feb 16 18:20:57 1987 X--- ./usr/src/usr.bin/refer/hunt2.c Fri Dec 26 18:27:50 2025 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)hunt2.c 4.3 (Berkeley) 7/29/85"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)hunt2.c 4.4 (2.11BSD) 2025/12/26"; X #endif X X #include "refer..c" X*************** X*** 25,31 **** X long lp; X extern int lmaster, colevel, reached; X long getl(); X- unsigned getw(); X extern int iflong; X X # if D1 X--- 25,30 ---- X*** ./usr/src/usr.bin/refer/lookbib.c.old Wed Oct 23 23:28:30 1996 X--- ./usr/src/usr.bin/refer/lookbib.c Fri Dec 26 18:28:38 2025 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)lookbib.c 4.4.2 (2.11BSD GTE) 1996/10/23"; X #endif X X #include X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)lookbib.c 4.4.3 (2.11BSD) 2025/12/26"; X #endif X X #include X*************** X*** 10,16 **** X char **argv; X { X FILE *fp, *hfp; X! char s[BUFSIZ], hunt[64], *sprintf(); X int instructions = 1; X X if (strcmp(argv[1],"-n") == 0) X--- 10,16 ---- X char **argv; X { X FILE *fp, *hfp; X! char s[BUFSIZ], hunt[64]; X int instructions = 1; X X if (strcmp(argv[1],"-n") == 0) X*** ./usr/src/usr.bin/yacc/Makefile.old Sat Aug 30 09:06:36 2025 X--- ./usr/src/usr.bin/yacc/Makefile Tue Nov 25 22:09:49 2025 X*************** X*** 1,8 **** X # X! # @(#)Makefile 4.4 (2.11BSD) 2025/8/30 X # X! DESTDIR= X! SEPFLAG= -i X CFLAGS=-O X XSTR=xstr X X--- 1,7 ---- X # X! # @(#)Makefile 4.5 (2.11BSD) 2025/11/25 X # X! LDFLAGS= -i X CFLAGS=-O X XSTR=xstr X X*************** X*** 14,20 **** X all: yacc X X yacc: y1.o y2.o y3.o y4.o strings.o X! $(CC) ${SEPFLAG} -o yacc y?.o strings.o X X y1.o y2.o y3.o y4.o: dextern files X X--- 13,19 ---- X all: yacc X X yacc: y1.o y2.o y3.o y4.o strings.o X! $(CC) ${LDFLAGS} -o yacc y?.o strings.o X X y1.o y2.o y3.o y4.o: dextern files X X*************** X*** 24,30 **** X mv xs.o strings.o X X install: yacc yaccpar X! install -s -m 755 yacc $(DESTDIR)/usr/bin X! install -c yaccpar $(DESTDIR)/usr/share/misc X clean : X -rm -f *.o yacc x.c xs.c strings X--- 23,29 ---- X mv xs.o strings.o X X install: yacc yaccpar X! install -c -s -m 755 -o root yacc /usr/bin X! install -c yaccpar /usr/share/misc X clean : X -rm -f *.o yacc x.c xs.c strings X*** ./usr/src/usr.bin/eqn/Makefile.old Mon Feb 16 18:57:00 1987 X--- ./usr/src/usr.bin/eqn/Makefile Thu Nov 27 06:16:36 2025 X*************** X*** 1,19 **** X! # Makefile 4.1 83/02/11 X X CFLAGS=-O X YFLAGS=-d X! SEPFLAG= -i X X SOURCE = e.y e.h diacrit.c eqnbox.c font.c fromto.c funny.c glob.c integral.c \ X io.c lex.c lookup.c mark.c matrix.c move.c over.c paren.c \ X pile.c shift.c size.c sqrt.c text.c X X! FILES = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \ X io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o \ X pile.o shift.o size.o sqrt.o text.o X X! eqn: $(FILES) X! cc $(CFLAGS) ${SEPFLAG} $(FILES) -o eqn X X e.c: e.def X X--- 1,19 ---- X! # Makefile 4.2 (2.11BSD) 2025/11/27 X X CFLAGS=-O X YFLAGS=-d X! LDFLAGS= -i X X SOURCE = e.y e.h diacrit.c eqnbox.c font.c fromto.c funny.c glob.c integral.c \ X io.c lex.c lookup.c mark.c matrix.c move.c over.c paren.c \ X pile.c shift.c size.c sqrt.c text.c X X! OBJS = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \ X io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o \ X pile.o shift.o size.o sqrt.o text.o X X! eqn: $(OBJS) X! cc ${LDFLAGS} $(OBJS) -o eqn X X e.c: e.def X X*************** X*** 22,37 **** X mv y.tab.c e.c X mv y.tab.h e.def X X! $(FILES): e.h e.def X X install: eqn X! install -s eqn $(DESTDIR)/usr/bin X X clean: X rm -f *.o e.c e.def eqn X X- list: X- pr TODO $(SOURCE) makefile X- X lint: y.tab.c X lint -spb *.c X--- 22,34 ---- X mv y.tab.c e.c X mv y.tab.h e.def X X! $(OBJS): e.h e.def X X install: eqn X! install -c -s -m 755 -o root eqn /usr/bin X X clean: X rm -f *.o e.c e.def eqn X X lint: y.tab.c X lint -spb *.c X*** ./usr/src/usr.bin/roff/troff/Makefile.old Sun Dec 1 16:50:11 1996 X--- ./usr/src/usr.bin/roff/troff/Makefile Tue Dec 9 09:40:49 2025 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.1.1 (2.11BSD) 1996/12/1 X # X X # Defined SHARED_DATA to be whatever will make your compiler make initialized X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 2025/11/25 X # X X # Defined SHARED_DATA to be whatever will make your compiler make initialized X*************** X*** 17,23 **** X # table sizes X # X CFLAGS= -O -I${COMMON} X! SEPFLAG=-i X X COMMON= ../common_source X VPATH= ${COMMON} X--- 17,23 ---- X # table sizes X # X CFLAGS= -O -I${COMMON} X! LDFLAGS=-i X X COMMON= ../common_source X VPATH= ${COMMON} X*************** X*** 29,35 **** X all: troff X X troff: ${OBJS} ${LIBC} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X hytab.o: ${COMMON}/hytab.c ${COMMON}/textscript X ${CC} ${SHARED_DATA} -c ${COMMON}/hytab.c X--- 29,35 ---- X all: troff X X troff: ${OBJS} ${LIBC} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X hytab.o: ${COMMON}/hytab.c ${COMMON}/textscript X ${CC} ${SHARED_DATA} -c ${COMMON}/hytab.c X*************** X*** 44,50 **** X mkdep ${CFLAGS} ${SRCS} X X install: troff X! install -s -o bin -g bin -m 751 troff ${DESTDIR}/usr/bin/troff X X lint: ${SRCS} FRC X lint ${CFLAGS} ${SRCS} X--- 44,50 ---- X mkdep ${CFLAGS} ${SRCS} X X install: troff X! install -c -s -o root -g staff -m 755 troff /usr/bin/troff X X lint: ${SRCS} FRC X lint ${CFLAGS} ${SRCS} X*** ./usr/src/usr.bin/roff/nroff/Makefile.old Sun Dec 1 16:49:31 1996 X--- ./usr/src/usr.bin/roff/nroff/Makefile Tue Dec 9 09:40:25 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.4.1 (2.11BSD) 1996/12/1 X # X X # Defined SHARED_DATA to be whatever will make your compiler make initialized X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.4.2 (2.11BSD) 2025/11/25 X # X X # Defined SHARED_DATA to be whatever will make your compiler make initialized X*************** X*** 17,23 **** X # table sizes X # X CFLAGS= -O -DNROFF -I${COMMON} X! SEPFLAG=-i X X COMMON= ../common_source X VPATH= ${COMMON} X--- 17,23 ---- X # table sizes X # X CFLAGS= -O -DNROFF -I${COMMON} X! LDFLAGS=-i X X COMMON= ../common_source X VPATH= ${COMMON} X*************** X*** 29,35 **** X all: nroff X X nroff: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X hytab.o: ${COMMON}/hytab.c ${COMMON}/textscript X ${CC} ${SHARED_DATA} -c ${COMMON}/hytab.c X--- 29,35 ---- X all: nroff X X nroff: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X hytab.o: ${COMMON}/hytab.c ${COMMON}/textscript X ${CC} ${SHARED_DATA} -c ${COMMON}/hytab.c X*************** X*** 47,53 **** X mkdep ${CFLAGS} ${SRCS} X X install: nroff X! install -s -o bin -g bin -m 751 nroff ${DESTDIR}/usr/bin/nroff X X lint: ${SRCS} FRC X lint ${CFLAGS} ${SRCS} X--- 47,53 ---- X mkdep ${CFLAGS} ${SRCS} X X install: nroff X! install -c -s -o root -g staff -m 755 nroff /usr/bin/nroff X X lint: ${SRCS} FRC X lint ${CFLAGS} ${SRCS} X*** ./usr/src/usr.bin/roff/nroff_term/Makefile.old Tue Mar 24 15:23:52 2020 X--- ./usr/src/usr.bin/roff/nroff_term/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.8 (2.11BSD) 2020/3/24 X # X # Possible options: X # make compile source for all terminal tables below X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.9 (2.11BSD) 2025/11/25 X # X # Possible options: X # make compile source for all terminal tables below X*************** X*** 11,17 **** X # make install move tables to ${DEST} X # make clean remove tab*.o files lying around X CFLAGS= -I../common_source X! DEST= ${DESTDIR}/usr/share/term X SRCS= tab300-12.c tab300.c tab302-12.c tab302.c tab37.c tab382-12.c \ X tab382.c tab450-12.c tab450.c tab833-12.c tab833.c tabepson.c \ X tabitoh.c tabitoh12.c tablpr.c tabnec-t.c tabnec.c tabnec12.c \ X--- 11,17 ---- X # make install move tables to ${DEST} X # make clean remove tab*.o files lying around X CFLAGS= -I../common_source X! DEST= /usr/share/term X SRCS= tab300-12.c tab300.c tab302-12.c tab302.c tab37.c tab382-12.c \ X tab382.c tab450-12.c tab450.c tab833-12.c tab833.c tabepson.c \ X tabitoh.c tabitoh12.c tablpr.c tabnec-t.c tabnec.c tabnec12.c \ X*************** X*** 73,79 **** X -mkdir -p ${DEST} X chmod 755 ${DEST} X for file in tab*.tab; do \ X! install -c -o bin -g bin -m 755 $$file ${DEST}/`basename $$file`; \ X done X rm -f ${DEST}/tabtn300.tab; ln ${DEST}/tablpr.tab ${DEST}/tabtn300.tab X rm -f ${DEST}/tabcrt.tab; ln ${DEST}/tablpr.tab ${DEST}/tabcrt.tab X--- 73,79 ---- X -mkdir -p ${DEST} X chmod 755 ${DEST} X for file in tab*.tab; do \ X! install -c -o root -g staff -m 755 $$file ${DEST}/`basename $$file`; \ X done X rm -f ${DEST}/tabtn300.tab; ln ${DEST}/tablpr.tab ${DEST}/tabtn300.tab X rm -f ${DEST}/tabcrt.tab; ln ${DEST}/tablpr.tab ${DEST}/tabcrt.tab X*************** X*** 83,89 **** X rm -f ${DEST}/tabdtc12.tab; ln ${DEST}/tab302-12.tab ${DEST}/tabdtc12.tab X rm -f ${DEST}/tabipsi.tab; ln ${DEST}/tab450.tab ${DEST}/tabipsi.tab X rm -f ${DEST}/tabipsi12.tab; ln ${DEST}/tab450-12.tab ${DEST}/tabipsi12.tab X! install -c -o bin -g bin -m 644 README ${DEST}/README X X lint: FRC X lint ${CFLAGS} ${SRCS} X--- 83,89 ---- X rm -f ${DEST}/tabdtc12.tab; ln ${DEST}/tab302-12.tab ${DEST}/tabdtc12.tab X rm -f ${DEST}/tabipsi.tab; ln ${DEST}/tab450.tab ${DEST}/tabipsi.tab X rm -f ${DEST}/tabipsi12.tab; ln ${DEST}/tab450-12.tab ${DEST}/tabipsi12.tab X! install -c -o root -g staff -m 644 README ${DEST}/README X X lint: FRC X lint ${CFLAGS} ${SRCS} X*** ./usr/src/usr.bin/roff/Makefile.old Fri Jan 6 01:43:44 1989 X--- ./usr/src/usr.bin/roff/Makefile Tue Nov 25 21:35:17 2025 X*************** X*** 9,25 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.1 (Berkeley) 12/12/87 X # X SUBDIR= nroff troff nroff_term troff_font X- SEPFLAG=-i X X all: FRC X! for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} SEPFLAG=${SEPFLAG}); done X X install: FRC X for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \ X done X X clean: FRC X--- 9,24 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/25 X # X SUBDIR= nroff troff nroff_term troff_font X X all: FRC X! for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS}); done X X install: FRC X for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); \ X done X X clean: FRC X*** ./usr/src/usr.bin/graph/Makefile.old Mon Feb 16 19:10:49 1987 X--- ./usr/src/usr.bin/graph/Makefile Tue Dec 9 09:37:30 2025 X*************** X*** 1,14 **** X! # Makefile 4.1 83/03/30 X # X CFLAGS=-O X! DESTDIR= X! SEPFLAG= -i X X graph: graph.c X! ${CC} ${SEPFLAG} $(CFLAGS) -o graph graph.c -lplot -lm X X install: graph X! install -s graph ${DESTDIR}/usr/bin/graph X X clean: X rm -f *.o graph X--- 1,13 ---- X! # Makefile 4.2 (2.11BSD) 2025/11/25 X # X CFLAGS=-O X! LDFLAGS= -i X X graph: graph.c X! ${CC} ${LDFLAGS} $(CFLAGS) -o graph graph.c -lplot -lm X X install: graph X! install -c -s -m 755 graph /usr/bin/graph X X clean: X rm -f *.o graph X*** ./usr/src/usr.bin/learn/Makefile.old Thu Oct 24 21:29:02 1996 X--- ./usr/src/usr.bin/learn/Makefile Tue Dec 9 09:37:52 2025 X*************** X*** 3,14 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.6.2 (2.11BSD) 1996/10/23 X # X # Flag BSD4_2 means 4.2 or later. X CFLAGS= -O -DBSD4_2 -DLOGDIR=\"/var/log/learn\" X! SEPFLAG=-i X! LLIB= ${DESTDIR}/usr/share/learn/bin X SRCS= copy.c dounit.c getlesson.c learn.c list.c mem.c makpipe.c maktee.c \ X mysys.c selsub.c selunit.c start.c whatnow.c wrapup.c X OBJS= copy.o dounit.o getlesson.o learn.o list.o mem.o makpipe.o maktee.o \ X--- 3,14 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 4.6.3 (2.11BSD) 2025/11/27 X # X # Flag BSD4_2 means 4.2 or later. X CFLAGS= -O -DBSD4_2 -DLOGDIR=\"/var/log/learn\" X! LDFLAGS=-i X! LLIB= /usr/share/learn/bin X SRCS= copy.c dounit.c getlesson.c learn.c list.c mem.c makpipe.c maktee.c \ X mysys.c selsub.c selunit.c start.c whatnow.c wrapup.c X OBJS= copy.o dounit.o getlesson.o learn.o list.o mem.o makpipe.o maktee.o \ X*************** X*** 17,29 **** X all: learn lrntee lcount X X learn: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS} X X lcount: lcount.o X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ lcount.o X X lrntee: lrntee.o X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ lrntee.o X X clean: FRC X rm -f *.o core learn lrntee lcount X--- 17,29 ---- X all: learn lrntee lcount X X learn: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X lcount: lcount.o X! ${CC} ${LDFLAGS} -o $@ lcount.o X X lrntee: lrntee.o X! ${CC} ${LDFLAGS} -o $@ lrntee.o X X clean: FRC X rm -f *.o core learn lrntee lcount X*************** X*** 33,44 **** X mkdep ${CFLAGS} ${SRCS} lcount.c lrntee.c X X install: all X! -mkdir ${DESTDIR}/${LLIB} X! chmod 755 ${DESTDIR}/${LLIB} X! install -c -s -m 755 learn ${DESTDIR}/usr/bin/learn X! install -s -m 755 learn ${LLIB}/learn X! install -s -m 755 lrntee ${LLIB}/lrntee X! install -s -m 755 lcount ${LLIB}/lcount X X lint: FRC X lint ${CFLAGS} ${SRCS} X--- 33,44 ---- X mkdep ${CFLAGS} ${SRCS} lcount.c lrntee.c X X install: all X! -mkdir /${LLIB} X! chmod 755 /${LLIB} X! install -c -s -m 755 learn /usr/bin/learn X! install -c -s -m 755 learn ${LLIB}/learn X! install -c -s -m 755 lrntee ${LLIB}/lrntee X! install -c -s -m 755 lcount ${LLIB}/lcount X X lint: FRC X lint ${CFLAGS} ${SRCS} X*** ./usr/src/usr.bin/uucp/Makefile.old Mon Nov 18 00:44:42 1996 X--- ./usr/src/usr.bin/uucp/Makefile Tue Dec 23 09:32:16 2025 X*************** X*** 1,4 **** X! # Makefile 5.11.3 (2.11BSD GTE) 1996/11/17 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.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*************** X*** 29,48 **** X LIBOBJS= gethnamadr.o getsent.o getsbyname.o res_init.o res_send.o \ X res_query.o res_mkquery.o res_comp.o X X- DESTDIR= X- X OWNER= uucp X GROUP= daemon X CFLAGS= -O X! LDFLAGS= X! SEPFLAG= -i X LINTFLAGS= -chba X LIBS= X! SBINDIR= ${DESTDIR}/usr/sbin X! LIBEXECDIR= ${DESTDIR}/usr/libexec X! BIN= ${DESTDIR}/usr/bin X! PUBDIR= ${DESTDIR}/usr/spool/uucppublic X! SPOOL= ${DESTDIR}/usr/spool/uucp X XQTDIR= ${SPOOL}/XTMP X CORRUPT= ${SPOOL}/CORRUPT X AUDIT= ${SPOOL}/AUDIT X--- 29,45 ---- X LIBOBJS= gethnamadr.o getsent.o getsbyname.o res_init.o res_send.o \ X res_query.o res_mkquery.o res_comp.o X X OWNER= uucp X GROUP= daemon X CFLAGS= -O X! LDFLAGS=-i X LINTFLAGS= -chba X LIBS= X! SBINDIR= /usr/sbin X! LIBEXECDIR= /usr/libexec X! BIN= /usr/bin X! PUBDIR= /usr/spool/uucppublic X! SPOOL= /usr/spool/uucp X XQTDIR= ${SPOOL}/XTMP X CORRUPT= ${SPOOL}/CORRUPT X AUDIT= ${SPOOL}/AUDIT X*************** X*** 67,128 **** X touch print X X uucp: uucp.o uulib.a X! ${CC} -o uucp ${SEPFLAG} ${LDFLAGS} uucp.o uulib.a ${LIBS} X X uux: uux.o uulib.a X! ${CC} -o uux ${SEPFLAG} ${LDFLAGS} uux.o uulib.a ${LIBS} X X uuxqt: uuxqt.o uulib.a X! ${CC} -o uuxqt ${SEPFLAG} ${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 ${SEPFLAG} ${LDFLAGS} cico.o cntrl.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 \ X! -Z ${LIBOBJS} \ X! -Z conn.o \ X -Y ${LIBS} ; \ X else \ X! ${CC} -o uucico ${SEPFLAG} ${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 ${SEPFLAG} ${LDFLAGS} uulog.o uulib.a ${LIBS} X X uuclean: uuclean.o uulib.a X! ${CC} -o uuclean ${SEPFLAG} ${LDFLAGS} uuclean.o uulib.a ${LIBS} X X uuname: uuname.o uulib.a X! ${CC} -o uuname ${SEPFLAG} ${LDFLAGS} uuname.o uulib.a ${LIBS} X X uupoll: uupoll.o uulib.a X! ${CC} -o uupoll ${SEPFLAG} ${LDFLAGS} uupoll.o uulib.a ${LIBS} X X uusnap: uusnap.o X! ${CC} -o uusnap ${SEPFLAG} ${LDFLAGS} uusnap.o ${LIBS} X X uuencode: uuencode.o X! ${CC} -o uuencode ${SEPFLAG} ${LDFLAGS} uuencode.o ${LIBS} X X uudecode: uudecode.o X! ${CC} -o uudecode ${SEPFLAG} ${LDFLAGS} uudecode.o ${LIBS} X X uusend: uusend.o X! ${CC} -o uusend ${SEPFLAG} ${LDFLAGS} uusend.o uulib.a ${LIBS} X X uucpd: uucpd.o uucp.h X! ${CC} -o uucpd ${SEPFLAG} ${LDFLAGS} uucpd.o ${LIBS} X X uuq: uuq.o uulib.a X! ${CC} -o uuq ${SEPFLAG} ${LDFLAGS} uuq.o uulib.a ${LIBS} X X acucntrl: acucntrl.o X! ${CC} -o acucntrl ${SEPFLAG} ${LDFLAGS} acucntrl.o ${LIBS} X X mkdirs: X -for i in ${SPOOL} ${PUBDIR} ${XQTDIR} ${CORRUPT} \ X--- 64,125 ---- 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 X uuencode: uuencode.o X! ${CC} -o uuencode ${LDFLAGS} uuencode.o ${LIBS} X X uudecode: uudecode.o X! ${CC} -o uudecode ${LDFLAGS} uudecode.o ${LIBS} X X uusend: uusend.o X! ${CC} -o uusend ${LDFLAGS} uusend.o uulib.a ${LIBS} X X uucpd: uucpd.o uucp.h X! ${CC} -o uucpd ${LDFLAGS} uucpd.o ${LIBS} X X uuq: uuq.o uulib.a X! ${CC} -o uuq ${LDFLAGS} uuq.o uulib.a ${LIBS} X X acucntrl: acucntrl.o X! ${CC} -o acucntrl ${LDFLAGS} acucntrl.o ${LIBS} X X mkdirs: X -for i in ${SPOOL} ${PUBDIR} ${XQTDIR} ${CORRUPT} \ X*************** X*** 150,165 **** X X install: mkdirs ${ALL} X for i in uucico uuclean; do \ X! install -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${SBINDIR} ;\ X done X for i in uucp uux uulog uuname uusnap uupoll uuq uusend; do \ X! install -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${BIN} ;\ X done X rm -f ${BIN}/ruusend X ln ${BIN}/uusend ${BIN}/ruusend X! install -s -m 6110 -o ${OWNER} -g ${GROUP} uuxqt ${LIBEXECDIR} X! install -s -m 6110 -o root -g ${GROUP} acucntrl ${LIBEXECDIR} X! install -s -m 500 -o uucp uucpd ${LIBEXECDIR} X @echo Dont forget to fork off /usr/libexec/uucpd in /etc/rc.local X @echo if you are not running 'inetd' X install -s uuencode ${BIN} X--- 147,162 ---- X X install: mkdirs ${ALL} X for i in uucico uuclean; do \ X! install -c -s -m 6555 -o ${OWNER} -g ${GROUP} $$i ${SBINDIR} ;\ X done X for i in uucp uux uulog uuname uusnap uupoll uuq uusend; do \ X! install -c -s -m 6555 -o ${OWNER} -g ${GROUP} $$i ${BIN} ;\ X done X rm -f ${BIN}/ruusend X ln ${BIN}/uusend ${BIN}/ruusend 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 @echo Dont forget to fork off /usr/libexec/uucpd in /etc/rc.local X @echo if you are not running 'inetd' X install -s uuencode ${BIN} X*** ./usr/src/usr.bin/dc/Makefile.old Mon Feb 16 18:46:02 1987 X--- ./usr/src/usr.bin/dc/Makefile Tue Nov 25 19:43:32 2025 X*************** X*** 1,18 **** X # X! # @(#)Makefile 1.4 (Berkeley) 83/06/30 X # X- DESTDIR= X SRCS= dc.c dc.h X CFLAGS= -O X! SEPFLAG= -i X X all: dc X X dc: dc.c dc.h X! ${CC} ${CFLAGS} ${SEPFLAG} dc.c -o dc X X install: dc X! install -s dc ${DESTDIR}/usr/bin/dc X X clean: X rm -f *.o dc a.out errs core X--- 1,17 ---- X # X! # @(#)Makefile 1.5 (2.11BSD) 2025/11/25 X # X SRCS= dc.c dc.h X CFLAGS= -O X! LDFLAGS= -i X X all: dc X X dc: dc.c dc.h X! ${CC} ${CFLAGS} ${LDFLAGS} dc.c -o dc X X install: dc X! install -c -s -m 755 -o root dc /usr/bin/dc X X clean: X rm -f *.o dc a.out errs core X*** ./usr/src/usr.bin/lex/Makefile.old Wed Oct 23 22:54:42 1996 X--- ./usr/src/usr.bin/lex/Makefile Tue Dec 9 09:37:58 2025 X*************** X*** 1,15 **** X! # Makefile 4.1.1 (2.11BSD) 1996/10/23 X # X CFLAGS = -O X! SEPFLAG= -i X X all: lex X X lex: lmain.o y.tab.o sub1.o sub2.o header.o X! cc ${SEPFLAG} lmain.o y.tab.o sub1.o sub2.o header.o -o lex X X smallex: X! cc ${SEPFLAG} lmain.o y.tab.o sub1.o sub2.o header.o -o lex X X y.tab.c: parser.y X yacc parser.y X--- 1,15 ---- X! # Makefile 4.1.2 (2.11BSD) 2025/11/27 X # X CFLAGS = -O X! LDFLAGS= -i X X all: lex X X lex: lmain.o y.tab.o sub1.o sub2.o header.o X! cc ${LDFLAGS} lmain.o y.tab.o sub1.o sub2.o header.o -o lex X X smallex: X! cc ${LDFLAGS} lmain.o y.tab.o sub1.o sub2.o header.o -o lex X X y.tab.c: parser.y X yacc parser.y X*************** X*** 23,33 **** X cc -c -O header.c X X install: all X! -mkdir -p ${DESTDIR}/usr/libdata/lex X! chmod 755 ${DESTDIR}/usr/libdata/lex X! install -s -m 755 lex $(DESTDIR)/usr/bin X! install -c -m 444 ncform $(DESTDIR)/usr/libdata/lex X! install -c -m 444 nrform $(DESTDIR)/usr/libdata/lex X X clean: X rm -f *.o lex y.tab.c X--- 23,33 ---- X cc -c -O header.c X X install: all X! -mkdir -p /usr/libdata/lex X! chmod 755 /usr/libdata/lex X! install -c -s -m 755 lex /usr/bin X! install -c -m 444 ncform /usr/libdata/lex X! install -c -m 444 nrform /usr/libdata/lex X X clean: X rm -f *.o lex y.tab.c X*** ./usr/src/usr.bin/lex/sub1.c.old Sun Sep 25 21:47:26 2022 X--- ./usr/src/usr.bin/lex/sub1.c Sat Dec 27 09:55:42 2025 X*************** X*** 36,41 **** X--- 36,42 ---- X return(c>='0' && c <= '9'); X } X error(s,p,d) X+ char *s, *p, *d; X { X fprintf(errorf,"\"%s\", line %d: (Error) ", X fptr > 0 ? sargv[fptr] : "", yyline); X*************** X*** 56,61 **** X--- 57,63 ---- X } X X warning(s,p,d) X+ char *s, *p, *d; X { X fprintf(errorf,"\"%s\", line %d: (Warning) ", X fptr > 0 ? sargv[fptr] : "", yyline); X*** ./usr/src/usr.bin/neqn/Makefile.old Mon Feb 16 19:34:11 1987 X--- ./usr/src/usr.bin/neqn/Makefile Tue Dec 9 09:38:28 2025 X*************** X*** 1,19 **** X! # Makefile 4.1 83/02/12 X X CFLAGS=-O -DNEQN -I../eqn/ X YFLAGS=-d X! SEPFLAG= -i X X SOURCE = e.y e.h diacrit.c eqnbox.c font.c fromto.c funny.c glob.c integral.c \ X io.c lex.c lookup.c mark.c matrix.c move.c over.c paren.c \ X pile.c shift.c size.c sqrt.c text.c X X! FILES = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \ X io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o \ X pile.o shift.o size.o sqrt.o text.o X X! neqn: $(FILES) X! cc ${SEPFLAG} $(CFLAGS) $(FILES) -o neqn X X e.c: e.def X X--- 1,19 ---- X! # Makefile 4.2 (2.11BSD) 2025/11/27 X X CFLAGS=-O -DNEQN -I../eqn/ X YFLAGS=-d X! LDFLAGS= -i X X SOURCE = e.y e.h diacrit.c eqnbox.c font.c fromto.c funny.c glob.c integral.c \ X io.c lex.c lookup.c mark.c matrix.c move.c over.c paren.c \ X pile.c shift.c size.c sqrt.c text.c X X! OBJS = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \ X io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o \ X pile.o shift.o size.o sqrt.o text.o X X! neqn: $(OBJS) X! cc ${LDFLAGS} $(OBJS) -o neqn X X e.c: e.def X X*************** X*** 22,30 **** X mv y.tab.c e.c X mv y.tab.h e.def X X! $(FILES): ../eqn/e.h e.def X install: neqn X! install -s neqn $(DESTDIR)/usr/bin X X clean: X rm -f *.o e.c e.def X--- 22,31 ---- X mv y.tab.c e.c X mv y.tab.h e.def X X! $(OBJS): ../eqn/e.h e.def X! X install: neqn X! install -c -s -m 755 neqn /usr/bin X X clean: X rm -f *.o e.c e.def X*** ./usr/src/usr.bin/tip/aculib/Makefile.old Sun Dec 1 16:51:17 1996 X--- ./usr/src/usr.bin/tip/aculib/Makefile Fri Dec 26 18:33:25 2025 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.3.2 (2.11BSD GTE) 1996/12/1 X # X # make file for tip device drivers 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.3.3 (2.11BSD) 2025/12/26 X # X # make file for tip device drivers X # X*** ./usr/src/usr.bin/tip/Makefile.old Sun Dec 1 16:51:01 1996 X--- ./usr/src/usr.bin/tip/Makefile Tue Dec 9 09:43:04 2025 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.1 (2.11BSD) 1996/12/1 X # X # make file for intermachine communications package 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/27 X # X # make file for intermachine communications package X # X*************** X*** 36,47 **** X # writes on local side X # BUFSIZ buffer sizing from stdio, must be fed X # explicitly to remcap.c if not 1024 X! ADM= usr/adm X OWNER= uucp X GROUP= daemon X CONFIG= -DHAYES X CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE X! SEPFLAG=-i X SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \ X remote.c tip.c tipout.c uucplock.c value.c vars.c X OBJS= acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o partab.o remcap.o \ X--- 36,47 ---- X # writes on local side X # BUFSIZ buffer sizing from stdio, must be fed X # explicitly to remcap.c if not 1024 X! ADM= /usr/adm X OWNER= uucp X GROUP= daemon X CONFIG= -DHAYES X CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE X! LDFLAGS=-i X SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \ X remote.c tip.c tipout.c uucplock.c value.c vars.c X OBJS= acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o partab.o remcap.o \ X*************** X*** 50,56 **** X all: aculib tip X X tip: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${OBJS} aculib/aculib.a X X remcap.o: remcap.c X ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c X--- 50,56 ---- X all: aculib tip X X tip: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} aculib/aculib.a X X remcap.o: remcap.c X ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c X*************** X*** 77,88 **** X X install: aculib tip X cd aculib; make ${MFLAGS} install X! install -s -o ${OWNER} -g ${GROUP} -m 4711 tip ${DESTDIR}/usr/bin/tip X! rm -f ${DESTDIR}/usr/bin/cu X! ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu X! touch ${DESTDIR}/${ADM}/aculog X! chown ${OWNER}.${GROUP} ${DESTDIR}/${ADM}/aculog X! chmod 600 ${DESTDIR}/${ADM}/aculog X @echo "create /etc/remote and /etc/phones" X X lint: FRC X--- 77,88 ---- X X install: aculib tip X cd aculib; make ${MFLAGS} install X! install -c -s -o ${OWNER} -g ${GROUP} -m 4755 tip /usr/bin/tip X! rm -f /usr/bin/cu X! ln /usr/bin/tip /usr/bin/cu 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*** ./usr/src/usr.bin/f77/Makefile.old Sat Feb 8 01:04:15 2020 X--- ./usr/src/usr.bin/f77/Makefile Sat Nov 29 06:42:54 2025 X*************** X*** 1,10 **** X! # Makefile for the Fortran 77 compiler X! # generating code for the PDP11, X! # using the Ritchie pass 2 X! # X # 1996/10/25 - 2.11BSD 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 X AS= as -V X C2= /lib/c2 X--- 1,11 ---- 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 # 1996/10/25 - 2.11BSD 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*************** X*** 11,19 **** X LD= ld X STRINGS= f77_strings X CFL= -DTARGET=PDP11 -DFAMILY=DMR -DHERE=PDP11 -DOUTPUT=BINARY \ X! -DPOLISH=POSTFIX -DOVERLAID -DC_OVERLAY X CFLAGS= -O -w ${CFL} X! SEPFLAG= -i X X SRCS= data.c driver.c equiv.c error.c exec.c expr.c gram.c init.c \ X intr.c io.c lex.c main.c misc.c pdp11.c pdp11x.c \ X--- 12,20 ---- 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 intr.c io.c lex.c main.c misc.c pdp11.c pdp11x.c \ X*************** X*** 25,65 **** X X all: f77 f77pass1 X X! f77: driver.c pdp11x.c X! ${CC} ${SEPFLAG} ${CFLAGS} driver.c pdp11x.c -o f77 X @size f77 X X f77pass1: ${PASS1OBJECTS} X! -if [ X${SEPFLAG} = X-i ]; then \ X! ${LD} /lib/crt0.o ${SEPFLAG} -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! else \ X! ${LD} /lib/crt0.o ${SEPFLAG} -o f77pass1 \ X! -Z main.o init.o equiv.o data.o io.o \ X! -Z gram.o \ X! -Z lex.o proc.o \ X! -Z expr.o \ X! -Z exec.o intr.o \ X! -Z putdmr.o pdp11.o pdp11x.o \ X! -Y misc.o error.o put.o -lc; \ X! fi X @size f77pass1 X X- # If non-separate I&D load, take certain data tables out of data space and X- # put them in text space (warning-- this doesn't work except with X- # special cases) 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- # Eliminate yacc data structures X- -if [ X${SEPFLAG} = X-n ]; then ed - gram.s < :gram.fix; \ X- else :; fi X rm xxgram.c X ${AS} -u -o gram.o gram.s X rm gram.s X--- 26,48 ---- 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*** 75,83 **** X # Remove error strings X mkstr - f77_strings xx $*.c X ${CC} -S ${CFLAGS} xx$*.c X- # Move switch code to text space X- -if [ X${SEPFLAG} = X-n ]; \ X- then ed - xx$*.s < :rofix; else :; fi X ${C2} xx$*.s | ${AS} -u -o $*.o X rm xx$*.c xx$*.s X X--- 58,63 ---- X*************** X*** 95,103 **** X cp pdp11defs locdefs X X install: all X! install -s f77 ${DESTDIR}/usr/bin X! install -s f77pass1 ${DESTDIR}/usr/libexec X! install -c -m 644 ${STRINGS} ${DESTDIR}/usr/share/misc X X clean: X -rm -f f77 f77pass1 *.o gram.c x.c xs.c f77_strings strings X--- 75,83 ---- 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*** ./usr/src/usr.bin/m4/Makefile.old Tue Apr 12 23:09:18 1994 X--- ./usr/src/usr.bin/m4/Makefile Tue Dec 9 09:38:03 2025 X*************** X*** 1,9 **** X! # @(#)Makefile 1.0 (2.11BSD GTE) 4/5/94 X X DEFS= -DEXTENDED -I. X CFLAGS= -O ${DEFS} X! DESTDIR= X! SEPFLAG= -i 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--- 1,8 ---- X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X X DEFS= -DEXTENDED -I. X CFLAGS= -O ${DEFS} X! LDFLAGS= -i 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*************** X*** 10,19 **** X all: m4 tags X X m4: ${OBJS} X! cc ${SEPFLAG} -o m4 ${OBJS} X X install: all X! install -s -m 755 m4 ${DESTDIR}/usr/bin/m4 X X lint: X lint -hax ${DEFS} ${SRCS} X--- 9,18 ---- X all: m4 tags X X m4: ${OBJS} X! cc ${LDFLAGS} -o m4 ${OBJS} X X install: all X! install -c -s -m 755 m4 /usr/bin/m4 X X lint: X lint -hax ${DEFS} ${SRCS} X*** ./usr/src/usr.bin/prof/Makefile.old Mon Jan 18 11:36:50 1993 X--- ./usr/src/usr.bin/prof/Makefile Fri Dec 26 18:27:00 2025 X*************** X*** 1,17 **** X! # @(#)Makefile 4.1 (Berkeley) 6/2/83 X! # X! # If you don't want to plot, take out the -Dplot and the ref. to plot.a X! PLOT = -lplot -Dplot X! CFLAGS=-O X! SEPFLAG=-i X prof: prof.o X! $(CC) $(SEPFLAG) -o prof prof.o $(PLOT) X X prof.o: prof.c X! cc -c $(CFLAGS) $(PLOT) prof.c X X install: prof X! install -s prof $(DESTDIR)/usr/bin X X clean : X rm -f *.o prof X--- 1,17 ---- X! # @(#)Makefile 4.2 (2.11BSD) 2025/11/27 X! X! # If you don't want to plot, take out the -Dplot and -lplot X! PLOT = -lplot X! CFLAGS=-O -Dplot X! LDFLAGS=-i X prof: prof.o X! $(CC) $(LDFLAGS) -o prof prof.o $(PLOT) X X prof.o: prof.c X! cc -c $(CFLAGS) prof.c X X install: prof X! install -c -s -m 755 prof /usr/bin X X clean : X rm -f *.o prof X*** ./usr/src/usr.bin/diction/Makefile.old Wed Oct 23 22:17:04 1996 X--- ./usr/src/usr.bin/diction/Makefile Tue Nov 25 19:46:12 2025 X*************** X*** 1,5 **** X # X! # @(#)Makefile 4.5.1 (2.11BSD) 1996/10/23 X # X # make file for STYLE and DICTION X # X--- 1,5 ---- X # X! # @(#)Makefile 4.5.2 (2.11BSD) 2025/11/25 X # X # make file for STYLE and DICTION X # X*************** X*** 6,13 **** X # DICT is the full pathname of the file dict.d, the X # dictionary file used by DICTION X # X! DESTDIR= X! SEPFLAG= -i X SRCS = \ X abbrev.c conp.h dict.c dict.d \ X diction.c diction.sh edict.c ehash.c \ X--- 6,12 ---- X # DICT is the full pathname of the file dict.d, the X # dictionary file used by DICTION X # X! LDFLAGS= -i X SRCS = \ X abbrev.c conp.h dict.c dict.d \ X diction.c diction.sh edict.c ehash.c \ X*************** X*** 24,39 **** X style: style1 style2 style3 X X install: style diction style.sh diction.sh explain.sh dict.d explain.d X! -mkdir -p ${DESTDIR}/usr/libexec/diction X! install -s -m 755 style1 ${DESTDIR}/usr/libexec/diction X! install -s -m 755 style2 ${DESTDIR}/usr/libexec/diction X! install -s -m 755 style3 ${DESTDIR}/usr/libexec/diction X! install -s -m 755 dprog ${DESTDIR}/usr/libexec/diction X! install -c -m 755 style.sh ${DESTDIR}/usr/bin/style X! install -c -m 755 diction.sh ${DESTDIR}/usr/bin/diction X! install -c -m 755 explain.sh ${DESTDIR}/usr/bin/explain X! install -c -m 444 dict.d ${DESTDIR}/usr/share/misc X! install -c -m 444 explain.d ${DESTDIR}/usr/share/misc X X clean: X rm -f prtlex.c wdslex.c endlex.c X--- 23,38 ---- X style: style1 style2 style3 X X install: style diction style.sh diction.sh explain.sh dict.d explain.d X! -mkdir -p /usr/libexec/diction X! install -c -s -m 755 -o root style1 /usr/libexec/diction X! install -c -s -m 755 -o root style2 /usr/libexec/diction X! install -c -s -m 755 -o root style3 /usr/libexec/diction X! install -c -s -m 755 -o root dprog /usr/libexec/diction X! install -c -m 755 -o root style.sh /usr/bin/style X! install -c -m 755 -o root diction.sh /usr/bin/diction X! install -c -m 755 -o root explain.sh /usr/bin/explain X! install -c -m 444 -o root dict.d /usr/share/misc X! install -c -m 444 -o root explain.d /usr/share/misc X X clean: X rm -f prtlex.c wdslex.c endlex.c X*************** X*** 40,46 **** X rm -f *.o style1 style2 style3 dprog X X style3: prtlex.o pscan.o outp.o X! cc ${SEPFLAG} prtlex.o pscan.o outp.o -ll -o style3 X prtlex.c: part.l X lex part.l X mv lex.yy.c prtlex.c X--- 39,45 ---- X rm -f *.o style1 style2 style3 dprog X X style3: prtlex.o pscan.o outp.o X! cc ${LDFLAGS} prtlex.o pscan.o outp.o -ll -o style3 X prtlex.c: part.l X lex part.l X mv lex.yy.c prtlex.c X*************** X*** 52,58 **** X cc -c -O outp.c X X style1: wdslex.o X! cc ${SEPFLAG} wdslex.o -ll -o style1 X wdslex.o: wdslex.c nhash.c dict.c ydict.c names.h abbrev.c X cc -c wdslex.c X wdslex.c: nwords.l X--- 51,57 ---- X cc -c -O outp.c X X style1: wdslex.o X! cc ${LDFLAGS} wdslex.o -ll -o style1 X wdslex.o: wdslex.c nhash.c dict.c ydict.c names.h abbrev.c X cc -c wdslex.c X wdslex.c: nwords.l X*************** X*** 60,66 **** X mv lex.yy.c wdslex.c X X style2: endlex.o X! cc ${SEPFLAG} endlex.o -ll -o style2 X endlex.o: names.h endlex.c ehash.c edict.c X cc -c endlex.c X endlex.c: end.l X--- 59,65 ---- X mv lex.yy.c wdslex.c X X style2: endlex.o X! cc ${LDFLAGS} endlex.o -ll -o style2 X endlex.o: names.h endlex.c ehash.c edict.c X cc -c endlex.c X endlex.c: end.l X*************** X*** 69,75 **** X X diction: dprog X dprog: diction.c X! cc ${SEPFLAG} -O $(DICT) diction.c -o dprog X X srcs: sources X X--- 68,74 ---- X X diction: dprog X dprog: diction.c X! cc ${LDFLAGS} -O $(DICT) diction.c -o dprog X X srcs: sources X X*** ./usr/src/usr.bin/diction/diction.c.old Mon Feb 16 18:22:14 1987 X--- ./usr/src/usr.bin/diction/diction.c Sat Dec 27 09:52:52 2025 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)diction.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X /* X * diction -- print all sentences containing one of default phrases X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)diction.c 4.3 (2.11BSD) 2025/12/27"; X! #endif X X /* X * diction -- print all sentences containing one of default phrases X*************** X*** 335,341 **** X nflag=0; X wordf=fopen(filename,"r"); X if(wordf == NULL){ X! fprintf("diction can't open %s\n",filename); X exit(2); X } X return(getc(wordf)); X--- 335,341 ---- X nflag=0; X wordf=fopen(filename,"r"); X if(wordf == NULL){ X! fprintf(stderr, "diction can't open %s\n",filename); X exit(2); X } X return(getc(wordf)); X*** ./usr/src/usr.bin/calendar/Makefile.old Wed Oct 23 21:56:29 1996 X--- ./usr/src/usr.bin/calendar/Makefile Tue Nov 25 19:42:18 2025 X*************** X*** 1,15 **** X! # Makefile 4.1.1 (2.11BSD) 1996/10/23 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X calendar: calendar.c X! ${CC} ${CFLAGS} ${SEPFLAG} -o calendar calendar.c X X install: calendar calendar.sh X! install -s calendar $(DESTDIR)/usr/libexec X! install -c -m 755 calendar.sh $(DESTDIR)/usr/bin/calendar X X clean: X rm -f calendar X--- 1,14 ---- X! # Makefile 4.1.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X X calendar: calendar.c X! ${CC} ${CFLAGS} ${LDFLAGS} -o calendar calendar.c X X install: calendar calendar.sh X! install -c -s -m 755 -o root calendar /usr/libexec X! install -c -m 755 -o root calendar.sh /usr/bin/calendar X X clean: X rm -f calendar X*** ./usr/src/usr.bin/find/Makefile.old Wed Oct 23 22:27:29 1996 X--- ./usr/src/usr.bin/find/Makefile Tue Dec 9 09:37:05 2025 X*************** X*** 1,8 **** X! # @(#)Makefile 4.3.1 (2.11BSD) 1996/10/23 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X # The programs themselves X # X--- 1,7 ---- X! # @(#)Makefile 4.3.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X X # The programs themselves X # X*************** X*** 16,36 **** X all: ${PROG} ${LIBS} X X find: find.o X! cc ${SEPFLAG} ${CFLAGS} -o find find.o X X bigram: bigram.o X! cc ${SEPFLAG} ${CFLAGS} -o bigram bigram.o X X code: code.o X! cc ${SEPFLAG} ${CFLAGS} -o code code.o X X install: ${PROG} ${LIBS} X! install -s -m 755 ${PROG} ${DESTDIR}/usr/bin/${PROG} X! -mkdir ${DESTDIR}/var/db ${DESTDIR}/usr/libexec/find X! chmod 755 ${DESTDIR}/usr/libexec/find ${DESTDIR}/var/db X! install -s -m 755 bigram ${DESTDIR}/usr/libexec/find/bigram X! install -s -m 755 code ${DESTDIR}/usr/libexec/find/code X! install -c -m 755 updatedb.csh ${DESTDIR}/usr/libexec/find/updatedb X X clean: X rm -f *.o a.out core ${LIBS} ${PROG} X--- 15,35 ---- X all: ${PROG} ${LIBS} X X find: find.o X! cc ${LDFLAGS} ${CFLAGS} -o find find.o X X bigram: bigram.o X! cc ${LDFLAGS} ${CFLAGS} -o bigram bigram.o X X code: code.o X! cc ${LDFLAGS} ${CFLAGS} -o code code.o X X install: ${PROG} ${LIBS} X! install -c -s -m 755 ${PROG} /usr/bin/${PROG} X! -mkdir /var/db /usr/libexec/find X! chmod 755 /usr/libexec/find /var/db X! install -c -s -m 755 bigram /usr/libexec/find/bigram X! install -c -s -m 755 code /usr/libexec/find/code X! install -c -m 755 updatedb.csh /usr/libexec/find/updatedb X X clean: X rm -f *.o a.out core ${LIBS} ${PROG} X*** ./usr/src/usr.bin/struct/Makefile.old Wed Oct 23 23:57:25 1996 X--- ./usr/src/usr.bin/struct/Makefile Tue Dec 9 09:42:20 2025 X*************** X*** 1,9 **** X! # Makefile 4.3.1 (2.11BSD) 1996/10/23 X # X- DESTDIR= X CFLAGS=-O X YFLAGS=-d X! SEPFLAG= -i X 0FILES.c = 0.alloc.c 0.args.c 0.def.c 0.extr.c 0.graph.c 0.list.c 0.parts.c 0.string.c X 0FILES.o = 0.alloc.o 0.args.o 0.def.o 0.extr.o 0.graph.o 0.list.o 0.parts.o 0.string.o X X--- 1,8 ---- X! # Makefile 4.3.2 (2.11BSD) 2025/11/25 X # X CFLAGS=-O X YFLAGS=-d X! LDFLAGS= -i X 0FILES.c = 0.alloc.c 0.args.c 0.def.c 0.extr.c 0.graph.c 0.list.c 0.parts.c 0.string.c X 0FILES.o = 0.alloc.o 0.args.o 0.def.o 0.extr.o 0.graph.o 0.list.o 0.parts.o 0.string.o X X*************** X*** 28,46 **** X all: structure beautify X X install: structure beautify struct X! -mkdir ${DESTDIR}/usr/libexec/struct X! chmod 755 ${DESTDIR}/usr/libexec/struct X! install -s -m 755 structure $(DESTDIR)/usr/libexec/struct/structure X! install -s -m 755 beautify $(DESTDIR)/usr/libexec/struct/beautify X! install -c -m 755 struct $(DESTDIR)/usr/bin X clean: X rm -f *.o y.tab.h beauty.c structure beautify X X structure: main.o $(0FILES.o) $(1FILES.o) $(2FILES.o) $(3FILES.o) $(4FILES.o) X! cc ${SEPFLAG} -o structure main.o 0.*.o 1.*.o 2.*.o 3.*.o 4.*.o X X beautify: beauty.o tree.o lextab.o bdef.o X! cc ${SEPFLAG} -O beauty.o tree.o lextab.o bdef.o -o beautify -lln X X lint: X lint $(0FILES.c) $(1FILES.c) $(2FILES.c) $(3FILES.c) $(4FILES.c) main.c X--- 27,45 ---- X all: structure beautify X X install: structure beautify struct X! -mkdir /usr/libexec/struct X! chmod 755 /usr/libexec/struct X! install -c -s -m 755 structure /usr/libexec/struct/structure X! install -c -s -m 755 beautify /usr/libexec/struct/beautify X! install -c -m 755 struct /usr/bin X clean: X rm -f *.o y.tab.h beauty.c structure beautify X X structure: main.o $(0FILES.o) $(1FILES.o) $(2FILES.o) $(3FILES.o) $(4FILES.o) X! cc ${LDFLAGS} -o structure main.o 0.*.o 1.*.o 2.*.o 3.*.o 4.*.o X X beautify: beauty.o tree.o lextab.o bdef.o X! cc ${LDFLAGS} -O beauty.o tree.o lextab.o bdef.o -o beautify -lln X X lint: X lint $(0FILES.c) $(1FILES.c) $(2FILES.c) $(3FILES.c) $(4FILES.c) main.c X*** ./usr/src/usr.bin/struct/1.defs.h.old Mon Feb 16 18:21:16 1987 X--- ./usr/src/usr.bin/struct/1.defs.h Fri Dec 26 18:32:22 2025 X*************** X*** 1,4 **** X! /* 1.defs.h 4.2 83/08/11 */ X X #define snum 145 X #define _s0 0 X--- 1,4 ---- X! /* 1.defs.h 4.3 (2.11BSD) 2025/12/26 */ X X #define snum 145 X #define _s0 0 X*************** X*** 98,104 **** X #define _subrt 94 X #define _subri 95 X #define _subrn 96 X! #define _r 97 X #define _re 98 X #define _ret 99 X #define _retu 100 X--- 98,104 ---- X #define _subrt 94 X #define _subri 95 X #define _subrn 96 X! #define _XXr 97 X #define _re 98 X #define _ret 99 X #define _retu 100 X*************** X*** 128,134 **** X #define _endeq 124 X #define _rwer 125 X #define _rwerr 126 X! #define _p 127 X #define _pr 128 X #define _pri 129 X #define _prin 130 X--- 128,134 ---- X #define _endeq 124 X #define _rwer 125 X #define _rwerr 126 X! #define _XXp 127 X #define _pr 128 X #define _pri 129 X #define _prin 130 X*** ./usr/src/usr.bin/struct/tree.c.old Mon Jan 18 11:37:13 1993 X--- ./usr/src/usr.bin/struct/tree.c Sat Dec 27 09:58:39 2025 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)tree.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X # include "y.tab.h" X #include "b.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tree.c 4.1 (2.11BSD) 2025/12/27"; X! #endif X X # include "y.tab.h" X #include "b.h" X*************** X*** 221,227 **** X if (ptr[i] == '\0') X return(i + 1); X } X! fprintf(2,"string %s too long to be copied by str_copy at address %d\n", X *s,ptr); X exit(1); X } X--- 221,227 ---- X if (ptr[i] == '\0') X return(i + 1); X } X! fprintf(stderr, "string %s too long to be copied by str_copy at address %d\n", X *s,ptr); X exit(1); X } X*** ./usr/src/usr.bin/spell/Makefile.old Wed Oct 23 23:53:35 1996 X--- ./usr/src/usr.bin/spell/Makefile Tue Dec 9 10:02:10 2025 X*************** X*** 1,28 **** X! # @(#)Makefile 4.3.1 (2.11BSD) 1996/10/23 X X CFLAGS= -O X! SEPFLAG= -i X X all: spell hlist hlista hlistb hstop spellin spellout X X install: all X! install -s spell $(DESTDIR)/usr/libexec X! install -s spellin ${DESTDIR}/usr/bin X! install -s spellout ${DESTDIR}/usr/bin X! install -c hlista $(DESTDIR)/usr/dict X! install -c hlistb $(DESTDIR)/usr/dict X! install -c hstop $(DESTDIR)/usr/dict X! install -c spell.sh $(DESTDIR)/usr/bin/spell X X clean: X rm -f *.o spell spellin hlista hlistb hlist hstop spellout X X spell: spell.o X! cc ${SEPFLAG} spell.o -o spell X spellin: spellin.o X! cc ${SEPFLAG} spellin.o -o spellin X spellout: spellout.o X! cc ${SEPFLAG} spellout.o -o spellout X X hlist: /usr/dict/words spellin X spellin hlist X--- 1,28 ---- X! # @(#)Makefile 4.3.2 (2.11BSD) 2025/11/27 X X CFLAGS= -O X! LDFLAGS= -i X X all: spell hlist hlista hlistb hstop spellin spellout X X install: all X! install -c -s -m 755 spell /usr/libexec X! install -c -s -m 755 spellin /usr/bin X! install -c -s -m 755 spellout /usr/bin X! install -c -m 644 hlista /usr/dict X! install -c -m 644 hlistb /usr/dict X! install -c -m 644 hstop /usr/dict X! install -c -m 755 spell.sh /usr/bin/spell X X clean: X rm -f *.o spell spellin hlista hlistb hlist hstop spellout X X spell: spell.o X! cc ${LDFLAGS} spell.o -o spell X spellin: spellin.o X! cc ${LDFLAGS} spellin.o -o spellin X spellout: spellout.o X! cc ${LDFLAGS} spellout.o -o spellout X X hlist: /usr/dict/words spellin X spellin hlist X*** ./usr/src/usr.bin/spell/spell.c.old Mon Feb 16 18:22:24 1987 X--- ./usr/src/usr.bin/spell/spell.c Fri Dec 26 21:22:25 2025 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)spell.c 4.2 6/3/86"; X #endif X X #include "spell.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)spell.c 4.3 (2.11BSD) 2025/12/26"; X #endif X X #include "spell.h" X*************** X*** 413,419 **** X int val = 0; X char space[20]; X deriv[lev] = a; X! if(putw(word,ep,lev)) X return(1); X bp = word; X pp = space; X--- 413,419 ---- X int val = 0; X char space[20]; X deriv[lev] = a; X! if(sputw(word,ep,lev)) X return(1); X bp = word; X pp = space; X*************** X*** 422,428 **** X *pp++ = '+'; X while(*pp = *cp++) X pp++; X! if(putw(bp,ep,lev+1)) { X val = 1; X break; X } X--- 422,428 ---- X *pp++ = '+'; X while(*pp = *cp++) X pp++; X! if(sputw(bp,ep,lev+1)) { X val = 1; X break; X } X*************** X*** 431,437 **** X return(val); X } X X! putw(bp,ep,lev) X char *bp,*ep; X { X register i, j; X--- 431,437 ---- X return(val); X } X X! sputw(bp,ep,lev) X char *bp,*ep; X { X register i, j; X*** ./usr/src/usr.bin/at/Makefile.old Wed Oct 23 21:54:21 1996 X--- ./usr/src/usr.bin/at/Makefile Tue Dec 9 09:36:31 2025 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.1 (2.11BSD) 1996/10/23 X # X # Makefile for at, atq, atrm, and atrun 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/25 X # X # Makefile for at, atq, atrm, and atrun X # X*************** X*** 10,51 **** X ALL= atq atrm at atrun X SRCS= atq.c atrm.c at.c atrun.c X CFLAGS= -O X- DESTDIR= X SPOOLDIRS= /usr/spool/at /usr/spool/at/past X SPOOLFILES= /usr/spool/at/lasttimedone X! SEPFLAG= -i X X all: ${ALL} X X at: at.c X! $(CC) $(CFLAGS) ${SEPFLAG} -o at at.c X X atq: atq.c X! $(CC) $(CFLAGS) ${SEPFLAG} -o atq atq.c X X atrm: atrm.c X! $(CC) $(CFLAGS) ${SEPFLAG} -o atrm atrm.c X X atrun: atrun.c X! $(CC) $(CFLAGS) ${SEPFLAG} -o atrun atrun.c X X install: all X -for i in $(SPOOLDIRS); \ X! do mkdir $(DESTDIR)/$$i; \ X! chown daemon $(DESTDIR)/$$i; \ X! chgrp daemon $(DESTDIR)/$$i; \ X! chmod 755 $(DESTDIR)/$$i; \ X done X -for i in $(SPOOLFILES); \ X! do if [ ! -f $(DESTDIR)/$$i ]; \ X! then echo 0 > $(DESTDIR)/$$i; fi; \ X! chown daemon $(DESTDIR)/$$i; \ X! chgrp daemon $(DESTDIR)/$$i; \ X done X! install -s -o daemon atrun $(DESTDIR)/usr/libexec X! install -s -o daemon -m 4755 atq $(DESTDIR)/usr/bin X! install -s -o daemon -m 4755 at $(DESTDIR)/usr/bin X! install -s -o daemon -m 4755 atrm $(DESTDIR)/usr/bin X X clean: X rm -f $(ALL) errs *.o X--- 10,48 ---- X ALL= atq atrm at atrun X SRCS= atq.c atrm.c at.c atrun.c X CFLAGS= -O X SPOOLDIRS= /usr/spool/at /usr/spool/at/past X SPOOLFILES= /usr/spool/at/lasttimedone X! LDFLAGS= -i X X all: ${ALL} X X at: at.c X! $(CC) $(CFLAGS) ${LDFLAGS} -o at at.c X X atq: atq.c X! $(CC) $(CFLAGS) ${LDFLAGS} -o atq atq.c X X atrm: atrm.c X! $(CC) $(CFLAGS) ${LDFLAGS} -o atrm atrm.c X X atrun: atrun.c X! $(CC) $(CFLAGS) ${LDFLAGS} -o atrun atrun.c X X install: all X -for i in $(SPOOLDIRS); \ X! do mkdir $$i; \ X! chown daemon.daemon $$i; \ X! chmod 755 $$i; \ X done X -for i in $(SPOOLFILES); \ X! do if [ ! -f $$i ]; \ X! then echo 0 > $$i; fi; \ X! chown daemon.daemon $$i; \ X done X! install -c -m 755 -s -o daemon atrun /usr/libexec X! install -c -s -o daemon -m 4755 atq /usr/bin X! install -c -s -o daemon -m 4755 at /usr/bin X! install -c -s -o daemon -m 4755 atrm /usr/bin X X clean: X rm -f $(ALL) errs *.o X*** ./usr/src/usr.bin/at/at.c.old Sun Sep 19 19:37:29 2021 X--- ./usr/src/usr.bin/at/at.c Sat Dec 27 09:49:45 2025 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[] = "@(#)at.c 5.5 (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[] = "@(#)at.c 5.6 (2.11BSD) 2025/12/27"; X #endif X X /* X*************** X*** 898,904 **** X X X if ((pwdinfo = getpwuid(uid)) == 0) { X! perror(uid); X exit(1); X } X return(pwdinfo->pw_name); X--- 898,904 ---- X X X if ((pwdinfo = getpwuid(uid)) == 0) { X! fprintf(stderr, "getpwuid(%d) returned NULL\n", uid); X exit(1); X } X return(pwdinfo->pw_name); X*** ./usr/src/usr.bin/at/atrun.c.old Sun Sep 19 19:39:49 2021 X--- ./usr/src/usr.bin/at/atrun.c Sat Dec 27 09:50:56 2025 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[] = "@(#)atrun.c 5.5 (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[] = "@(#)atrun.c 5.6 (2.11BSD) 2025/12/27"; X #endif X X /* X*************** X*** 528,534 **** X X X if ((pwdinfo = getpwuid(uid)) == 0) { X! perror(uid); X exit(1); X } X return(pwdinfo->pw_name); X--- 528,534 ---- X X X if ((pwdinfo = getpwuid(uid)) == 0) { X! fprintf(stderr, "getpwuid(%d) returned NULL\n", uid); X exit(1); X } X return(pwdinfo->pw_name); X*** ./usr/src/usr.bin/renice/Makefile.old Sun Nov 17 22:28:28 1996 X--- ./usr/src/usr.bin/renice/Makefile Tue Dec 9 09:40:15 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= renice.c X OBJS= renice.o X MAN= renice.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= renice.c X OBJS= renice.o X MAN= renice.0 X*************** X*** 13,19 **** X all: renice renice.0 X X renice: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X renice.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: renice renice.0 X X renice: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X renice.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: renice X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 renice ${DESTDIR}/usr/bin/renice X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: renice X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 renice /usr/bin/renice X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/xinstall/Makefile.old Tue Feb 20 15:29:35 1996 X--- ./usr/src/usr.bin/xinstall/Makefile Tue Dec 9 09:49:28 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/2/20 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/2/20 X # X CFLAGS= -O X! SEPFLAG= -i X VPATH= /usr/src/bin/ls X SRCS= xinstall.c stat_flags.c X OBJS= xinstall.o stat_flags.o X--- 1,10 ---- X # X # Public Domain. 1996/2/20 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X VPATH= /usr/src/bin/ls X SRCS= xinstall.c stat_flags.c X OBJS= xinstall.o stat_flags.o X*************** X*** 14,20 **** X all: xinstall ${MAN} X X xinstall: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X install.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 14,20 ---- X all: xinstall ${MAN} X X xinstall: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X install.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 26,33 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 xinstall ${DESTDIR}/usr/bin/install X X lint: ${SRCS} X lint -hax ${SRCS} X--- 26,33 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 755 xinstall /usr/bin/install X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/efl/Makefile.old Sat Aug 30 19:52:23 2025 X--- ./usr/src/usr.bin/efl/Makefile Thu Dec 25 08:52:51 2025 X*************** X*** 1,21 **** X! ################################################################################ X! # A horrid Makefile for EFL, a language even more dead than Latin # X! # # X! # I wrote this to make EFL compile on a PDP-11. It attempts to stuff # X! # EFL into 64K, and it just barely fits. The program is barely under 64K # X! # text, just under 56K bss and data, and 8K stack. It will work as a split # X! # I&D program without overlays. Any increase will likely push it into an ## overlaid image. # X! # # X! # Sorry for the mess, but this is the best I could do while limiting changes # X! # to the EFL source itself. I admit I don't understand most of it, so # X! # confining changes to here is probably a good idea. # X! # -- Frank Wortner # X ################################################################################ X PROGRAM= efl X CFLAGS = -O -w X # Implement split I&D. EFL just barely fits. X! SEPFLAG = -i X! LDFLAGS = $(SEPFLAG) X EFLSHAREDIR = /usr/share/efl X X FILES1 = Makefile efl.1 defs tokens main.c init.c tailor.c\ X--- 1,21 ---- 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+ # X+ # I wrote this to make EFL compile on a PDP-11. It attempts to stuff X+ # EFL into 64K, and it just barely fits. The program is barely under 64K X+ # text, just under 56K bss and data, and 8K stack. X+ # X+ # Sorry for the mess, but this is the best I could do while limiting changes X+ # to the EFL source itself. I admit I don't understand most of it, so X+ # confining changes to here is probably a good idea. X+ # -- Frank Wortner 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 FILES1 = Makefile efl.1 defs tokens main.c init.c tailor.c\ X*************** X*** 32,46 **** X # in saves .75KB of I space and 1.7KB of D space X LIBS=-lstubs 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 io.o lex.o main.o \ X! misc.o mk.o namgen.o pass2.o print.o simple.o struct.o \ X symtab.o tailor.o temp.o X X! OBJECTS = $(BASE) X X! $(PROGRAM): $(BASE) X! /bin/ld $(LDFLAGS) -X -o $(PROGRAM) /lib/crt0.o $(BASE) $(LIBS) -lc X size $(PROGRAM) X ./catastrophe $(PROGRAM) X X--- 32,53 ---- 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 symtab.o tailor.o temp.o X 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*************** X*** 116,125 **** X X install: $(PROGRAM) efl_errorstrings X -@size $(PROGRAM) /usr/bin/efl X! install -c -s -m 755 -o root -g bin $(PROGRAM) ${DESTDIR}/usr/bin/efl X -mkdir -p $(EFLSHAREDIR) X -chmod 755 $(EFLSHAREDIR) X! install -c -m 444 -o root -g bin efl_errorstrings $(EFLSHAREDIR) X X lint: $(PROGRAM) X lint -p *.c -lS X--- 123,132 ---- X X install: $(PROGRAM) efl_errorstrings X -@size $(PROGRAM) /usr/bin/efl X! install -c -s -m 755 -o root -g staff $(PROGRAM) /usr/bin/efl X -mkdir -p $(EFLSHAREDIR) X -chmod 755 $(EFLSHAREDIR) X! install -c -m 444 -o root -g staff efl_errorstrings $(EFLSHAREDIR) X X lint: $(PROGRAM) X lint -p *.c -lS X*** ./usr/src/usr.bin/efl/catastrophe.old Tue Aug 19 16:07:38 2025 X--- ./usr/src/usr.bin/efl/catastrophe Tue Dec 23 19:26:09 2025 X*************** X*** 1,10 **** X #!/bin/sh X # How far away are we from catastrophe (running out of memory)? X # X! # If we run out of text bytes, it might be time to change this to an X! # overlaid binary. X! # If we run out of data bytes, launch a desparte search to reduce array sizes X! # or coalless strings. The Makfile already strips over 2000 bytes of error X # messages and stores them externally, so the low hanging fruit has X # already been picked. X X--- 1,10 ---- X #!/bin/sh X # How far away are we from catastrophe (running out of memory)? X # X! # with the introduction of ANSI compliant stdio efl needs to be overlaid. X! # X! # If we run out of data bytes, launch a desperate search to reduce array sizes X! # or coalesce strings. The Makefile already strips over 2000 bytes of error X # messages and stores them externally, so the low hanging fruit has X # already been picked. X X*** ./usr/src/usr.bin/ranlib/Makefile.old Fri Dec 31 21:41:13 1993 X--- ./usr/src/usr.bin/ranlib/Makefile Mon Dec 8 13:52:11 2025 X*************** X*** 1,6 **** X--- 1,9 ---- X+ # Makefile 2.0 (2.11BSD) 2025/11/27 X+ X SRCS= ../../bin/ar/archive.c build.c misc.c ranlib.c touch.c X OBJS= archive.o build.o ./misc.o ranlib.o touch.o X CFLAGS= -O -I. -I../../bin/ar X+ LDFLAGS= -i X VPATH= ../../bin/ar X X all: ranlib.0 ranlib.5.0 ranlib X*************** X*** 12,25 **** X /usr/man/manroff ranlib.5.5 > ranlib.5.0 X X ranlib: ${OBJS} X! cc -z -o ranlib ${OBJS} X X install: X! install -c -o bin -g bin -m 444 ranlib.5.0 \ X! ${DESTDIR}/usr/man/cat5/ranlib.0 X! install -c -o bin -g bin -m 444 ranlib.0 \ X! ${DESTDIR}/usr/man/cat1/ranlib.0 X! install -c -s -o bin -g bin -m 755 ranlib ${DESTDIR}/usr/bin/ranlib X X lint: X lint -havx -I. -I../../bin/ar ${SRCS} X--- 15,28 ---- X /usr/man/manroff ranlib.5.5 > ranlib.5.0 X X ranlib: ${OBJS} X! cc ${LDFLAGS} -o ranlib ${OBJS} X X install: X! install -c -o root -g staff -m 444 ranlib.5.0 \ X! /usr/man/cat5/ranlib.0 X! install -c -o root -g staff -m 444 ranlib.0 \ X! /usr/man/cat1/ranlib.0 X! install -c -s -o root -g staff -m 755 ranlib /usr/bin/ranlib X X lint: X lint -havx -I. -I../../bin/ar ${SRCS} X*** ./usr/src/usr.bin/printf/Makefile.old Tue May 2 23:44:11 1995 X--- ./usr/src/usr.bin/printf/Makefile Tue Dec 9 09:39:16 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1995/05/02 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1995/05/02 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= printf.c X OBJS= printf.o X MAN= printf.0 X--- 1,10 ---- X # X # Public Domain. 1995/05/02 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= printf.c X OBJS= printf.o X MAN= printf.0 X*************** X*** 13,19 **** X all: printf printf.0 X X printf: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X printf.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: printf printf.0 X X printf: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X printf.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 printf ${DESTDIR}/usr/bin/printf X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 755 printf /usr/bin/printf X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/uname/Makefile.old Sun Feb 5 01:16:21 1995 X--- ./usr/src/usr.bin/uname/Makefile Tue Dec 9 09:43:35 2025 X*************** X*** 1,10 **** X # X # Public Domain. 2/4/1995 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD GTE) 2/3/95 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= uname.c X OBJS= uname.o X MAN= uname.0 X--- 1,10 ---- X # X # Public Domain. 2/4/1995 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= uname.c X OBJS= uname.o X MAN= uname.0 X*************** X*** 13,19 **** X all: uname uname.0 X X uname: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X uname.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: uname uname.0 X X uname: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X uname.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 uname ${DESTDIR}/usr/bin/uname X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 755 uname /usr/bin/uname X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/mkerrlst/Makefile.old Wed Mar 20 23:14:59 1996 X--- ./usr/src/usr.bin/mkerrlst/Makefile Tue Dec 9 09:38:15 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/3/14 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/3/14 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= mkerrlst.c X OBJS= mkerrlst.o X MAN= mkerrlst.0 X--- 1,10 ---- 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 SRCS= mkerrlst.c X OBJS= mkerrlst.o X MAN= mkerrlst.0 X*************** X*** 13,19 **** X all: mkerrlst mkerrlst.0 X X mkerrlst: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} -lerrlst X X mkerrlst.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: mkerrlst mkerrlst.0 X X mkerrlst: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} -lerrlst X X mkerrlst.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: mkerrlst X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 mkerrlst ${DESTDIR}/usr/bin/mkerrlst X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X 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 X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/xargs/Makefile.old Fri May 26 12:49:54 1995 X--- ./usr/src/usr.bin/xargs/Makefile Tue Dec 9 09:49:22 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1995/03/13 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1995/03/13 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= xargs.c X OBJS= xargs.o X X--- 1,10 ---- X # X # Public Domain. 1995/03/13 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLSGS= -i X SRCS= xargs.c X OBJS= xargs.o X X*************** X*** 11,17 **** X all: xargs xargs.0 X X xargs: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X xargs.0: xargs.1 X /usr/man/manroff xargs.1 > xargs.0 X--- 11,17 ---- X all: xargs xargs.0 X X xargs: ${OBJS} X! ${CC} ${LDFLSGS} -o $@ ${OBJS} X X xargs.0: xargs.1 X /usr/man/manroff xargs.1 > xargs.0 X*************** X*** 23,30 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -s -o bin -g bin -m 755 xargs ${DESTDIR}/usr/bin X! install -c -o bin -g bin -m 444 xargs.0 ${DESTDIR}/usr/man/cat1 X X lint: ${SRCS} X lint -hax ${SRCS} X--- 23,30 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -s -o root -g staff -m 755 xargs /usr/bin X! install -c -o root -g staff -m 444 xargs.0 /usr/man/cat1 X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/patch/Makefile.old Sun Jan 12 13:18:27 1997 X--- ./usr/src/usr.bin/patch/Makefile Mon Dec 8 15:33:54 2025 X*************** X*** 1,11 **** X! # X! # patch Makefile. Revised 1997/1/12 X! # X! DESTDIR= X X DEFS= X CFLAGS= -O ${DEFS} X! SEPFLAG=-i X X HDRS= EXTERN.h INTERN.h common.h config.h inp.h patchlevel.h pch.h \ X util.h version.h X--- 1,8 ---- 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*************** X*** 18,28 **** X /usr/man/manroff $*.man > $*.0 X X patch: ${OBJS} patch.0 X! cc ${SEPFLAG} ${OBJS} -o patch X X install: patch patch.0 X! install patch ${DESTDIR}/usr/bin X! install -m 444 -o bin -g bin patch.0 ${DESTDIR}/usr/man/cat1 X X clean: X rm -f *.o *.orig core tags patch *.0 X--- 15,25 ---- X /usr/man/manroff $*.man > $*.0 X X patch: ${OBJS} patch.0 X! cc ${LDFLAGS} ${OBJS} -o patch 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*** ./usr/src/usr.bin/patch/config.h.old Thu Aug 11 01:58:06 1988 X--- ./usr/src/usr.bin/patch/config.h Fri Dec 26 18:20:35 2025 X*************** X*** 1,28 **** X! /* config.h X! * This file was produced by running the config.h.SH script, which X! * gets its values from config.sh, which is generally produced by X! * running Configure. X! * X! * Feel free to modify any of this as the need arises. Note, however, X! * that running config.h.SH again will wipe out any changes you've made. X! * For a more permanent change edit config.sh and rerun config.h.SH. X! */ X X- X- /* EUNICE: X- * This symbol, if defined, indicates that the program is being compiled X- * under the EUNICE package under VMS. The program will need to handle X- * things like files that don't go away the first time you unlink them, X- * due to version numbering. It will also need to compensate for lack X- * of a respectable link() command. X- */ X- /* VMS: X- * This symbol, if defined, indicates that the program is running under X- * VMS. It is currently only set in conjunction with the EUNICE symbol. X- */ X- #/*undef EUNICE /**/ X- #/*undef VMS /**/ X- X /* CPPSTDIN: X * This symbol contains the first part of the string which will invoke X * the C preprocessor on the standard input and produce to standard X--- 1,7 ---- X! /* X! * config.h 2.0 (2.11BSD) 2025/12/26 X! */ X X /* CPPSTDIN: X * This symbol contains the first part of the string which will invoke X * the C preprocessor on the standard input and produce to standard X*************** X*** 43,67 **** X * is up to the package author to declare sprintf correctly based on the X * symbol. X */ X! #define CHARSPRINTF /**/ X X- /* FLEXFILENAMES: X- * This symbol, if defined, indicates that the system supports filenames X- * longer than 14 characters. X- */ X- #/*undef FLEXFILENAMES /**/ X- X- /* index: X- * This preprocessor symbol is defined, along with rindex, if the system X- * uses the strchr and strrchr routines instead. X- */ X- /* rindex: X- * This preprocessor symbol is defined, along with index, if the system X- * uses the strchr and strrchr routines instead. X- */ X- #/*undef index strchr /* cultural */ X- #/*undef rindex strrchr /* differences? */ X- X /* VOIDSIG: X * This symbol is defined if this system declares "void (*signal())()" in X * signal.h. The old way was to declare it as "int (*signal())()". It X--- 22,29 ---- X * is up to the package author to declare sprintf correctly based on the X * symbol. X */ X! #undef CHARSPRINTF /**/ X X /* VOIDSIG: X * This symbol is defined if this system declares "void (*signal())()" in X * signal.h. The old way was to declare it as "int (*signal())()". It X*************** X*** 95,121 **** X #define Reg14 /**/ X #define Reg15 /**/ X #define Reg16 /**/ X- X- /* VOIDFLAGS: X- * This symbol indicates how much support of the void type is given by this X- * compiler. What various bits mean: X- * X- * 1 = supports declaration of void X- * 2 = supports arrays of pointers to functions returning void X- * 4 = supports comparisons between pointers to void functions and X- * addresses of void functions X- * X- * The package designer should define VOIDUSED to indicate the requirements X- * of the package. This can be done either by #defining VOIDUSED before X- * including config.h, or by defining defvoidused in Myinit.U. If the X- * level of void support necessary is not present, defines void to int. X- */ X- #ifndef VOIDUSED X- #define VOIDUSED 7 X- #endif X- #define VOIDFLAGS 7 X- #if (VOIDFLAGS & VOIDUSED) != VOIDUSED X- #define void int /* is void to be avoided? */ X- #define M_VOID /* Xenix strikes again */ X- #endif X- X--- 57,59 ---- X*** ./usr/src/usr.bin/patch/README.old Wed Jun 29 21:28:38 1988 X--- ./usr/src/usr.bin/patch/README Fri Dec 26 18:02:54 2025 X*************** X*** 1,4 **** X! Patch Kit, Version 2.0 X X Copyright (c) 1988, Larry Wall X X--- 1,4 ---- X! Patch Kit (2.11BSD) Version 2.1 2025/12/26 X X Copyright (c) 1988, Larry Wall X X*************** X*** 14,64 **** X X Installation X X! 1) Run Configure. This will figure out various things about your system. X! Some things Configure will figure out for itself, other things it will X! ask you about. It will then proceed to make config.h, config.sh, and X! Makefile. X! X! You might possibly have to trim # comments from the front of Configure X! if your sh doesn't handle them, but all other # comments will be taken X! care of. X! X! If you don't have sh, you'll have to rip the prototype of config.h out X! of Configure and generate the defines by hand. X! X! 2) Glance through config.h to make sure system dependencies are correct. X Most of them should have been taken care of by running the Configure script. X X If you have any additional changes to make to the C definitions, they X! can be done in the Makefile, or in config.h. Bear in mind that they may X! get undone next time you run Configure. X X! 3) make X X This will attempt to make patch in the current directory. X X! 4) make install X X! This will put patch into a public directory (normally /usr/local/bin). X It will also try to put the man pages in a reasonable place. It will not X nroff the man page, however. X- X- 5) Read the manual entry before running patch. X- X- 6) IMPORTANT! Help save the world! Communicate any problems and X- suggested patches to me, lwall@jpl-devvax.Jpl.Nasa.Gov (Larry Wall), X- so we can keep the world in sync. If you have a problem, there's X- someone else out there who either has had or will have the same problem. X- X- If possible, send in patches such that the patch program will apply them. X- Context diffs are the best, then normal diffs. Don't send ed scripts-- X- I've probably changed my copy since the version you have. X- X- Watch for patch patches in net.sources.bugs. Patches will generally be X- in a form usable by the patch program. If you are just now bringing up X- patch and aren't sure how many patches there are, write to me and I'll X- send any you don't have. Your current patch level is shown in patchlevel.h. X- X X NEW FEATURES IN THIS RELEASE X X--- 14,34 ---- X X Installation X X! 1) Glance through config.h to make sure system dependencies are correct. X Most of them should have been taken care of by running the Configure script. X X If you have any additional changes to make to the C definitions, they X! can be done in the Makefile, or in config.h. X X! 2) make X X This will attempt to make patch in the current directory. X X! 3) make install X X! This will put patch into a public directory (normally /usr/bin). X It will also try to put the man pages in a reasonable place. It will not X nroff the man page, however. X X NEW FEATURES IN THIS RELEASE X X*** ./usr/src/usr.bin/patch/patch.c.old Wed Jun 29 21:28:40 1988 X--- ./usr/src/usr.bin/patch/patch.c Fri Dec 26 21:22:05 2025 X*************** X*** 1,5 **** X! char rcsid[] = X! "$Header: patch.c,v 2.0.1.6 88/06/22 20:46:39 lwall Locked $"; X X /* patch - a program to apply diffs to original files X * X--- 1,7 ---- 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*************** X*** 289,307 **** X failtotal += failed; X if (!*rejname) { X Strcpy(rejname, outname); X- #ifndef FLEXFILENAMES X- { X- char *rindex(); X- char *s = rindex(rejname,'/'); X- X- if (!s) X- s = rejname; X- if (strlen(s) > 13) X- if (s[12] == '.') /* try to preserve difference */ X- s[12] = s[13]; /* between .h, .c, .y, etc. */ X- s[13] = '\0'; X- } X- #endif X Strcat(rejname, REJEXT); X } X if (skip_rest_of_patch) { X--- 291,296 ---- X*** ./usr/src/usr.bin/patch/version.c.old Thu Jun 23 13:39:17 1988 X--- ./usr/src/usr.bin/patch/version.c Fri Dec 26 18:22:42 2025 X*************** X*** 1,9 **** X! /* $Header: version.c,v 2.0 86/09/17 15:40:11 lwall Exp $ X! * X! * $Log: version.c,v $ X! * Revision 2.0 86/09/17 15:40:11 lwall X! * Baseline for netwide release. X! * X */ X X #include "EXTERN.h" X--- 1,5 ---- X! /* X! * version.c 2.0 (2.11BSD) 2025/12/26 X */ X X #include "EXTERN.h" X*************** X*** 20,28 **** X { X extern char rcsid[]; X X- #ifdef lint X- rcsid[0] = rcsid[0]; X- #else X fatal3("%s\nPatch level: %d\n", rcsid, PATCHLEVEL); X- #endif X } X--- 16,20 ---- X*** ./usr/src/usr.bin/patch/patch.man.old Wed Jun 29 21:28:41 1988 X--- ./usr/src/usr.bin/patch/patch.man Fri Dec 26 18:20:02 2025 X*************** X*** 1,5 **** X .rn '' }` X! ''' $Header: patch.man,v 2.0.1.2 88/06/22 20:47:18 lwall Locked $ 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.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*************** X*** 380,386 **** X .B \-v X causes X .I patch X! to print out it's revision header and patch level. X .TP 5 X .B \-x X sets internal debugging flags, and is of interest only to X--- 380,386 ---- X .B \-v X causes X .I patch X! to print out its version and patch level. X .TP 5 X .B \-x X sets internal debugging flags, and is of interest only to X*** ./usr/src/usr.bin/shar/Makefile.old Sun Jan 12 13:25:17 1997 X--- ./usr/src/usr.bin/shar/Makefile Tue Dec 23 20:14:19 2025 X*************** X*** 1,10 **** X! # X! # shar Makefile. Revised 1997/1/12 X! # X! DESTDIR= X! X CFLAGS= -O X! SEPFLAG=-i X X SRCS= shar.c traverse.c X OBJS= shar.o traverse.o X--- 1,6 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X CFLAGS= -O X! LDFLAGS=-i X X SRCS= shar.c traverse.c X OBJS= shar.o traverse.o X*************** X*** 19,38 **** X X all: shar traverse shar.0 traverse.0 X X! shar: ${OBJS} Makefile X! cc ${CFLAGS} ${SEPFLAG} -o shar ${OBJS} X X traverse: traverse.c X! cc -o traverse -DSTANDALONE traverse.c X X lint: X lint -h ${SRCS} X X install: shar shar.0 X! install -s shar ${DESTDIR}/usr/bin/shar X! install -s traverse ${DESTDIR}/usr/bin/traverse X! install -c -m 444 -o bin -g bin shar.0 ${DESTDIR}/usr/man/cat1 X! install -c -m 444 -o bin -g bin traverse.0 ${DESTDIR}/usr/man/cat3 X X tags: ${SRCS} X ctags $< X--- 15,34 ---- X X all: shar traverse shar.0 traverse.0 X X! shar: ${OBJS} 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 X install: shar shar.0 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*** ./usr/src/usr.bin/fstat/Makefile.old Fri Sep 27 19:16:51 2024 X--- ./usr/src/usr.bin/fstat/Makefile Tue Dec 9 09:37:13 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2024/9/27 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= fstat.c X OBJS= fstat.o X MAN= fstat.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= fstat.c X OBJS= fstat.o X MAN= fstat.0 X*************** X*** 13,19 **** X all: fstat fstat.0 X X fstat: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X fstat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: fstat fstat.0 X X fstat: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X fstat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: fstat fstat.0 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o bin -g kmem -m 2755 fstat ${DESTDIR}/usr/bin/fstat X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: fstat fstat.0 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g kmem -m 2755 fstat /usr/bin/fstat X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/whereis/Makefile.old Wed Nov 27 23:49:40 1996 X--- ./usr/src/usr.bin/whereis/Makefile Tue Dec 9 09:49:12 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= whereis.c X OBJS= whereis.o X MAN= whereis.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= whereis.c X OBJS= whereis.o X MAN= whereis.0 X*************** X*** 13,19 **** X all: whereis whereis.0 X X whereis: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X whereis.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: whereis whereis.0 X X whereis: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X whereis.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: whereis X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 whereis ${DESTDIR}/usr/bin/whereis X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: whereis X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 755 whereis /usr/bin/whereis X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/id/Makefile.old Wed Jun 25 16:31:19 1997 X--- ./usr/src/usr.bin/id/Makefile Tue Dec 9 09:37:40 2025 X*************** X*** 1,10 **** X # X # 1997/6/25 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1997/6/25 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= id.c X OBJS= id.o X MAN= id.0 groups.0 whoami.0 X--- 1,10 ---- X # X # 1997/6/25 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= id.c X OBJS= id.o X MAN= id.0 groups.0 whoami.0 X*************** X*** 17,23 **** X all: id ${MAN} X X id: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} ${MAN} id tags X--- 17,23 ---- X all: id ${MAN} X X id: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X clean: X rm -f ${OBJS} ${MAN} id tags X*************** X*** 26,35 **** X mkdep ${CFLAGS} ${SRCS} X X install: id X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 X! install -s -o root -g bin -m 755 id ${DESTDIR}/usr/bin/id X! install -c -o bin -g bin -m 755 groups.sh ${DESTDIR}/usr/bin/groups X! install -c -o bin -g bin -m 755 whoami.sh ${DESTDIR}/usr/bin/whoami X X lint: ${SRCS} X lint -hax ${SRCS} X--- 26,35 ---- X mkdep ${CFLAGS} ${SRCS} X X install: id X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X! install -c -s -o root -g staff -m 755 id /usr/bin/id X! install -c -o root -g staff -m 755 groups.sh /usr/bin/groups X! install -c -o root -g staff -m 755 whoami.sh /usr/bin/whoami X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/Makefile.old Sat Jul 26 22:59:29 1997 X--- ./usr/src/usr.bin/Makefile Wed Dec 24 19:17:39 2025 X*************** X*** 1,13 **** X! # Makefile 1.9 (2.11BSD GTE) 1997/7/26 X # X- DESTDIR= X CFLAGS= -O X! SEPFLAG= -i X X! # Programs that live in subdirectories, and have makefiles of their own. X! # X! SUBDIR= at calendar dc diction diff3 eqn fstat f77 find graph id learn \ X! lex lint \ 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--- 1,13 ---- X! # Makefile 2.0 (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. eqn X! # must be built before neqn. X! X! SUBDIR= at calendar dc diction diff3 efl eqn fstat f77 find graph id learn \ 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*** 14,20 **** X X # Shell scripts that need only be installed and are never removed. X # X! SCRIPT= lorder mkdep nohup X X # C source that lives in the current directory X # X--- 14,20 ---- X X # Shell scripts that need only be installed and are never removed. X # X! SCRIPT= lorder mkdep nohup lint X X # C source that lives in the current directory X # X*************** X*** 42,62 **** X all: ${SUBDIR} ${STD} ${NSTD} ${KMEM} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X ${STD} ${KMEM}: X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ $@.c X X install: ${STD} ${NSTD} ${KMEM} X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X -for i in ${SCRIPT}; do \ X! (install -c -m 555 $$i.sh ${DESTDIR}/usr/bin/$$i); done X -for i in ${KMEM}; do \ X! (install -s -g kmem -m 2755 $$i ${DESTDIR}/usr/bin/$$i); done X! install -s ${STD} ${NSTD} ${DESTDIR}/usr/bin X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X--- 42,62 ---- X all: ${SUBDIR} ${STD} ${NSTD} ${KMEM} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X ${STD} ${KMEM}: X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c X X install: ${STD} ${NSTD} ${KMEM} X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X -for i in ${SCRIPT}; do \ X! (install -c -o root -g staff -m 555 $$i.sh /usr/bin/$$i); done X -for i in ${KMEM}; do \ X! (install -c -s -g kmem -m 2755 $$i /usr/bin/$$i); done X! install -c -s -o root -g staff -m 755 ${STD} ${NSTD} /usr/bin X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X*************** X*** 74,80 **** X ${YACC} ${YFLAGS} $@.y X ${CC} -c ${CFLAGS} y.tab.c X mv y.tab.o $@.o X! ${CC} ${SEPFLAG} -o $@ $@.o X rm -f $@.o X X # DO NOT DELETE THIS LINE -- make depend uses it X--- 74,80 ---- X ${YACC} ${YFLAGS} $@.y X ${CC} -c ${CFLAGS} y.tab.c X mv y.tab.o $@.o X! ${CC} ${LDFLAGS} -o $@ $@.o X rm -f $@.o X X # DO NOT DELETE THIS LINE -- make depend uses it X*** ./usr/src/usr.bin/cb.c.old Mon Feb 16 18:22:31 1987 X--- ./usr/src/usr.bin/cb.c Fri Dec 26 17:53:17 2025 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)cb.c 4.3 (Berkeley) 2/17/86"; X #include X int slevel[10]; X int clevel = 0; X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)cb.c 4.4 (2.11BSD) 2025/12/26"; X! #endif X! X #include X int slevel[10]; X int clevel = 0; X*************** X*** 48,54 **** X if(lookup(welse) == 1){ X gotelse(); X if(sflg == 0 || j > 0)string[j++] = c; X! puts(); X sflg = 0; X continue; X } X--- 51,57 ---- X if(lookup(welse) == 1){ X gotelse(); X if(sflg == 0 || j > 0)string[j++] = c; X! cputs(); X sflg = 0; X continue; X } X*************** X*** 56,62 **** X continue; X case '\n': X if((eflg = lookup(welse)) == 1)gotelse(); X! puts(); X printf("\n"); X sflg = 1; X if(eflg == 1){ X--- 59,65 ---- X continue; X case '\n': X if((eflg = lookup(welse)) == 1)gotelse(); X! cputs(); X printf("\n"); X sflg = 1; X if(eflg == 1){ X*************** X*** 78,86 **** X tabs--; X } X string[j++] = c; X! puts(); X getnl(); X! puts(); X printf("\n"); X tabs++; X sflg = 1; X--- 81,89 ---- X tabs--; X } X string[j++] = c; X! cputs(); X getnl(); X! cputs(); X printf("\n"); X tabs++; X sflg = 1; X*************** X*** 98,104 **** X tabs -= pflg[level]; X pflg[level] = 0; X } X! puts(); X tabs--; X ptabs(); X if((peek = getch()) == ';'){ X--- 101,107 ---- X tabs -= pflg[level]; X pflg[level] = 0; X } X! cputs(); X tabs--; X ptabs(); X if((peek = getch()) == ';'){ X*************** X*** 107,113 **** X } X else printf("%c",c); X getnl(); X! puts(); X printf("\n"); X sflg = 1; X if(clevel < slevel[level])if(level > 0)level--; X--- 110,116 ---- X } X else printf("%c",c); X getnl(); X! cputs(); X printf("\n"); X sflg = 1; X if(clevel < slevel[level])if(level > 0)level--; X*************** X*** 126,132 **** X string[j++] = getch(); X } X if(cc == '\n'){ X! puts(); X sflg = 1; X } X } X--- 129,135 ---- X string[j++] = getch(); X } X if(cc == '\n'){ X! cputs(); X sflg = 1; X } X } X*************** X*** 138,150 **** X continue; X case ';': X string[j++] = c; X! puts(); X if(pflg[level] > 0 && ind[level] == 0){ X tabs -= pflg[level]; X pflg[level] = 0; X } X getnl(); X! puts(); X printf("\n"); X sflg = 1; X if(iflev > 0) X--- 141,153 ---- X continue; X case ';': X string[j++] = c; X! cputs(); X if(pflg[level] > 0 && ind[level] == 0){ X tabs -= pflg[level]; X pflg[level] = 0; X } X getnl(); X! cputs(); X printf("\n"); X sflg = 1; X if(iflev > 0) X*************** X*** 169,179 **** X } X if(lookup(wds) == 0){ X sflg = 0; X! puts(); X } X else{ X tabs--; X! puts(); X tabs++; X } X if((peek = getch()) == ';'){ X--- 172,182 ---- X } X if(lookup(wds) == 0){ X sflg = 0; X! cputs(); X } X else{ X tabs--; X! cputs(); X tabs++; X } X if((peek = getch()) == ';'){ X*************** X*** 181,187 **** X peek = -1; X } X getnl(); X! puts(); X printf("\n"); X sflg = 1; X continue; X--- 184,190 ---- X peek = -1; X } X getnl(); X! cputs(); X printf("\n"); X sflg = 1; X continue; X*************** X*** 195,201 **** X case ')': X paren--; X string[j++] = c; X! puts(); X if(getnl() == 1){ X peek = '\n'; X if(paren != 0)aflg = 1; X--- 198,204 ---- X case ')': X paren--; X string[j++] = c; X! cputs(); X if(getnl() == 1){ X peek = '\n'; X if(paren != 0)aflg = 1; X*************** X*** 211,217 **** X while((cc = getch()) != '\n')string[j++] = cc; X string[j++] = cc; X sflg = 0; X! puts(); X sflg = 1; X continue; X case '(': X--- 214,220 ---- X while((cc = getch()) != '\n')string[j++] = cc; X string[j++] = cc; X sflg = 0; X! cputs(); X sflg = 1; X continue; X case '(': X*************** X*** 229,235 **** X goto cont; X } X paren--; X! puts(); X if(getnl() == 1){ X peek = '\n'; X pflg[level]++; X--- 232,238 ---- X goto cont; X } X paren--; X! cputs(); X if(getnl() == 1){ X peek = '\n'; X pflg[level]++; X*************** X*** 239,245 **** X continue; X } X if(lookup(wif) == 1){ X! puts(); X stabs[clevel][iflev] = tabs; X spflg[clevel][iflev] = pflg[level]; X sind[clevel][iflev] = ind[level]; X--- 242,248 ---- X continue; X } X if(lookup(wif) == 1){ X! cputs(); X stabs[clevel][iflev] = tabs; X spflg[clevel][iflev] = pflg[level]; X sind[clevel][iflev] = ind[level]; X*************** X*** 263,269 **** X peek = -1; X return(lastchar); X } X! puts(){ X if(j > 0){ X if(sflg != 0){ X ptabs(); X--- 266,272 ---- X peek = -1; X return(lastchar); X } X! cputs(){ X if(j > 0){ X if(sflg != 0){ X ptabs(); X*************** X*** 311,317 **** X goto beg; X } X if(ch == '\n'){ X! puts(); X aflg = 1; X goto beg; X } X--- 314,320 ---- X goto beg; X } X if(ch == '\n'){ X! cputs(); X aflg = 1; X goto beg; X } X*************** X*** 355,361 **** X return; X break; X case '\n': X! puts(); X sflg = 1; X break; X } X--- 358,364 ---- X return; X break; X case '\n': X! cputs(); X sflg = 1; X break; X } X*** ./usr/src/usr.bin/tsort.c.old Wed Mar 11 14:13:39 1987 X--- ./usr/src/usr.bin/tsort.c Fri Dec 26 18:35:07 2025 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)tsort.c 4.2 (Berkeley) 10/20/82"; X /* topological sort X * input is sequence of pairs of items (blank-free strings) X * nonidentical pair is a directed edge in graph X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tsort.c 4.3 (2.11BSD) 2025/12/26"; X! #endif X! X /* topological sort X * input is sequence of pairs of items (blank-free strings) X * nonidentical pair is a directed edge in graph X*************** X*** 83,88 **** X--- 86,92 ---- X printf("%s\n",i->name); X i->live = DEAD; X } X+ return 0; X } X X /* is i present on j's predecessor list? X*** ./usr/src/usr.bin/basename.c.old Mon Feb 16 18:22:27 1987 X--- ./usr/src/usr.bin/basename.c Fri Dec 26 17:52:26 2025 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)basename.c 4.2 (Berkeley) 10/20/82"; X X #include X X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)basename.c 4.3 (2.11BSD) 2025/12/26"; X! #endif X X #include X X*************** X*** 26,31 **** X *p1 = '\0'; X } X output: X! puts(p2, stdout); X exit(0); X } X--- 28,33 ---- X *p1 = '\0'; X } X output: X! puts(p2); X exit(0); X } X*** ./usr/src/usr.bin/look.c.old Mon Feb 16 21:24:37 1987 X--- ./usr/src/usr.bin/look.c Fri Dec 26 21:21:37 2025 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)look.c 4.2 (Berkeley) 7/2/81"; X #include X #include X X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)look.c 4.3 (2.11BSD) 2025/12/26"; X! #endif X! X #include X #include X X*************** X*** 94,100 **** X return; X case -1: X case 0: X! puts(entry,stdout); X break; X case 1: X case 2: X--- 97,103 ---- X return; X case -1: X case 0: X! puts(entry); X break; X case 1: X case 2: X*************** X*** 107,113 **** X switch(compare(key,word)) { X case -1: X case 0: X! puts(entry,stdout); X continue; X } X break; X--- 110,116 ---- X switch(compare(key,word)) { X case -1: X case 0: X! puts(entry); X continue; X } X break; X*** ./usr/src/usr.bin/bc.y.old Sun Sep 25 21:48:44 2022 X--- ./usr/src/usr.bin/bc.y Sat Dec 27 10:01:46 2025 X*************** X*** 1,6 **** X %{ X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)bc.y 4.3.2 (2.11BSD) 2022/9/17"; X #endif X int *getout(); X %} X--- 1,6 ---- X %{ X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)bc.y 4.3.3 (2.11BSD) 2025/12/25"; X #endif X int *getout(); X %} X*************** X*** 499,505 **** X /* part of a bundle */ X while( *p != 0 ) routput( *p++ ); X } X! else printf( p ); /* character string */ X } X X output( p ) int *p; { X--- 499,505 ---- X /* part of a bundle */ X while( *p != 0 ) routput( *p++ ); X } X! else printf( (char *)p ); /* character string */ X } X X output( p ) int *p; { X*** ./usr/src/usr.bin/fgrep.c.old Tue Jan 11 00:53:58 1994 X--- ./usr/src/usr.bin/fgrep.c Sun Dec 28 06:51:34 2025 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)fgrep.c 4.3.1 (2.11BSD) 1/1/94"; X #endif X /* X * fgrep -- print all lines containing any of a set of keywords X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)fgrep.c 4.3.2 (2.11BSD) 2025/12/28"; X #endif X /* X * fgrep -- print all lines containing any of a set of keywords X*************** X*** 15,25 **** X #include X #include X X! #ifdef pdp11 X #define BLKSIZE 1024 X- #else X- #define BLKSIZE 8192 X- #endif X #define MAXSIZ 6000 X #define QSIZE 400 X struct words { X--- 15,22 ---- X #include X #include X X! X #define BLKSIZE 1024 X #define MAXSIZ 6000 X #define QSIZE 400 X struct words { X*************** X*** 155,161 **** X blksize = BLKSIZE; X buf = (char *)malloc(2*blksize); X if (buf == NULL) { X! fprintf(stderr, "egrep: no memory for %s\n", file); X retcode = 2; X return; X } X--- 152,158 ---- X blksize = BLKSIZE; X buf = (char *)malloc(2*blksize); X if (buf == NULL) { X! fprintf(stderr, "fgrep: no memory for %s\n", file); X retcode = 2; X return; X } X*** ./usr/src/usr.bin/egrep.y.old Mon Feb 16 18:55:25 1987 X--- ./usr/src/usr.bin/egrep.y Sun Dec 28 06:54:08 2025 X*************** X*** 13,19 **** X %left STAR PLUS QUEST X X %{ X! static char *sccsid = "@(#)egrep.y 4.4 (Berkeley) 5/29/85"; X #include X #include X #include X--- 13,21 ---- X %left STAR PLUS QUEST X X %{ X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)egrep.y 4.5 (2.11BSD) 2025/12/28"; X! #endif X #include X #include X #include X*** ./usr/src/usr.lib/libcurses/Makefile.old Sun Feb 13 12:45:42 2000 X--- ./usr/src/usr.lib/libcurses/Makefile Thu Nov 27 20:48:44 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2.1 (2.11BSD) 1999/10/24 X # X # curses package X # X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2.2 (2.11BSD) 2025/11/27 X # X # curses package X # X*************** X*** 20,27 **** X toucholap.o standout.o touchwin.o tstp.o unctrl.o X X CTAGS= ctags X! DEFS= -DNOSCCS X! CFLAGS= -O $(DEFS) X TAGSFILE=tags X X .c.o: X--- 20,26 ---- X toucholap.o standout.o touchwin.o tstp.o unctrl.o X X CTAGS= ctags X! CFLAGS= -O $(DEFS) -DNOSCCS X TAGSFILE=tags X X .c.o: X*************** X*** 41,50 **** X ranlib libcurses X X install: libcurses libcurses_p X! install -m 644 libcurses ${DESTDIR}/usr/lib/libcurses.a X! ranlib ${DESTDIR}/usr/lib/libcurses.a X! install -m 644 libcurses_p ${DESTDIR}/usr/lib/libcurses_p.a X! ranlib ${DESTDIR}/usr/lib/libcurses_p.a X X tags: X cwd=`pwd`; \ X--- 40,49 ---- X ranlib libcurses X X install: libcurses libcurses_p X! install -c -m 644 libcurses /usr/lib/libcurses.a X! ranlib /usr/lib/libcurses.a X! install -c -m 644 libcurses_p /usr/lib/libcurses_p.a X! ranlib /usr/lib/libcurses_p.a X X tags: X cwd=`pwd`; \ X*************** X*** 67,72 **** X X test.o: test.c X ${CC} ${CFLAGS} -c test.c X- X- ar: X- ar crv curses.ar ${CFILES} curses.h curses.ext Makefile X--- 66,68 ---- X*** ./usr/src/usr.lib/libcurses/printw.c.old Sat Jul 25 18:09:04 1987 X--- ./usr/src/usr.lib/libcurses/printw.c Fri Dec 26 18:36:19 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)printw.c 5.1 (Berkeley) 6/7/85"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)printw.c 5.2 (2.11BSD) 2025/12/26"; X #endif X X /* X*************** X*** 52,61 **** X FILE junk; X char buf[512]; X X! junk._flag = _IOWRT + _IOSTRG; X! junk._ptr = buf; X! junk._cnt = 32767; X! _doprnt(fmt, args, &junk); X putc('\0', &junk); X return waddstr(win, buf); X } X--- 52,61 ---- X FILE junk; X char buf[512]; X X! junk._flags = __SWR + __SSTR; X! junk._bf._base = junk._p = (unsigned char *)buf; X! junk._bf._size = junk._w = 32767; X! __svfprintf(&junk, fmt, (char *)args); X putc('\0', &junk); X return waddstr(win, buf); X } X*** ./usr/src/usr.lib/libcurses/scanw.c.old Sat Jul 25 18:09:17 1987 X--- ./usr/src/usr.lib/libcurses/scanw.c Fri Dec 26 18:36:40 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)scanw.c 5.1 (Berkeley) 6/7/85"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)scanw.c 5.2 (2.11BSD) 2025/12/26"; X #endif X X /* X*************** X*** 51,60 **** X char buf[100]; X FILE junk; X X! junk._flag = _IOREAD|_IOSTRG; X! junk._base = junk._ptr = buf; X if (wgetstr(win, buf) == ERR) X return ERR; X! junk._cnt = strlen(buf); X! return _doscan(&junk, fmt, args); X } X--- 51,60 ---- X char buf[100]; X FILE junk; X X! junk._flags = __SRD; X! junk._bf._base = junk._p = (unsigned char *)buf; X if (wgetstr(win, buf) == ERR) X return ERR; X! junk._bf._size = junk._r = strlen(buf); X! return __svfscanf(&junk, fmt, (char *)args); X } X*** ./usr/src/usr.lib/libF77/mkvers.c.old Wed Feb 18 03:09:28 1987 X--- ./usr/src/usr.lib/libF77/mkvers.c Sat Dec 27 08:55:29 2025 X*************** X*** 4,10 **** X * specifies the terms and conditions for redistribution. X */ X X! char id_mkvers[] = "@(#)mkvers.c 1.1 7/8/85"; X /* X * extract sccs id strings from source files X * first arg is lib name. X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! char id_mkvers[] = "@(#)mkvers.c 1.2 (2.11BSD) 2025/12/27"; X! #endif X! X /* X * extract sccs id strings from source files X * first arg is lib name. X*************** X*** 12,17 **** X--- 15,22 ---- X */ X X #include X+ #include X+ #include X X #define SCCS_ID "@(#)" X #define VERSION "Version.c" X*************** X*** 21,27 **** X { X char buf[256]; X char *s, *e; X- char *index(), *ctime(); X long t; X FILE *V, *fdopen(); X X--- 26,31 ---- X*************** X*** 54,61 **** X perror(*argv); X continue; X } X! while(gets(buf)) X { X s = buf; X while(s = index(s, '@')) X if (strncmp(s, SCCS_ID, 4) == 0) X--- 58,67 ---- X perror(*argv); X continue; X } X! while(fgets(buf, sizeof(buf), stdin)) X { X+ s = rindex(buf, '\n'); X+ if (s) *s = '\0'; X s = buf; X while(s = index(s, '@')) X if (strncmp(s, SCCS_ID, 4) == 0) SHAR_EOF fi if test -f 'OLD499F.patch' then echo shar: "will not over-write existing file 'OLD499F.patch'" else sed 's/^X//' << \SHAR_EOF > 'OLD499F.patch' X*** ./usr/src/usr.lib/libF77/Makefile.old Tue Dec 25 09:06:46 2018 X--- ./usr/src/usr.lib/libF77/Makefile Tue Dec 23 06:48:54 2025 X*************** X*** 3,30 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.5 (2.11BSD) 12/25/2018 X # X # Makefile for f77 math & startup lib, libF77.a X X CFLAGS = -O X! X! DEST = $(DESTDIR)/usr/lib X! X! DESTDIR = X! X! EXTHDRS = X! X! FFLAGS = -O X! X HDRS = opcodes.h X X LIBRARY = libF77.a X- X LIBRARY_P = libF77_p.a X X- MAKEFILE = Makefile X- X OBJS1 = abort_.o \ X besj0_.o \ X besj1_.o \ X--- 3,19 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6 (2.11BSD) 2025/11/27 X # X # Makefile for f77 math & startup lib, libF77.a X X CFLAGS = -O X! DEST = /usr/lib X HDRS = opcodes.h X X LIBRARY = libF77.a X LIBRARY_P = libF77_p.a X X OBJS1 = abort_.o \ X besj0_.o \ X besj1_.o \ X*************** X*** 155,166 **** X z_sin.o \ X z_sqrt.o X X- OLDDIR = $(DESTDIR)/usr/old/lib X- X- OPTIONS = -DUCBVAX X- X- PRINT = pr X- X SRCS = abort_.c \ X besj0_.c \ X besj1_.c \ X--- 144,149 ---- X*************** X*** 315,365 **** X mkvers: mkvers.c X @$(CC) mkvers.c -o mkvers X X! clean:; @rm -f $(OBJS1) $(OBJS2) profiled/*.o $(LIBRARY) $(LIBRARY_P) \ X! Version profiled/Version X X depend:; @echo Construct dependencies manually X X- extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF X- @cd profiled; -ar xo $(DEST)/$(LIBRARY_P); rm -f __.SYMDEF X- X index:; @ctags -wx $(HDRS) $(SRCS) X X install: $(LIBRARY) $(LIBRARY_P) X! install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY) X ranlib $(DEST)/$(LIBRARY) X! install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P) X ranlib $(DEST)/$(LIBRARY_P) X X- library: $(LIBRARY) $(LIBRARY_P) X- X- print:; @$(PRINT) $(HDRS) $(SRCS) X- X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X X- update: $(DEST)/$(LIBRARY) X- X- $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS) X- @-ar xo $(DEST)/$(LIBRARY) X- @cd profiled; -ar xo $(DEST)/$(LIBRARY_P) X- @make -f $(MAKEFILE) DEST=$(DEST) install clean X- X #trapov_.o \ X #trapov_.c \ X #trapov_.o: trapov_.c X! # cc -S $(OPTIONS) trapov_.c; X # (echo "g/.set L[0-9][0-9]*,0x0$$/s/0x0/0xf10/"; echo "x") \ X # | ex - trapov_.s; X # as trapov_.s -o trapov_.o; X # mv trapov_.o profiled/trapov_.o X # rm trapov_.s X! # cc -S $(OPTIONS) trapov_.c X # (echo "g/.set L[0-9][0-9]*,0x0$$/s/0x0/0xf10/"; echo "x") \ X # | ex - trapov_.s X # as trapov_.s -o trapov_.o X # rm trapov_.s X X! # 'Usef' is part of a kuldge to get around a bug in the C compiler. X # C (sec. 9.10 of C ref manual) should round the return value of X # functions of type float from double to float. It doesn't, so f77 X # truncates it losing a half bit of accuracy. See file Test_float X--- 298,333 ---- X mkvers: mkvers.c X @$(CC) mkvers.c -o mkvers X X! clean:; @rm -f $(OBJS1) $(OBJS2) Version mkvers profiled/* $(LIBRARY) $(LIBRARY_P) X X depend:; @echo Construct dependencies manually X X index:; @ctags -wx $(HDRS) $(SRCS) X X install: $(LIBRARY) $(LIBRARY_P) X! install -c -m 644 $(LIBRARY) $(DEST)/$(LIBRARY) X ranlib $(DEST)/$(LIBRARY) X! install -c -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P) X ranlib $(DEST)/$(LIBRARY_P) X X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X X #trapov_.o \ X #trapov_.c \ X #trapov_.o: trapov_.c X! # cc -S -DUCBVAX trapov_.c; X # (echo "g/.set L[0-9][0-9]*,0x0$$/s/0x0/0xf10/"; echo "x") \ X # | ex - trapov_.s; X # as trapov_.s -o trapov_.o; X # mv trapov_.o profiled/trapov_.o X # rm trapov_.s X! # cc -S -DUCBVAX trapov_.c X # (echo "g/.set L[0-9][0-9]*,0x0$$/s/0x0/0xf10/"; echo "x") \ X # | ex - trapov_.s X # as trapov_.s -o trapov_.o X # rm trapov_.s X X! # 'Usef' is part of a kludge to get around a bug in the C compiler. X # C (sec. 9.10 of C ref manual) should round the return value of X # functions of type float from double to float. It doesn't, so f77 X # truncates it losing a half bit of accuracy. See file Test_float X*************** X*** 388,391 **** X $(CC) $(CFLAGS) -c $*.c X -ld -x -r $*.o X mv a.out $*.o X- X--- 356,358 ---- X*** ./usr/src/usr.lib/libF77/Test_float.old Wed Feb 18 03:09:37 1987 X--- ./usr/src/usr.lib/libF77/Test_float Thu Nov 27 17:26:18 2025 X*************** X*** 1,4 **** X--- 1,6 ---- X #! /bin/csh -f X+ X+ # Test_float 2.0 (2.11BSD) 2025/11/27 X # X # this tests if C rounds the return value to single precision in X # functions of type float. (see sec. 9.10 of C ref. manual). X*************** X*** 49,52 **** X 'EOT' X pushd /tmp X f77 test_fltc.c test_fltf.f -o test_flt X! test_flt X--- 51,54 ---- X 'EOT' X pushd /tmp X f77 test_fltc.c test_fltf.f -o test_flt X! ./test_flt X*** ./usr/src/usr.lib/libI77/Makefile.old Mon Dec 26 01:45:06 1988 X--- ./usr/src/usr.lib/libI77/Makefile Tue Dec 23 06:24:34 2025 X*************** X*** 3,23 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.5 (Berkeley) 4/25/86 X # X X # Makefile for f77 I/O lib, libI77.a X X CFLAGS = -O X X- DEST = $(DESTDIR)/usr/lib X- X- DESTDIR = X- X- EXTHDRS = X- X- FFLAGS = -O X- X HDRS = f_errno.h \ X fio.h \ X fiodefs.h \ X--- 3,16 ---- 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/11/27 X # X X # Makefile for f77 I/O lib, libI77.a X X CFLAGS = -O X+ DEST = /usr/lib X X HDRS = f_errno.h \ X fio.h \ X fiodefs.h \ X*************** X*** 26,36 **** X nmlio.h X X LIBRARY = libI77.a X- X LIBRARY_P = libI77_p.a X X- MAKEFILE = Makefile X- X OBJS = backspace.o \ X c_dfe.o \ X c_iio.o \ X--- 19,26 ---- X*************** X*** 66,75 **** X wsli.o \ X wsnmle.o X X- OLDDIR = $(DESTDIR)/usr/old/lib X- X- PRINT = pr X- X SRCS = backspace.c \ X c_dfe.c \ X c_iio.c \ X--- 56,61 ---- X*************** X*** 130,163 **** X mkvers: mkvers.c X @$(CC) mkvers.c -o mkvers X X! clean:; @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P) libI66.o X X depend:; @echo Construct dependencies manually X X- extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF X- @cd profiled; -ar xo $(DEST)/$(LIBRARY_P); rm -f __.SYMDEF X- X index:; @ctags -wx $(HDRS) $(SRCS) X X install: $(LIBRARY) $(LIBRARY_P) libI66.o X! install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY) X ranlib $(DEST)/$(LIBRARY) X! install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P) X ranlib $(DEST)/$(LIBRARY_P) X! install -m 644 -c libI66.o $(DEST)/libI66.a X X- library: $(LIBRARY) $(LIBRARY_P) X- X- print:; @$(PRINT) $(HDRS) $(SRCS) X- X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X- X- update: $(DEST)/$(LIBRARY) X- X- $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS) X- @-ar xo $(DEST)/$(LIBRARY) X- @cd profiled; -ar xo $(DEST)/$(LIBRARY_P) X- @make -f $(MAKEFILE) DEST=$(DEST) install clean X X f_errlist.o: f_errlist.c X $(CC) $(CFLAGS) -c f_errlist.c X--- 116,135 ---- X mkvers: mkvers.c X @$(CC) mkvers.c -o mkvers X X! clean:; @rm -f $(OBJS) mkvers Version profiled/* $(LIBRARY) $(LIBRARY_P) libI66.o X X depend:; @echo Construct dependencies manually X X index:; @ctags -wx $(HDRS) $(SRCS) X X install: $(LIBRARY) $(LIBRARY_P) libI66.o X! install -c -m 644 $(LIBRARY) $(DEST)/$(LIBRARY) X ranlib $(DEST)/$(LIBRARY) X! install -c -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P) X ranlib $(DEST)/$(LIBRARY_P) X! install -c -m 644 -c libI66.o $(DEST)/libI66.a X X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X X f_errlist.o: f_errlist.c X $(CC) $(CFLAGS) -c f_errlist.c X*** ./usr/src/usr.lib/libI77/mkvers.c.old Wed Feb 18 03:09:46 1987 X--- ./usr/src/usr.lib/libI77/mkvers.c Sat Dec 27 08:56:31 2025 X*************** X*** 4,10 **** X * specifies the terms and conditions for redistribution. X */ X X! char id_mkvers[] = "@(#)mkvers.c 5.1 6/7/85"; X /* X * extract sccs id strings from source files X * first arg is lib name. X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! char id_mkvers[] = "@(#)mkvers.c 5.2 (2.11BSD) 2025/12/27"; X! #endif X! X /* X * extract sccs id strings from source files X * first arg is lib name. X*************** X*** 12,17 **** X--- 15,22 ---- X */ X X #include X+ #include X+ #include X X #define SCCS_ID "@(#)" X #define VERSION "Version.c" X*************** X*** 21,27 **** X { X char buf[256]; X char *s, *e; X- char *index(), *ctime(); X long t; X FILE *V, *fdopen(); X X--- 26,31 ---- X*************** X*** 54,61 **** X perror(*argv); X continue; X } X! while(gets(buf)) X { X s = buf; X while(s = index(s, '@')) X if (strncmp(s, SCCS_ID, 4) == 0) X--- 58,67 ---- X perror(*argv); X continue; X } X! while(fgets(buf, sizeof(buf), stdin)) X { X+ s = rindex(buf, '\n'); X+ if (s) *s = '\0'; X s = buf; X while(s = index(s, '@')) X if (strncmp(s, SCCS_ID, 4) == 0) X*** ./usr/src/usr.lib/libtermlib/Makefile.old Mon May 8 12:18:09 1989 X--- ./usr/src/usr.lib/libtermlib/Makefile Sun Nov 30 21:45:49 2025 X*************** X*** 3,12 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1 (Berkeley) 6/5/85 X # X! DEFS= -DNOSCCS X! CFLAGS= -O -DCM_N -DCM_GT -DCM_B -DCM_D $(DEFS) X LD = ld X SRCS= termcap.c tgoto.c tputs.c X OBJS= termcap.o tgoto.o tputs.o X--- 3,11 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/27 X # X! CFLAGS= -O -DCM_N -DCM_GT -DCM_B -DCM_D -DNOSCCS X LD = ld X SRCS= termcap.c tgoto.c tputs.c X OBJS= termcap.o tgoto.o tputs.o X*************** X*** 14,22 **** X X .c.o: X $(CC) $(CFLAGS) -c -p $*.c X! $(LD) $(LDFLAGS) -x -r -o profiled/$*.o $*.o X $(CC) $(CFLAGS) -c $*.c X! $(LD) $(LDFLAGS) -X -r $*.o X mv a.out $*.o X X termcap.a termcap_p.a: ${OBJS} X--- 13,21 ---- X X .c.o: X $(CC) $(CFLAGS) -c -p $*.c X! $(LD) -x -r -o profiled/$*.o $*.o X $(CC) $(CFLAGS) -c $*.c X! $(LD) -X -r $*.o X mv a.out $*.o X X termcap.a termcap_p.a: ${OBJS} X*************** X*** 24,37 **** X cd profiled; ar cr ../termcap_p.a ${OBJS} X X install: termcap.a termcap_p.a X! install -c termcap.a ${DESTDIR}/usr/lib/libtermcap.a X! -rm -f ${DESTDIR}/usr/lib/libtermlib.a X! ln ${DESTDIR}/usr/lib/libtermcap.a ${DESTDIR}/usr/lib/libtermlib.a X! ranlib ${DESTDIR}/usr/lib/libtermcap.a X! install -c termcap_p.a ${DESTDIR}/usr/lib/libtermcap_p.a X! -rm -f ${DESTDIR}/usr/lib/libtermlib_p.a X! ln ${DESTDIR}/usr/lib/libtermcap_p.a ${DESTDIR}/usr/lib/libtermlib_p.a X! ranlib ${DESTDIR}/usr/lib/libtermcap_p.a X X tags: X cwd=`pwd`; \ X--- 23,36 ---- X cd profiled; ar cr ../termcap_p.a ${OBJS} X X install: termcap.a termcap_p.a X! install -c -m 644 -o root termcap.a /usr/lib/libtermcap.a X! -rm -f /usr/lib/libtermlib.a X! ln /usr/lib/libtermcap.a /usr/lib/libtermlib.a X! ranlib /usr/lib/libtermcap.a X! install -c -m 644 -o root termcap_p.a /usr/lib/libtermcap_p.a X! -rm -f /usr/lib/libtermlib_p.a X! ln /usr/lib/libtermcap_p.a /usr/lib/libtermlib_p.a X! ranlib /usr/lib/libtermcap_p.a X X tags: X cwd=`pwd`; \ X*************** X*** 42,50 **** X clean: X -rm -f *.o profiled/*.o X -rm -f termcap.a termcap_p.a X- X- VGRIND= csh /usr/ucb/vgrind X- vgrind: X- cp /dev/null index X- ${VGRIND} -h "Termcap library" termcap.c tputs.c tgoto.c X- ${VGRIND} -h "Termcap library" -x index X--- 41,43 ---- X*** ./usr/src/usr.lib/libdbm/Makefile.old Mon May 8 11:26:16 1989 X--- ./usr/src/usr.lib/libdbm/Makefile Thu Nov 27 20:49:06 2025 X*************** X*** 3,12 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (Berkeley) 4/30/86 X # X! DEFS= -DNOSCCS X! CFLAGS=-O $(DEFS) X TAGSFILE=tags X X all: libdbm.a libdbm_p.a X--- 3,11 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4 (2.11BSD) 2025/11/27 X # X! CFLAGS=-O -DNOSCCS X TAGSFILE=tags X X all: libdbm.a libdbm_p.a X*************** X*** 22,31 **** X rm -f dbm.o X X install: all X! install -m 644 libdbm.a $(DESTDIR)/usr/lib X! install -m 644 libdbm_p.a $(DESTDIR)/usr/lib X! -cmp -s dbm.h $(DESTDIR)/usr/include/dbm.h || \ X! install -c -m 444 dbm.h $(DESTDIR)/usr/include X X tags: X ctags -a -f ${TAGSFILE} `pwd`/dbm.c X--- 21,30 ---- X rm -f dbm.o X X install: all X! install -c -m 644 libdbm.a /usr/lib X! install -c -m 644 libdbm_p.a /usr/lib X! -cmp -s dbm.h /usr/include/dbm.h || \ X! install -c -m 444 dbm.h /usr/include X X tags: X ctags -a -f ${TAGSFILE} `pwd`/dbm.c X*** ./usr/src/usr.lib/libln/Makefile.old Wed Feb 18 03:10:02 1987 X--- ./usr/src/usr.lib/libln/Makefile Fri Dec 26 21:22:44 2025 X*************** X*** 1,4 **** X! # @(#)Makefile 4.2 5/30/85 X # X CFLAGS = -O X SRCS= allprint.c main.c reject.c yyless.c yywrap.c X--- 1,4 ---- X! # @(#)Makefile 4.3 (2.11BSD) 2025/11/27 X # X CFLAGS = -O X SRCS= allprint.c main.c reject.c yyless.c yywrap.c X*************** X*** 11,20 **** X ar rc libln.a ${OBJS} X X install: all X! install libln.a ${DESTDIR}/usr/lib X! rm -f ${DESTDIR}/usr/lib/libl.a X! ln ${DESTDIR}/usr/lib/libln.a ${DESTDIR}/usr/lib/libl.a X! ranlib ${DESTDIR}/usr/lib/libln.a X X tags: X cwd=`pwd`; \ X--- 11,20 ---- X ar rc libln.a ${OBJS} X X install: all X! install -c -m 644 -o root libln.a /usr/lib X! rm -f /usr/lib/libl.a X! ln /usr/lib/libln.a /usr/lib/libl.a X! ranlib /usr/lib/libln.a X X tags: X cwd=`pwd`; \ X*** ./usr/src/usr.lib/libmp/Makefile.old Wed Feb 18 03:10:03 1987 X--- ./usr/src/usr.lib/libmp/Makefile Tue Nov 25 19:05:06 2025 X*************** X*** 1,6 **** X! # @(#)Makefile 4.2 5/30/85 X # X- DESTDIR= X CFLAGS=-O X SRCS= pow.c gcd.c msqrt.c mdiv.c mout.c mult.c madd.c util.c X OBJS= pow.o gcd.o msqrt.o mdiv.o mout.o mult.o madd.o util.o X--- 1,5 ---- X! # @(#)Makefile 4.3 (2.11BSD) 2025/11/25 X # X CFLAGS=-O X SRCS= pow.c gcd.c msqrt.c mdiv.c mout.c mult.c madd.c util.c X OBJS= pow.o gcd.o msqrt.o mdiv.o mout.o mult.o madd.o util.o X*************** X*** 10,17 **** X ar cr libmp.a $(OBJS) X X install: libmp.a X! install libmp.a ${DESTDIR}/usr/lib/libmp.a X! ranlib ${DESTDIR}/usr/lib/libmp.a X X tags: X cwd=`pwd`; \ X--- 9,16 ---- X ar cr libmp.a $(OBJS) X X install: libmp.a X! install -c -m 644 -o root libmp.a /usr/lib/libmp.a X! ranlib /usr/lib/libmp.a X X tags: X cwd=`pwd`; \ X*** ./usr/src/usr.lib/libplot/gigi/Makefile.old Sun Jan 2 02:15:08 1994 X--- ./usr/src/usr.lib/libplot/gigi/Makefile Thu Nov 27 20:32:41 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD GTE) 1/2/94 X # X # X CFLAGS= -O X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/27 X # X # X CFLAGS= -O X*** ./usr/src/usr.lib/libplot/aed/Makefile.old Sun Jan 2 02:14:12 1994 X--- ./usr/src/usr.lib/libplot/aed/Makefile Thu Nov 27 20:31:58 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD GTE) 1/2/94 X # X CFLAGS= -O X OBJS= arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \ X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X OBJS= arc.o box.o circle.o close.o cont.o dot.o erase.o label.o \ X*** ./usr/src/usr.lib/libplot/t4013/Makefile.old Sun Jan 2 02:18:56 1994 X--- ./usr/src/usr.lib/libplot/t4013/Makefile Thu Nov 27 20:33:28 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD GTE) 1/2/94 X # X CFLAGS= -O X OBJS= arc.o box.o circle.o close.o dot.o erase.o label.o \ X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X OBJS= arc.o box.o circle.o close.o dot.o erase.o label.o \ X*** ./usr/src/usr.lib/libplot/tf77/Makefile.old Sun Jan 2 02:19:59 1994 X--- ./usr/src/usr.lib/libplot/tf77/Makefile Thu Nov 27 20:33:39 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD GTE) 1/2/94 X # X CFLAGS= -O X X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X X*** ./usr/src/usr.lib/libplot/hp2648/Makefile.old Sun Jan 2 02:15:27 1994 X--- ./usr/src/usr.lib/libplot/hp2648/Makefile Thu Nov 27 20:32:58 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD GTE) 1/2/94 X # X # X CFLAGS= -O X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/27 X # X # X CFLAGS= -O X*** ./usr/src/usr.lib/libplot/dumb/Makefile.old Sun Jan 2 02:14:50 1994 X--- ./usr/src/usr.lib/libplot/dumb/Makefile Thu Nov 27 20:32:28 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD GTE) 1/2/94 X # X # X CFLAGS= -O X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/27 X # X # X CFLAGS= -O X*** ./usr/src/usr.lib/libplot/bitgraph/Makefile.old Sun Jan 2 02:14:33 1994 X--- ./usr/src/usr.lib/libplot/bitgraph/Makefile Thu Nov 27 20:32:15 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD GTE) 1/2/94 X # X # X CFLAGS= -O X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.3 (2.11BSD) 2025/11/27 X # X # X CFLAGS= -O X*** ./usr/src/usr.lib/libplot/imagen/Makefile.old Sun Jan 2 02:16:20 1994 X--- ./usr/src/usr.lib/libplot/imagen/Makefile Thu Nov 27 20:33:16 2025 X*************** X*** 2,8 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.5 (2.11BSD GTE) 1/2/94 X # X CFLAGS= -O X OBJS= arc.o box.o charset.o circle.o close.o cont.o dot.o \ X--- 2,8 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.6 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X OBJS= arc.o box.o charset.o circle.o close.o cont.o dot.o \ X*** ./usr/src/usr.lib/libplot/Makefile.old Wed Feb 18 03:10:38 1987 X--- ./usr/src/usr.lib/libplot/Makefile Fri Dec 26 21:23:51 2025 X*************** X*** 1,4 **** X! # Makefile 4.10 85/09/21 X # X ALL= libf77plot libplot lib300 lib300s lib4013 lib4014 lib450 libvt0 \ X libplotaed libplotbg libplotdumb libplotgigi libplot2648 \ X--- 1,4 ---- X! # Makefile 4.11 (2.11BSD) 2025/11/27 X # X ALL= libf77plot libplot lib300 lib300s lib4013 lib4014 lib450 libvt0 \ X libplotaed libplotbg libplotdumb libplotgigi libplot2648 \ X*************** X*** 57,64 **** X X install: all X for i in ${ALL}; do \ X! install -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \ X! ranlib ${DESTDIR}/usr/lib/$$i.a; \ X done X X clean: X--- 57,64 ---- X X install: all X for i in ${ALL}; do \ X! install -c -m 644 $$i /usr/lib/$$i.a; \ X! ranlib /usr/lib/$$i.a; \ X done X X clean: X*** ./usr/src/usr.lib/libident/Makefile.old Thu Mar 13 12:51:22 2025 X--- ./usr/src/usr.lib/libident/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,13 **** X # X # Place in the public domain 1996/12/13 - sms. X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/12/13 X # X X! DESTDIR= X! LIBDIR=$(DESTDIR)/usr/lib X! INCDIR=$(DESTDIR)/usr/include X! MANDIR=$(DESTDIR)/usr/man/cat3 X X CFLAGS=-O -DSIGRETURNTYPE=int -DHAVE_ANSIHEADERS X X--- 1,12 ---- X # X # Place in the public domain 1996/12/13 - sms. X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X X! LIBDIR=/usr/lib X! INCDIR=/usr/include X! MANDIR=/usr/man/cat3 X X CFLAGS=-O -DSIGRETURNTYPE=int -DHAVE_ANSIHEADERS X X*************** X*** 48,54 **** X install -c -m 644 libident_p.a $(LIBDIR)/libident_p.a X ranlib $(LIBDIR)/libident.a $(LIBDIR)/libident_p.a X install -c -m 444 ident.h $(INCDIR)/ident.h X! install -c -o bin -g bin -m 444 ident.0 $(MANDIR)/ident.0 X X clean: X -rm -f libident.a libident_p.a ident-tester lookup-tester *.o ident.0 X--- 47,53 ---- X install -c -m 644 libident_p.a $(LIBDIR)/libident_p.a X ranlib $(LIBDIR)/libident.a $(LIBDIR)/libident_p.a X install -c -m 444 ident.h $(INCDIR)/ident.h X! install -c -o root -g staff -m 444 ident.0 $(MANDIR)/ident.0 X X clean: X -rm -f libident.a libident_p.a ident-tester lookup-tester *.o ident.0 X*** ./usr/src/usr.lib/libom/Makefile.old Wed Jun 5 20:07:44 1985 X--- ./usr/src/usr.lib/libom/Makefile Tue Nov 25 19:02:58 2025 X*************** X*** 1,13 **** X! # @(#)Makefile 4.2 6/5/85 X # X- SCCSID = "@(#)Makefile 4.2 6/5/85" X X CFLAGS=-O X X- DESTDIR= X- X- INSTALL= install X- X SRCS= asin.c atan.c hypot.c jn.c j0.c j1.c pow.c gamma.c \ X log.c sin.c sqrt.c tan.c tanh.c sinh.c erf.c exp.c floor.c X X--- 1,8 ---- X! # @(#)Makefile 4.3 (2.11BSD) 2025/11/25 X # X X CFLAGS=-O X X SRCS= asin.c atan.c hypot.c jn.c j0.c j1.c pow.c gamma.c \ X log.c sin.c sqrt.c tan.c tanh.c sinh.c erf.c exp.c floor.c X X*************** X*** 29,38 **** X ar cru libom.a $(FILES) X X install: libom.a libom_p.a X! ${INSTALL} libom.a ${DESTDIR}/usr/lib X! ranlib ${DESTDIR}/usr/lib/libom.a X! ${INSTALL} libom_p.a ${DESTDIR}/usr/lib X! ranlib ${DESTDIR}/usr/lib/libom_p.a X X tags: X cwd=`pwd`; \ X--- 24,33 ---- X ar cru libom.a $(FILES) X X install: libom.a libom_p.a X! install -c -m 644 -o root libom.a /usr/lib X! ranlib /usr/lib/libom.a X! install -c -m 644 -o root libom_p.a /usr/lib X! ranlib /usr/lib/libom_p.a X X tags: X cwd=`pwd`; \ X*** ./usr/src/usr.lib/libvmf/makefile.old Thu Mar 13 12:51:22 2025 X--- ./usr/src/usr.lib/libvmf/makefile Mon Dec 8 13:50:23 2025 X*************** X*** 1,3 **** X--- 1,6 ---- X+ # X+ # @(#)Makefile 1.2 (2.11BSD) 2025/12/8 X+ # X OBJECTS = vmf.o X X all: genlib genlib_p vmf.0 X*************** X*** 14,20 **** X ranlib /usr/lib/libvmf.a X install -c -m 644 genlib_p /usr/lib/libvmf_p.a X ranlib /usr/lib/libvmf_p.a X! install -c -o bin -g bin -m 444 vmf.0 /usr/man/cat3/vmf.0 X X clean: X rm -f ${OBJECTS} profiled/${OBJECTS} genlib genlib_p vmf.0 X--- 17,23 ---- X ranlib /usr/lib/libvmf.a X install -c -m 644 genlib_p /usr/lib/libvmf_p.a X ranlib /usr/lib/libvmf_p.a X! install -c -o root -g staff -m 444 vmf.0 /usr/man/cat3/vmf.0 X X clean: X rm -f ${OBJECTS} profiled/${OBJECTS} genlib genlib_p vmf.0 X*** ./usr/src/usr.lib/lib2648/Makefile.old Sun Jan 28 02:52:30 1996 X--- ./usr/src/usr.lib/lib2648/Makefile Thu Nov 27 20:47:09 2025 X*************** X*** 3,12 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.1 (2.11BSD) 1996/1/27 X # X LIBDIR= /usr/lib X- DESTDIR= X CFLAGS= -DTRACE -O X VGRIND= csh /usr/ucb/vgrind X SRCS= 2648.h bit.h \ X--- 3,11 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 2025/11/25 X # X LIBDIR= /usr/lib X CFLAGS= -DTRACE -O X VGRIND= csh /usr/ucb/vgrind X SRCS= 2648.h bit.h \ X*************** X*** 29,36 **** X ar cr lib2648.a `lorder ${OBJS} | tsort` X X install: lib2648.a X! install -m 644 lib2648.a ${DESTDIR}${LIBDIR}/lib2648.a X! ranlib ${DESTDIR}${LIBDIR}/lib2648.a X X tags: /tmp X ctags ${SRCS} X--- 28,35 ---- X ar cr lib2648.a `lorder ${OBJS} | tsort` X X install: lib2648.a X! install -c -m 644 lib2648.a ${LIBDIR}/lib2648.a X! ranlib ${LIBDIR}/lib2648.a X X tags: /tmp X ctags ${SRCS} X*** ./usr/src/usr.lib/liby/Makefile.old Sat Feb 21 20:27:46 1987 X--- ./usr/src/usr.lib/liby/Makefile Sun Nov 30 21:46:01 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1 (Berkeley) 8/9/85 X # X # Make a Yacc library X # X- DESTDIR= X CFLAGS=-O X X liby.a: libmai.o libzer.o X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/25 X # X # Make a Yacc library X # X CFLAGS=-O X X liby.a: libmai.o libzer.o X*************** X*** 15,22 **** X ranlib liby.a X X install: liby.a X! install liby.a ${DESTDIR}/usr/lib/liby.a X! ranlib ${DESTDIR}/usr/lib/liby.a X X clean: X rm -f *.o *.a errs X--- 14,21 ---- X ranlib liby.a X X install: liby.a X! install -c -m 644 -o root liby.a /usr/lib/liby.a X! ranlib /usr/lib/liby.a X X clean: X rm -f *.o *.a errs X*** ./usr/src/usr.lib/libU77/Makefile.old Mon Dec 26 01:48:57 1988 X--- ./usr/src/usr.lib/libU77/Makefile Tue Dec 23 06:23:34 2025 X*************** X*** 3,28 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1 (Berkeley) 6/7/85 X # X # Makefile for f77 system lib, libU77.a X X CFLAGS = -O X X- DEST = $(DESTDIR)/usr/lib X- X- DESTDIR = X- X- EXTHDRS = X- X- HDRS = X- X LIBRARY = libU77.a X- X LIBRARY_P = libU77_p.a X X- MAKEFILE = Makefile X- X OBJS = access_.o \ X alarm_.o \ X chdir_.o \ X--- 3,18 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.2 (2.11BSD) 2025/11/27 X # X # Makefile for f77 system lib, libU77.a X X CFLAGS = -O X+ DEST = /usr/lib X X LIBRARY = libU77.a X LIBRARY_P = libU77_p.a X X OBJS = access_.o \ X alarm_.o \ X chdir_.o \ X*************** X*** 75,84 **** X unlink_.o \ X wait_.o X X- OLDDIR = $(DESTDIR)/usr/old/lib X- X- PRINT = pr X- X SRCS = access_.c \ X alarm_.c \ X chdir_.c \ X--- 65,70 ---- X*************** X*** 156,188 **** X mkvers: mkvers.c X @$(CC) mkvers.c -o mkvers X X! clean:; @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P) X X depend:; @echo Construct dependencies manually X X! extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF X! @cd profiled; -ar xo $(DEST)/$(LIBRARY_P); rm -f __.SYMDEF X X- index:; @ctags -wx $(HDRS) $(SRCS) X- X install: $(LIBRARY) $(LIBRARY_P) X! install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY) X ranlib $(DEST)/$(LIBRARY) X! install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P) X ranlib $(DEST)/$(LIBRARY_P) X X- library: $(LIBRARY) $(LIBRARY_P) X- X- print:; @$(PRINT) $(HDRS) $(SRCS) X- X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X X- update: $(DEST)/$(LIBRARY) X- X- $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS) X- @-ar xo $(DEST)/$(LIBRARY) X- @cd profiled; -ar xo $(DEST)/$(LIBRARY_P) X- @make -f $(MAKEFILE) DEST=$(DEST) install clean X .c.o: X $(CC) -p $(CFLAGS) -c $*.c X -ld -x -r $*.o X--- 142,161 ---- X mkvers: mkvers.c X @$(CC) mkvers.c -o mkvers X X! clean:; @rm -f $(OBJS) Version mkvers profiled/* $(LIBRARY) $(LIBRARY_P) X X depend:; @echo Construct dependencies manually X X! index:; @ctags -wx $(SRCS) X X install: $(LIBRARY) $(LIBRARY_P) X! install -c -m 644 $(LIBRARY) $(DEST)/$(LIBRARY) X ranlib $(DEST)/$(LIBRARY) X! install -c -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P) X ranlib $(DEST)/$(LIBRARY_P) X X tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) X X .c.o: X $(CC) -p $(CFLAGS) -c $*.c X -ld -x -r $*.o X*************** X*** 192,200 **** X mv a.out $*.o X X .f.o: X! $(FC) -p $(FFLAGS) -c $*.f X -ld -x -r $*.o X mv a.out profiled/$*.o X! $(FC) $(FFLAGS) -c $*.f X -ld -x -r $*.o X mv a.out $*.o X--- 165,173 ---- X mv a.out $*.o X X .f.o: X! $(FC) -p -O -c $*.f X -ld -x -r $*.o X mv a.out profiled/$*.o X! $(FC) -O -c $*.f X -ld -x -r $*.o X mv a.out $*.o X*** ./usr/src/usr.lib/libU77/mkvers.c.old Wed Feb 18 03:09:59 1987 X--- ./usr/src/usr.lib/libU77/mkvers.c Sat Dec 27 08:58:34 2025 X*************** X*** 4,10 **** X * specifies the terms and conditions for redistribution. X */ X X! char id_mkvers[] = "@(#)mkvers.c 5.1 6/7/85"; X /* X * extract sccs id strings from source files X * first arg is lib name. X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! char id_mkvers[] = "@(#)mkvers.c 5.2 (2.11BSD) 2025/12/27"; X! #endif X! X /* X * extract sccs id strings from source files X * first arg is lib name. X*************** X*** 12,17 **** X--- 15,22 ---- X */ X X #include X+ #include X+ #include X X #define SCCS_ID "@(#)" X #define VERSION "Version.c" X*************** X*** 21,27 **** X { X char buf[256]; X char *s, *e; X- char *index(), *ctime(); X long t; X FILE *V, *fdopen(); X X--- 26,31 ---- X*************** X*** 54,61 **** X perror(*argv); X continue; X } X! while(gets(buf)) X { X s = buf; X while(s = index(s, '@')) X if (strncmp(s, SCCS_ID, 4) == 0) X--- 58,67 ---- X perror(*argv); X continue; X } X! while(fgets(buf, sizeof(buf), stdin)) X { X+ s = rindex(buf, '\n'); X+ if (s) *s = '\0'; X s = buf; X while(s = index(s, '@')) X if (strncmp(s, SCCS_ID, 4) == 0) X*** ./usr/src/usr.lib/libutil/Makefile.old Thu Apr 13 22:05:03 1995 X--- ./usr/src/usr.lib/libutil/Makefile Mon Dec 8 13:47:06 2025 X*************** X*** 14,23 **** X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.1 (2.11BSD GTE) 1995/04/13 X! # X X! CFLAGS= -O ${DEFS} X SRCS= login.c logout.c logwtmp.c dkcksum.c X OBJS= login.o logout.o logwtmp.o dkcksum.o X X--- 14,22 ---- X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.2 (2.11BSD) 2025/11/27 X X! CFLAGS= -O X SRCS= login.c logout.c logwtmp.c dkcksum.c X OBJS= login.o logout.o logwtmp.o dkcksum.o X X*************** X*** 48,57 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -o bin -g bin -m 644 libutil.a ${DESTDIR}/usr/lib X! ranlib -t ${DESTDIR}/usr/lib/libutil.a X! install -o bin -g bin -m 644 libutil_p.a ${DESTDIR}/usr/lib X! ranlib -t ${DESTDIR}/usr/lib/libutil_p.a X X tags: X ctags ${SRCS} X--- 47,56 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 644 libutil.a /usr/lib X! ranlib -t /usr/lib/libutil.a X! install -c -o root -g staff -m 644 libutil_p.a /usr/lib X! ranlib -t /usr/lib/libutil_p.a X X tags: X ctags ${SRCS} X*** ./usr/src/usr.lib/liberrlst/Makefile.old Wed Mar 20 22:35:13 1996 X--- ./usr/src/usr.lib/liberrlst/Makefile Thu Nov 27 20:49:28 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/3/20 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/3/20 X # X! DEFS= X! CFLAGS=-O $(DEFS) X TAGSFILE=tags X X all: liberrlst.a liberrlst_p.a X--- 1,9 ---- X # X # Public Domain. 1996/3/20 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X! CFLAGS=-O X TAGSFILE=tags X X all: liberrlst.a liberrlst_p.a X*************** X*** 20,27 **** X rm -f errlst.o X X install: all X! install -m 644 liberrlst.a $(DESTDIR)/usr/lib X! install -m 644 liberrlst_p.a $(DESTDIR)/usr/lib X X tags: X ctags -a -f ${TAGSFILE} `pwd`/errlst.c X--- 19,26 ---- X rm -f errlst.o X X install: all X! install -c -m 644 liberrlst.a /usr/lib X! install -c -m 644 liberrlst_p.a /usr/lib X X tags: X ctags -a -f ${TAGSFILE} `pwd`/errlst.c X*** ./usr/src/usr.lib/libstubs/Makefile.old Tue Jun 25 22:24:21 1996 X--- ./usr/src/usr.lib/libstubs/Makefile Thu Nov 27 20:46:12 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/6/25 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/6/25 X # X! DEFS= X! CFLAGS=-O $(DEFS) X TAGSFILE=tags X X all: libstubs.a libstubs_p.a X--- 1,9 ---- X # X # Public Domain. 1996/6/25 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X! CFLAGS=-O X TAGSFILE=tags X X all: libstubs.a libstubs_p.a X*************** X*** 20,27 **** X rm -f stubs.o X X install: all X! install -m 644 libstubs.a $(DESTDIR)/usr/lib X! install -m 644 libstubs_p.a $(DESTDIR)/usr/lib X X tags: X ctags -a -f ${TAGSFILE} `pwd`/stubs.c X--- 19,26 ---- X rm -f stubs.o X X install: all X! install -c -m 644 libstubs.a /usr/lib X! install -c -m 644 libstubs_p.a /usr/lib X X tags: X ctags -a -f ${TAGSFILE} `pwd`/stubs.c X*** ./usr/src/usr.lib/libstubs/stubs.c.old Tue Jun 25 22:31:56 1996 X--- ./usr/src/usr.lib/libstubs/stubs.c Fri Dec 26 18:39:50 2025 X*************** X*** 1,7 **** X #include X #include X #include X- #include X X #include X #include X--- 1,10 ---- X+ #if !defined(lint) && !defined(NOSCCS) X+ static char sccsid[] = "@(#)stubs.c 1.1 (2.11BSD) 2025/12/26"; X+ #endif X+ X #include X #include X #include X X #include X #include X*** ./usr/src/usr.lib/Makefile.old Sat Jan 4 22:13:50 2020 X--- ./usr/src/usr.lib/Makefile Sun Nov 30 21:59:13 2025 X*************** X*** 3,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.12.4 (2.11BSD) 2020/1/4 X # X- DESTDIR= X CFLAGS= -O X- SEPFLAG= -i X TAGSFILE=tags X X # Subdirectories whose routines are included in the making of the X--- 3,11 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.12.5 (2.11BSD) 2025/11/29 X # X CFLAGS= -O X TAGSFILE=tags X X # Subdirectories whose routines are included in the making of the X*************** X*** 16,45 **** X # X TAGSDIR=libcurses libdbm libln libmp libtermlib libutil liberrlst X X! # Programs that live in subdirectories, and have makefiles of their own. X! # X! # 2.11BSD XXX - Libpc isn't important till someone - if ever - ports X! # the 4.3BSD version of ucb/pascal. X! # X SUBDIR= lib2648 libF77 libI77 libU77 libcurses libdbm libln \ X libom libmp libplot libtermlib liby libutil libvmf \ X liberrlst libident libstubs X X- # Shell scripts that need only be installed and are never removed. X- # X- X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X! rm -f ${DESTDIR}/usr/lib/libm.a X! ln ${DESTDIR}/usr/lib/libom.a ${DESTDIR}/usr/lib/libm.a X X tags: X -for i in ${TAGSDIR}; do \ X--- 14,38 ---- X # X TAGSDIR=libcurses libdbm libln libmp libtermlib libutil liberrlst X X! # Programs that live in subdirectories and have makefiles of their own. X! X SUBDIR= lib2648 libF77 libI77 libU77 libcurses libdbm libln \ X libom libmp libplot libtermlib liby libutil libvmf \ X liberrlst libident libstubs X X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X! rm -f /usr/lib/libm.a /usr/lib/libm_p.a X! ln /usr/lib/libom.a /usr/lib/libm.a X! ln /usr/lib/libom_p.a /usr/lib/libm_p.a X X tags: X -for i in ${TAGSDIR}; do \ X*** ./usr/src/usr.sbin/lpr/filters/Makefile.old Sun Oct 27 21:47:33 1996 X--- ./usr/src/usr.sbin/lpr/filters/Makefile Tue Dec 9 14:54:55 2025 X*************** X*** 3,23 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.1 (2.11BSD) 1996/10/24 X # X- # X- # makefile for line printer filters and associated programs X- # X X- DESTDIR= X CFLAGS= -O X! SEPFLAG=-i X LIBEXECDIR= /usr/libexec/lpr X CXREF= /usr/ucb/ctags -x X! # X # vpsf, fcvt and vdmp were excluded on the PDP because they require more than X # 64K of bss and I don't have time to figure out how it works. X! # X SRCS= lpf.c necf.c \ X chrtab.c rvsort.c rvcat.c vsort.c vcat.c vpf.c vpsf.c vdmp.c vpltdmp.c \ X vplotf.c vfontinfo.c vwidth.c vfw.c fcvt.c rotate.c rotprt.c X--- 3,19 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 2025/11/25 X # X X CFLAGS= -O X! LDFLAGS=-i X LIBEXECDIR= /usr/libexec/lpr X CXREF= /usr/ucb/ctags -x X! X # vpsf, fcvt and vdmp were excluded on the PDP because they require more than X # 64K of bss and I don't have time to figure out how it works. X! X SRCS= lpf.c necf.c \ X chrtab.c rvsort.c rvcat.c vsort.c vcat.c vpf.c vpsf.c vdmp.c vpltdmp.c \ X vplotf.c vfontinfo.c vwidth.c vfw.c fcvt.c rotate.c rotprt.c X*************** X*** 32,111 **** X varian: ${VARIAN} X X lpf: lpf.c X! ${CC} -o lpf ${CFLAGS} ${SEPFLAG} lpf.c X X necf: necf.c X! ${CC} -o necf ${CFLAGS} ${SEPFLAG} necf.c X X rvsort: rvsort.c X! ${CC} -o rvsort ${CFLAGS} ${SEPFLAG} rvsort.c X X rvcat: rvcat.c X! ${CC} -o rvcat ${CFLAGS} ${SEPFLAG} rvcat.c X X vsort: vsort.c X! ${CC} -o vsort ${CFLAGS} ${SEPFLAG} vsort.c X X vcat: vcat.c X! ${CC} -o vcat ${CFLAGS} ${SEPFLAG} vcat.c X X vpf: vpf.c X! ${CC} -o vpf ${CFLAGS} ${SEPFLAG} vpf.c X X vpsf: vpsf.c X! ${CC} -o vpsf ${CFLAGS} ${SEPFLAG} vpsf.c X X vdmp: vdmp.c X! ${CC} -o vdmp ${CFLAGS} ${SEPFLAG} vdmp.c X X vpltdmp: vpltdmp.c X! ${CC} -o vpltdmp ${CFLAGS} ${SEPFLAG} vpltdmp.c X X vplotf: vplotf.c chrtab.o X! ${CC} -o vplotf ${CFLAGS} ${SEPFLAG} vplotf.c chrtab.o X X vfontinfo: vfontinfo.c X! ${CC} -o vfontinfo ${CFLAGS} ${SEPFLAG} vfontinfo.c X X vwidth: vwidth.c X! ${CC} -o vwidth ${CFLAGS} ${SEPFLAG} vwidth.c X X vfw: vfw.c X! ${CC} -o vfw ${CFLAGS} ${SEPFLAG} vfw.c X X fcvt: fcvt.c X! ${CC} -o fcvt ${CFLAGS} ${SEPFLAG} fcvt.c X X rotate: rotate.c X! ${CC} -o rotate ${CFLAGS} ${SEPFLAG} rotate.c X X rotprt: rotprt.c X! ${CC} -o rotprt ${CFLAGS} ${SEPFLAG} rotprt.c X X install: printer X! -mkdir -p ${DESTDIR}/${LIBEXECDIR} X! install -s lpf ${DESTDIR}/${LIBEXECDIR}/lpf X! install -s necf ${DESTDIR}/${LIBEXECDIR}/necf X X installv: varian X! -mkdir -p ${DESTDIR}/${LIBEXECDIR} X! install -s vfontinfo ${DESTDIR}/${LIBEXECDIR}/vfontinfo X! install -s vwidth ${DESTDIR}/${LIBEXECDIR}/vwidth X! install -s vfw ${DESTDIR}/${LIBEXECDIR}/vfw X! install -s rotate ${DESTDIR}/${LIBEXECDIR}/rotate X! install -s rotprt ${DESTDIR}/${LIBEXECDIR}/rotprt X! install -s rvsort ${DESTDIR}/${LIBEXECDIR}/rvsort X! install -s rvcat ${DESTDIR}/${LIBEXECDIR}/rvcat X! install -s vsort ${DESTDIR}/${LIBEXECDIR}/vsort X! install -s vcat ${DESTDIR}/${LIBEXECDIR}/vcat X! install -s vpf ${DESTDIR}/${LIBEXECDIR}/vpf X! ln ${DESTDIR}/${LIBEXECDIR}/vpf ${DESTDIR}/${LIBEXECDIR}/vpfW X! install -s vdmp ${DESTDIR}/${LIBEXECDIR}/vdmp X! install -s vpltdmp ${DESTDIR}/${LIBEXECDIR}/vpltdmp X! install -s vplotf ${DESTDIR}/${LIBEXECDIR}/vplotf X! X! # install -s fcvt ${DESTDIR}/${LIBEXECDIR}/fcvt X! # install -s vpsf ${DESTDIR}/${LIBEXECDIR}/vpsf X X clean: X rm -f ${PRINTER} ${VARIAN} *.o X--- 28,106 ---- X varian: ${VARIAN} X X lpf: lpf.c X! ${CC} -o lpf ${CFLAGS} ${LDFLAGS} lpf.c X X necf: necf.c X! ${CC} -o necf ${CFLAGS} ${LDFLAGS} necf.c X X rvsort: rvsort.c X! ${CC} -o rvsort ${CFLAGS} ${LDFLAGS} rvsort.c X X rvcat: rvcat.c X! ${CC} -o rvcat ${CFLAGS} ${LDFLAGS} rvcat.c X X vsort: vsort.c X! ${CC} -o vsort ${CFLAGS} ${LDFLAGS} vsort.c X X vcat: vcat.c X! ${CC} -o vcat ${CFLAGS} ${LDFLAGS} vcat.c X X vpf: vpf.c X! ${CC} -o vpf ${CFLAGS} ${LDFLAGS} vpf.c X X vpsf: vpsf.c X! ${CC} -o vpsf ${CFLAGS} ${LDFLAGS} vpsf.c X X vdmp: vdmp.c X! ${CC} -o vdmp ${CFLAGS} ${LDFLAGS} vdmp.c X X vpltdmp: vpltdmp.c X! ${CC} -o vpltdmp ${CFLAGS} ${LDFLAGS} vpltdmp.c X X vplotf: vplotf.c chrtab.o X! ${CC} -o vplotf ${CFLAGS} ${LDFLAGS} vplotf.c chrtab.o X X vfontinfo: vfontinfo.c X! ${CC} -o vfontinfo ${CFLAGS} ${LDFLAGS} vfontinfo.c X X vwidth: vwidth.c X! ${CC} -o vwidth ${CFLAGS} ${LDFLAGS} vwidth.c X X vfw: vfw.c X! ${CC} -o vfw ${CFLAGS} ${LDFLAGS} vfw.c X X fcvt: fcvt.c X! ${CC} -o fcvt ${CFLAGS} ${LDFLAGS} fcvt.c X X rotate: rotate.c X! ${CC} -o rotate ${CFLAGS} ${LDFLAGS} rotate.c X X rotprt: rotprt.c X! ${CC} -o rotprt ${CFLAGS} ${LDFLAGS} rotprt.c X X install: printer X! -mkdir -p ${LIBEXECDIR} X! install -c -s -m 755 lpf ${LIBEXECDIR}/lpf X! install -c -s -m 755 necf ${LIBEXECDIR}/necf X X installv: varian X! -mkdir -p ${LIBEXECDIR} X! install -c -s -m 755 vfontinfo ${LIBEXECDIR}/vfontinfo X! install -c -s -m 755 vwidth ${LIBEXECDIR}/vwidth X! install -c -s -m 755 vfw ${LIBEXECDIR}/vfw X! install -c -s -m 755 rotate ${LIBEXECDIR}/rotate X! install -c -s -m 755 rotprt ${LIBEXECDIR}/rotprt X! install -c -s -m 755 rvsort ${LIBEXECDIR}/rvsort X! install -c -s -m 755 rvcat ${LIBEXECDIR}/rvcat X! install -c -s -m 755 vsort ${LIBEXECDIR}/vsort X! install -c -s -m 755 vcat ${LIBEXECDIR}/vcat X! install -c -s -m 755 vpf ${LIBEXECDIR}/vpf X! ln ${LIBEXECDIR}/vpf ${LIBEXECDIR}/vpfW X! install -c -s -m 755 vpltdmp ${LIBEXECDIR}/vpltdmp X! install -c -s -m 755 vplotf ${LIBEXECDIR}/vplotf X! # install -c -s -m 755 vdmp ${LIBEXECDIR}/vdmp X! # install -c -s -m 755 fcvt ${LIBEXECDIR}/fcvt X! # install -c -s -m 755 vpsf ${LIBEXECDIR}/vpsf X X clean: X rm -f ${PRINTER} ${VARIAN} *.o X*** ./usr/src/usr.sbin/lpr/filters/rvsort.c.old Wed Feb 18 03:10:40 1987 X--- ./usr/src/usr.sbin/lpr/filters/rvsort.c Fri Dec 26 21:25:28 2025 X*************** X*** 4,22 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)rvsort.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Sort troff output for versatec to reduce amount of reverse leading X */ X X! # include X X #define NULL 0 X X- double atof(); X char *calloc(); X X FILE *in,*out; X--- 4,22 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rvsort.c 5.2 (2.11BSD) 2025/12/26"; X! #endif X X /* X * Sort troff output for versatec to reduce amount of reverse leading X */ X X! #include X! #include X X #define NULL 0 X X char *calloc(); X X FILE *in,*out; X*************** X*** 251,261 **** X return(c); X } X return(getc(in)); X- } X- X- ungetc(c) X- { X- peekc = c; X } X X error(s) X--- 251,256 ---- X*** ./usr/src/usr.sbin/lpr/filters/vsort.c.old Wed Feb 18 03:10:41 1987 X--- ./usr/src/usr.sbin/lpr/filters/vsort.c Fri Dec 26 18:42:06 2025 X*************** X*** 4,22 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vsort.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Sort troff output for versatec to reduce amount of reverse leading X */ X X! # include X X #define NULL 0 X X- double atof(); X char *calloc(); X X FILE *in,*out; X--- 4,22 ---- X * specifies the terms and conditions for redistribution. 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 * Sort troff output for versatec to reduce amount of reverse leading X */ X X! #include X! #include X X #define NULL 0 X X char *calloc(); X X FILE *in,*out; X*************** X*** 309,325 **** X return(getc(in)); X } X X- ungetc(c) { X- peekc = c; X- } X- X- X error(s) X char *s; X { X X fflush(out); X! fprintf(stderr, stderr, "vsort: %s\n", s); X } X X crail(nrail) X--- 309,320 ---- X return(getc(in)); X } X X error(s) X char *s; X { X X fflush(out); X! fprintf(stderr, "vsort: %s\n", s); X } X X crail(nrail) X*** ./usr/src/usr.sbin/lpr/Makefile.old Mon Nov 18 00:53:11 1996 X--- ./usr/src/usr.sbin/lpr/Makefile Fri Nov 28 13:25:23 2025 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.3.2 (2.11BSD) 1996/11/17 X # X # makefile for line printer spooling system 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.3.3 (2.11BSD) 2025/11/25 X # X # makefile for line printer spooling system X # X*************** X*** 13,19 **** X # SPGRP the group id of the spooling programs X # X CFLAGS=-O X! SEPFLAG=-i X SBINDIR=/usr/sbin X BINDIR=/usr/bin X SPOOLDIR=/usr/spool/lpd X--- 13,19 ---- X # SPGRP the group id of the spooling programs X # X CFLAGS=-O X! LDFLAGS=-i X SBINDIR=/usr/sbin X BINDIR=/usr/bin X SPOOLDIR=/usr/spool/lpd X*************** X*** 21,27 **** X ROOT=root X DAEMON=daemon X SPGRP=daemon X- DESTDIR= X SRCS= lpd.c lpr.c lpq.c lprm.c pac.c lpd.c cmds.c cmdtab.c \ X printjob.c recvjob.c displayq.c rmjob.c \ X startdaemon.c common.c printcap.c lpdchar.c X--- 21,26 ---- X*************** X*** 31,58 **** X X lpd: lpd.o printjob.o recvjob.o displayq.o rmjob.o X lpd: startdaemon.o lpdchar.o common.o printcap.o X! ${CC} ${SEPFLAG} -o lpd lpd.o printjob.o recvjob.o displayq.o rmjob.o \ X startdaemon.o lpdchar.o common.o printcap.o X X lpr: lpr.o startdaemon.o printcap.o X! ${CC} ${SEPFLAG} -o lpr lpr.o startdaemon.o printcap.o X X lpq: lpq.o displayq.o common.o printcap.o X! ${CC} ${SEPFLAG} -o lpq lpq.o displayq.o common.o printcap.o -ltermcap X X lprm: lprm.o rmjob.o startdaemon.o common.o printcap.o X! ${CC} ${SEPFLAG} -o lprm lprm.o rmjob.o startdaemon.o common.o \ X printcap.o X X lpc: lpc.o cmds.o cmdtab.o startdaemon.o common.o printcap.o X! ${CC} ${SEPFLAG} -o lpc lpc.o cmds.o cmdtab.o startdaemon.o common.o \ X printcap.o X X lptest: lptest.c X! ${CC} ${CFLAGS} ${SEPFLAG} -o lptest lptest.c X X pac: pac.o printcap.o X! ${CC} ${SEPFLAG} -o pac pac.o printcap.o X X lpd.o lpr.o lpq.o lprm.o pac.o: lp.h lp.local.h X recvjob.o printjob.o displayq.o rmjob.o common.o: lp.h lp.local.h X--- 30,57 ---- X X lpd: lpd.o printjob.o recvjob.o displayq.o rmjob.o X lpd: startdaemon.o lpdchar.o common.o printcap.o X! ${CC} ${LDFLAGS} -o lpd lpd.o printjob.o recvjob.o displayq.o rmjob.o \ X startdaemon.o lpdchar.o common.o printcap.o X X lpr: lpr.o startdaemon.o printcap.o X! ${CC} ${LDFLAGS} -o lpr lpr.o startdaemon.o printcap.o X X lpq: lpq.o displayq.o common.o printcap.o X! ${CC} ${LDFLAGS} -o lpq lpq.o displayq.o common.o printcap.o -ltermcap X X lprm: lprm.o rmjob.o startdaemon.o common.o printcap.o X! ${CC} ${LDFLAGS} -o lprm lprm.o rmjob.o startdaemon.o common.o \ X printcap.o X X lpc: lpc.o cmds.o cmdtab.o startdaemon.o common.o printcap.o X! ${CC} ${LDFLAGS} -o lpc lpc.o cmds.o cmdtab.o startdaemon.o common.o \ X printcap.o X X lptest: lptest.c X! ${CC} ${CFLAGS} ${LDFLAGS} -o lptest lptest.c X X pac: pac.o printcap.o X! ${CC} ${LDFLAGS} -o pac pac.o printcap.o X X lpd.o lpr.o lpq.o lprm.o pac.o: lp.h lp.local.h X recvjob.o printjob.o displayq.o rmjob.o common.o: lp.h lp.local.h X*************** X*** 64,86 **** X cd filters; make ${MFLAGS} X X install: all X! install -s -o ${ROOT} -g ${SPGRP} -m 6711 lpd ${DESTDIR}/${SBINDIR}/lpd X! install -s -o ${ROOT} -g ${SPGRP} -m 6711 lpr ${DESTDIR}/${BINDIR}/lpr X! install -s -o ${ROOT} -g ${SPGRP} -m 6711 lpq ${DESTDIR}/${BINDIR}/lpq X! install -s -o ${ROOT} -g ${SPGRP} -m 6711 lprm ${DESTDIR}/${BINDIR}/lprm X! install -s -g ${SPGRP} -m 2711 lpc ${DESTDIR}/${SBINDIR}/lpc X! install -s lptest ${DESTDIR}/${SBINDIR}/lptest X! install -s pac ${DESTDIR}/${SBINDIR}/pac X! chown ${DAEMON} ${DESTDIR}/${SPOOLDIR} X! chgrp ${SPGRP} ${DESTDIR}/${SPOOLDIR} X! chmod 775 ${DESTDIR}/${SPOOLDIR} X! cd filters; make ${MFLAGS} DESTDIR=${DESTDIR} install X X clean: X rm -f ${ALL} *.o X cd filters; make ${MFLAGS} clean X- X- print: X- @pr makefile X- @${CXREF} *.c | pr -h XREF X- @pr *.h *.c X--- 63,80 ---- X cd filters; make ${MFLAGS} X X install: all X! install -c -s -o ${ROOT} -g ${SPGRP} -m 6711 lpd ${SBINDIR}/lpd X! install -c -s -o ${ROOT} -g ${SPGRP} -m 6711 lpr ${BINDIR}/lpr X! install -c -s -o ${ROOT} -g ${SPGRP} -m 6711 lpq ${BINDIR}/lpq X! install -c -s -o ${ROOT} -g ${SPGRP} -m 6711 lprm ${BINDIR}/lprm X! install -c -s -g ${SPGRP} -m 2711 lpc ${SBINDIR}/lpc X! install -c -s lptest ${SBINDIR}/lptest X! install -c -s pac ${SBINDIR}/pac X! chown ${DAEMON} ${SPOOLDIR} X! chgrp ${SPGRP} ${SPOOLDIR} X! chmod 775 ${SPOOLDIR} X! cd filters; make ${MFLAGS} install X X clean: X rm -f ${ALL} *.o X cd filters; make ${MFLAGS} clean X*** ./usr/src/usr.sbin/lpr/printjob.c.old Mon Dec 23 11:44:03 1996 X--- ./usr/src/usr.sbin/lpr/printjob.c Fri Dec 26 18:44:28 2025 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)printjob.c 5.2.3 (2.11BSD GTE) 1996/12/23"; X #endif X 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*************** X*** 55,61 **** X char pxwidth[10] = "-x"; /* page width in pixels */ X char pxlength[10] = "-y"; /* page length in pixels */ X char indent[10] = "-i0"; /* indentation size in characters */ X! char tmpfile[] = "errsXXXXXX"; /* file name for filter output */ X X printjob() X { X--- 55,61 ---- X char pxwidth[10] = "-x"; /* page width in pixels */ X char pxlength[10] = "-y"; /* page length in pixels */ X char indent[10] = "-i0"; /* indentation size in characters */ X! char ptmpfile[] = "errsXXXXXX"; /* file name for filter output */ X X printjob() X { X*************** X*** 82,88 **** X signal(SIGQUIT, abortpr); X signal(SIGTERM, abortpr); X X! (void) mktemp(tmpfile); X X /* X * uses short form file names X--- 82,88 ---- X signal(SIGQUIT, abortpr); X signal(SIGTERM, abortpr); X X! (void) mktemp(ptmpfile); X X /* X * uses short form file names X*************** X*** 200,206 **** X if (TR != NULL) /* output trailer */ X (void) write(ofd, TR, strlen(TR)); X } X! (void) unlink(tmpfile); X exit(0); X } X goto again; X--- 200,206 ---- X if (TR != NULL) /* output trailer */ X (void) write(ofd, TR, strlen(TR)); X } X! (void) unlink(ptmpfile); X exit(0); X } X goto again; X*************** X*** 570,576 **** X if ((child = dofork(DORETURN)) == 0) { /* child */ X dup2(fi, 0); X dup2(fo, 1); X! n = open(tmpfile, O_WRONLY|O_CREAT|O_TRUNC, 0664); X if (n >= 0) X dup2(n, 2); X for (n = 3; n < NOFILE; n++) X--- 570,576 ---- X if ((child = dofork(DORETURN)) == 0) { /* child */ X dup2(fi, 0); X dup2(fo, 1); X! n = open(ptmpfile, O_WRONLY|O_CREAT|O_TRUNC, 0664); X if (n >= 0) X dup2(n, 2); X for (n = 3; n < NOFILE; n++) X*************** X*** 937,944 **** X printf("\ncould not be printed without an account on %s\n", host); X break; X case FILTERERR: X! if (stat(tmpfile, &stb) < 0 || stb.st_size == 0 || X! (fp = fopen(tmpfile, "r")) == NULL) { X printf("\nwas printed but had some errors\n"); X break; X } X--- 937,944 ---- X printf("\ncould not be printed without an account on %s\n", host); X break; X case FILTERERR: X! if (stat(ptmpfile, &stb) < 0 || stb.st_size == 0 || X! (fp = fopen(ptmpfile, "r")) == NULL) { X printf("\nwas printed but had some errors\n"); X break; X } X*************** X*** 997,1003 **** X */ X abortpr() X { X! (void) unlink(tmpfile); X kill(0, SIGINT); X if (ofilter > 0) X kill(ofilter, SIGCONT); X--- 997,1003 ---- X */ X abortpr() X { X! (void) unlink(ptmpfile); X kill(0, SIGINT); X if (ofilter > 0) X kill(ofilter, SIGCONT); X*** ./usr/src/usr.sbin/sendmail/src/extract.c.old Thu Oct 24 23:09:16 1996 X--- ./usr/src/usr.sbin/sendmail/src/extract.c Sat Dec 27 10:06:12 2025 X*************** X*** 1,8 **** 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"; X static int strfile = -1, ourpid = 0; X--- 1,9 ---- 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*** 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*** ./usr/src/usr.sbin/sendmail/src/Makefile.m4.old Thu Oct 24 23:01:27 1996 X--- ./usr/src/usr.sbin/sendmail/src/Makefile.m4 Tue Dec 23 09:43:38 2025 X*************** X*** 7,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile.m4 5.10.6 (2.11BSD GTE) 1996/10/24 X # X # X # SENDMAIL Makefile. X--- 7,13 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile.m4 5.10.7 (2.11BSD) 2025/12/10 X # X # X # SENDMAIL Makefile. X*************** X*** 21,27 **** X EXTRACT=extract.o X X LIBS= m4LIBS X- DESTDIR= X X OBJS1= conf.o main.o collect.o parseaddr.o alias.o deliver.o \ X savemail.o err.o readcf.o stab.o headers.o recipient.o \ X--- 21,26 ---- X*************** X*** 30,36 **** X OBJS2= sysexits.o arpadate.o convtime.o X OBJS= $(OBJS1) $(OBJS2) $(EXTRACT) Version.o str.o X X! SBASE= conf.o parseaddr.o alias.o deliver.o headers.o \ X recipient.o srvrsmtp.o queue.o util.o \ X envelope.o sysexits.o convtime.o Version.o \ X $(EXTRACT) str.o X--- 29,35 ---- X OBJS2= sysexits.o arpadate.o convtime.o X OBJS= $(OBJS1) $(OBJS2) $(EXTRACT) Version.o str.o X X! SBASE= conf.o parseaddr.o deliver.o headers.o \ X recipient.o srvrsmtp.o queue.o util.o \ X envelope.o sysexits.o convtime.o Version.o \ X $(EXTRACT) str.o X*************** X*** 37,43 **** X SOV1= main.o readcf.o macro.o X SOV2= daemon.o savemail.o usersmtp.o err.o clock.o stats.o trace.o stab.o \ X arpadate.o X! SOV3= collect.o X X SRCS= \ X conf.c deliver.c main.c parseaddr.c err.c alias.c savemail.c \ X--- 36,42 ---- X SOV1= main.o readcf.o macro.o X SOV2= daemon.o savemail.o usersmtp.o err.o clock.o stats.o trace.o stab.o \ X arpadate.o X! SOV3= alias.o collect.o X X SRCS= \ X conf.c deliver.c main.c parseaddr.c err.c alias.c savemail.c \ X*************** X*** 52,58 **** X COPTS= X CCONFIG=-I../`include' m4CONFIG X CFLAGS= $O $(COPTS) $(CCONFIG) X! SEPFLAG=-i X LINT= lint X XREF= ctags -x X INSTALL=install -c -s -o root X--- 51,57 ---- X COPTS= X CCONFIG=-I../`include' m4CONFIG X CFLAGS= $O $(COPTS) $(CCONFIG) X! LDFLAGS=-i X LINT= lint X XREF= ctags -x X INSTALL=install -c -s -o root X*************** X*** 66,82 **** X all: $(ALL) X X sendmail: $(OBJS) X! ld $(SEPFLAG) $(COPTS) /lib/crt0.o -o sendmail \ X -Z $(SOV1) -Z $(SOV2) -Z $(SOV3) -Y $(SBASE) $(LIBS) -lstubs -lc X chmod $(OBJMODE) sendmail X size sendmail; ls -l sendmail X X install: all X! $(INSTALL) -m 4755 -o root sendmail $(DESTDIR)/usr/sbin X! cp /dev/null $(DESTDIR)/etc/sendmail.fc X -if [ -s sendmail.sr ]; then \ X install -c -o bin -m 644 sendmail.sr \ X! $(DESTDIR)/usr/share/misc/sendmail.sr; \ X fi X X tags: FRC X--- 65,81 ---- X all: $(ALL) X X sendmail: $(OBJS) X! ld $(LDFLAGS) $(COPTS) /lib/crt0.o -o sendmail \ X -Z $(SOV1) -Z $(SOV2) -Z $(SOV3) -Y $(SBASE) $(LIBS) -lstubs -lc X chmod $(OBJMODE) sendmail X size sendmail; ls -l sendmail X X install: all X! $(INSTALL) -m 4755 -o root sendmail /usr/sbin X! cp /dev/null /etc/sendmail.fc X -if [ -s sendmail.sr ]; then \ X install -c -o bin -m 644 sendmail.sr \ X! /usr/share/misc/sendmail.sr; \ X fi X X tags: FRC X*** ./usr/src/usr.sbin/sendmail/aux/Makefile.m4.old Sat Mar 14 10:13:13 1987 X--- ./usr/src/usr.sbin/sendmail/aux/Makefile.m4 Wed Dec 10 16:10:13 2025 X*************** X*** 7,13 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile.m4 5.3 (Berkeley) 5/2/86 X # X # X # Makefile for assorted programs related (perhaps distantly) to Sendmail. X--- 7,13 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile.m4 5.4 (2.11BSD) 2025/12/10 X # X # X # Makefile for assorted programs related (perhaps distantly) to Sendmail. X*************** X*** 20,26 **** X LIBS= m4LIBS X DBMLIB= -ldbm X CONVTIME=../src/convtime.o X- DESTDIR= X X CHOWN= -echo chown X CHMOD= chmod X--- 20,25 ---- X*************** X*** 28,34 **** X COPTS= X CCONFIG=-I../`include' m4CONFIG X CFLAGS= $O $(COPTS) $(CCONFIG) X! SEPFLAG=-i X ASMSED= ../`include'/asm.sed X AR= -ar X ARFLAGS=rvu X--- 27,33 ---- X COPTS= X CCONFIG=-I../`include' m4CONFIG X CFLAGS= $O $(COPTS) $(CCONFIG) X! LDFLAGS=-i X ASMSED= ../`include'/asm.sed X AR= -ar X ARFLAGS=rvu X*************** X*** 59,71 **** X all: $(ALL) X X mconnect: mconnect.o X! cc $(SEPFLAG) $(COPTS) -o $@ mconnect.o X X mailstats: mailstats.o X! cc $(SEPFLAG) $(COPTS) -o $@ mailstats.o X X praliases: praliases.o X! cc $(SEPFLAG) $(COPTS) -o $@ praliases.o X X sources: $(SRCS) X X--- 58,70 ---- X all: $(ALL) X X mconnect: mconnect.o X! cc $(LDFLAGS) $(COPTS) -o $@ mconnect.o X X mailstats: mailstats.o X! cc $(LDFLAGS) $(COPTS) -o $@ mailstats.o X X praliases: praliases.o X! cc $(LDFLAGS) $(COPTS) -o $@ praliases.o X X sources: $(SRCS) X X*** ./usr/src/usr.sbin/sendmail/Makefile.old Tue Sep 23 01:01:40 1997 X--- ./usr/src/usr.sbin/sendmail/Makefile Fri Dec 26 02:08:54 2025 X*************** X*** 1,41 **** X # X # Makefile for sendmail base directory X # X! # @(#)Makefile 4.9.2 (2.11BSD) 1997/9/22 X # X X ALL= src/sendmail X! DIRS= $(DESTDIR)/usr/spool/mqueue X # X ALLDIRS=include adm src aux md lib doc adb test X! SENDMAIL=$(DESTDIR)/usr/sbin/sendmail X SYSLOG= /usr/spool/mqueue/syslog X! HELPFILE=$(DESTDIR)/usr/share/misc/sendmail.hf X! STATUSFILE=$(DESTDIR)/var/log/sendmail.st X! STRINGFILE=${DESTDIR}/usr/share/misc/sendmail.sr X! FROZENFILE=${DESTDIR}/etc/sendmail.fc X X- # When hardlinks are used, the references to LN below will need changes X- # for DESTDIR != / X LN= ln -s X X- SEPFLAG= -i X- X all: X! cd lib; make ${MFLAGS} SEPFLAG=${SEPFLAG} X! cd src; m4 Makefile.m4 > Makefile; make ${MFLAGS} SEPFLAG=${SEPFLAG} all X! -cd aux; m4 Makefile.m4 > Makefile; make ${MFLAGS} SEPFLAG=${SEPFLAG} X X install: $(ALL) $(DIRS) X! install -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 $(DESTDIR)/usr/bin/newaliases X! $(LN) ../sbin/sendmail $(DESTDIR)/usr/bin/newaliases X! rm -f $(DESTDIR)/usr/bin/mailq X! $(LN) ../sbin/sendmail $(DESTDIR)/usr/bin/mailq X X src/sendmail: X cd src; make ${MFLAGS} sendmail X--- 1,37 ---- 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! STATUSFILE=/var/log/sendmail.st X! STRINGFILE=/usr/share/misc/sendmail.sr X! FROZENFILE=/etc/sendmail.fc X 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! $(LN) ../sbin/sendmail /usr/bin/mailq X X src/sendmail: X cd src; make ${MFLAGS} sendmail X*************** X*** 43,51 **** X aux/syslog: X -cd aux; make ${MFLAGS} syslog X X! $(DESTDIR)/usr/spool/mqueue: X! -mkdir $(DESTDIR)/usr/spool/mqueue X! -chmod 777 $(DESTDIR)/usr/spool/mqueue X X clean: X -cd src; make ${MFLAGS} clean X--- 39,47 ---- 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 X clean: X -cd src; make ${MFLAGS} clean X*** ./usr/src/usr.sbin/sendmail.MX/lib/Makefile.old Thu Oct 24 22:20:02 1996 X--- ./usr/src/usr.sbin/sendmail.MX/lib/Makefile Fri Dec 26 02:00:55 2025 X*************** X*** 1,4 **** X- # X # Copyright (c) 1988 Regents of the University of California. X # All rights reserved. X # X--- 1,3 ---- 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.1.1 (2.11BSD) 1996/10/24 X # X ALL= sendmail.hf X SRCS= sendmail.hf X--- 8,14 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.1.2 (2.11BSD) 2025/11/28 X # X ALL= sendmail.hf X SRCS= sendmail.hf X*************** X*** 19,24 **** X depend: FRC X X install: sendmail.hf X! install -c -o bin -m 444 sendmail.hf ${DESTDIR}/usr/share/misc/sendmail.hf X X FRC: X--- 18,23 ---- 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.MX/src/Makefile.old Fri Oct 3 12:48:26 1997 X--- ./usr/src/usr.sbin/sendmail.MX/src/Makefile Mon Dec 8 15:33:56 2025 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! # %W% (Berkeley) %G% X # X # Uncomment these two lines to enable string extractions X CC= ./mkstrcc 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 2.0 (2.11BSD) 2025/11/28 X # X # Uncomment these two lines to enable string extractions X CC= ./mkstrcc X*************** X*** 28,42 **** X OBJS= ${BASE} ${OVLY1} ${OVLY2} ${OVLY3} X X CFLAGS= -O -I. -I../include -DVMUNIX -DMXDOMAIN -DNOSCCS X! # CFLAGS= -O -I. -I../include -DVMUNIX -DNOSCCS X! SEPFLAG=-i X ASMSED= ../include/asm.sed X X- GET= sccs get X- DELTA= sccs delta X- WHAT= what X- PRT= sccs prt X- X .c.o: X $(CC) -S ${CFLAGS} $*.c X sed -f $(ASMSED) $*.s >_xx.s X--- 28,36 ---- X OBJS= ${BASE} ${OVLY1} ${OVLY2} ${OVLY3} 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*************** X*** 44,50 **** X rm -f $*.s _xx.s X X sendmail: ${OBJS} Version.o X! cc ${SEPFLAG} ${COPTS} -o sendmail Version.o ${BASE} \ X -Z ${OVLY1} -Z ${OVLY2} -Z ${OVLY3} -Y -ldbm -lstubs; \ X size sendmail; ls -l sendmail; ${WHAT} < Version.o X X--- 38,44 ---- X rm -f $*.s _xx.s X X sendmail: ${OBJS} Version.o X! cc ${LDFLAGS} ${COPTS} -o sendmail Version.o ${BASE} \ X -Z ${OVLY1} -Z ${OVLY2} -Z ${OVLY3} -Y -ldbm -lstubs; \ X size sendmail; ls -l sendmail; ${WHAT} < Version.o X X*************** X*** 53,78 **** X size sendmail; ls -l sendmail; ${WHAT} < Version.o X X install: sendmail X! install -c -s -o root -g kmem -m 6755 sendmail ${DESTDIR}/usr/sbin X! install -c -o bin -m 644 /dev/null ${DESTDIR}/etc/sendmail.fc X! install -c -o bin -m 666 /dev/null ${DESTDIR}/var/log/sendmail.st X! rm -f ${DESTDIR}/usr/bin/newaliases X! ln -s ../sbin/sendmail ${DESTDIR}/usr/bin/newaliases X! rm -f ${DESTDIR}/usr/bin/mailq X! ln -s ../sbin/sendmail ${DESTDIR}/usr/bin/mailq X -if [ -s sendmail.sr ]; then \ X! install -c -o bin -m 644 sendmail.sr \ X! $(DESTDIR)/usr/share/misc/sendmail.sr; \ X fi X X! version: newversion ${OBJS} Version.c X X- newversion: X- @rm -f SCCS/p.version.c version.c X- @${GET} -e SCCS/s.version.c X- @${DELTA} -s SCCS/s.version.c X- @${GET} -t -s SCCS/s.version.c X- X Version.c: version.c X @echo generating Version.c from version.c X @cp version.c Version.c X--- 47,66 ---- X size sendmail; ls -l sendmail; ${WHAT} < Version.o X X install: sendmail X! install -c -s -o root -g kmem -m 6755 sendmail /usr/sbin X! install -c -o root -m 644 /dev/null /etc/sendmail.fc X! install -c -o root -m 666 /dev/null /var/log/sendmail.st X! rm -f /usr/bin/newaliases X! ln -s ../sbin/sendmail /usr/bin/newaliases X! rm -f /usr/bin/mailq X! ln -s ../sbin/sendmail /usr/bin/mailq X -if [ -s sendmail.sr ]; then \ X! install -c -o root -m 644 sendmail.sr \ X! /usr/share/misc/sendmail.sr; \ X fi X X! version: ${OBJS} Version.c X X Version.c: version.c X @echo generating Version.c from version.c X @cp version.c Version.c X*************** X*** 79,85 **** X @chmod 644 Version.c X @echo "" >> Version.c X @echo "# ifdef COMMENT" >> Version.c X- # @${PRT} SCCS/s.version.c >> Version.c X @echo "" >> Version.c X @echo "code versions:" >> Version.c X @echo "" >> Version.c X--- 67,72 ---- X*** ./usr/src/usr.sbin/sendmail.MX/aux/Makefile.old Mon Jan 18 11:38:12 1993 X--- ./usr/src/usr.sbin/sendmail.MX/aux/Makefile Tue Dec 9 14:56:20 2025 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 5.2 (Berkeley) 5/24/88 X # X CFLAGS= -O -I../src -I../include -DVMUNIX X! SEPFLAG=-i X ALL= mconnect mailstats praliases X SRCS= mconnect.c mailstats.c praliases.c X OBJS= mconnect.o mailstats.o praliases.o 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 5.3 (2.11BSD) 2025/11/28 X # X CFLAGS= -O -I../src -I../include -DVMUNIX X! LDFLAGS=-i X ALL= mconnect mailstats praliases X SRCS= mconnect.c mailstats.c praliases.c X OBJS= mconnect.o mailstats.o praliases.o X*************** X*** 25,44 **** X X all: ${ALL} X X- mail: mail.o X- ${CC} ${SEPFLAG} -o $@ mail.o X- X- rmail: rmail.o X- ${CC} ${SEPFLAG} -o $@ rmail.o X- X mconnect: mconnect.o X! ${CC} ${SEPFLAG} -o $@ mconnect.o X X mailstats: mailstats.o X! ${CC} ${SEPFLAG} -o $@ mailstats.o X X praliases: praliases.o X! ${CC} ${SEPFLAG} -o $@ praliases.o -ldbm X X clean: FRC X rm -f core ${ALL} ${OBJS} X--- 25,38 ---- X X all: ${ALL} X X mconnect: mconnect.o X! ${CC} ${LDFLAGS} -o $@ mconnect.o X X mailstats: mailstats.o X! ${CC} ${LDFLAGS} -o $@ mailstats.o X X praliases: praliases.o X! ${CC} ${LDFLAGS} -o $@ praliases.o -ldbm X X clean: FRC X rm -f core ${ALL} ${OBJS} X*************** X*** 47,56 **** X mkdep ${CFLAGS} ${SRCS} X X install: ${ALL} X! # install -s -o root -m 4755 mail ${DESTDIR}/bin/mail X! # install -s -o bin -m 755 rmail ${DESTDIR}/bin/rmail X! install -s -o bin -m 755 mconnect mailstats praliases \ X! ${DESTDIR}/usr/bin X X FRC: X X--- 41,47 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ${ALL} X! install -c -s -o root -m 755 mconnect mailstats praliases /usr/bin X X FRC: X X*** ./usr/src/usr.sbin/sendmail.MX/Makefile.old Wed Sep 14 06:33:23 1988 X--- ./usr/src/usr.sbin/sendmail.MX/Makefile Fri Nov 28 21:16:13 2025 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 4.13 (Berkeley) 5/1/88 X # X SUBDIR= lib src aux 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 4.14 (2.11BSD) 2025/11/28 X # X SUBDIR= lib src aux X X*************** X*** 25,33 **** X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done X X install: FRC X! -mkdir ${DESTDIR}/usr/spool/mqueue X! chown root.wheel ${DESTDIR}/usr/spool/mqueue X! chmod 775 ${DESTDIR}/usr/spool/mqueue X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} install); done X X FRC: X--- 25,33 ---- X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done X X install: FRC X! -mkdir /usr/spool/mqueue X! chown root.wheel /usr/spool/mqueue X! chmod 775 /usr/spool/mqueue X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} install); done X X FRC: X*** ./usr/src/usr.sbin/inetd/Makefile.old Wed Nov 13 23:40:25 1996 X--- ./usr/src/usr.sbin/inetd/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/6 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 1996/11/13 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= inetd.c X OBJS= inetd.o X MAN= inetd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/6 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= inetd.c X OBJS= inetd.o X MAN= inetd.0 X*************** X*** 13,19 **** X all: inetd inetd.0 X X inetd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X inetd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: inetd inetd.0 X X inetd: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X inetd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: inetd X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 inetd ${DESTDIR}/usr/sbin/inetd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: inetd X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 inetd /usr/sbin/inetd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/makewhatis/Makefile.old Thu Oct 24 23:28:41 1996 X--- ./usr/src/usr.sbin/makewhatis/Makefile Tue Nov 25 18:45:45 2025 X*************** X*** 1,12 **** X # X # Public Domain. 1996/10/24 - sms X # X! # @(#)Makefile 1.0 (2.11BSD GTE) 1996/10/24 X # X- CFLAGS= -O X- SEPFLAG= -i X- DESTDIR= X- OBJS= X X all: X X--- 1,8 ---- X # X # Public Domain. 1996/10/24 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X X all: X X*************** X*** 15,21 **** X depend: X X install: X! install -c -o root -m 755 makewhatis.sh ${DESTDIR}/usr/sbin/makewhatis X X lint: X X--- 11,17 ---- X depend: X X install: X! install -c -o root -m 755 makewhatis.sh /usr/sbin/makewhatis X X lint: X X*** ./usr/src/usr.sbin/quotaon/Makefile.old Sat Nov 16 17:31:48 1996 X--- ./usr/src/usr.sbin/quotaon/Makefile Tue Dec 9 14:55:51 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= quotaon.c X OBJS= quotaon.o X MAN= quotaon.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= quotaon.c X OBJS= quotaon.o X MAN= quotaon.0 X*************** X*** 13,19 **** X all: quotaon quotaon.0 X X quotaon: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X quotaon.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: quotaon quotaon.0 X X quotaon: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X quotaon.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,36 **** X mkdep ${CFLAGS} ${SRCS} X X install: quotaon X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! -rm -f ${DESTDIR}/usr/man/cat8/quotaoff.0 X! ln ${DESTDIR}/usr/man/cat8/quotaon.0 ${DESTDIR}/usr/man/cat8/quotaoff.0 X! install -s -o root -g bin -m 755 quotaon ${DESTDIR}/usr/sbin/quotaon X! -rm -f ${DESTDIR}/usr/sbin/quotaoff X! ln ${DESTDIR}/usr/sbin/quotaon ${DESTDIR}/usr/sbin/quotaoff X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,36 ---- X mkdep ${CFLAGS} ${SRCS} X X install: quotaon X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! -rm -f /usr/man/cat8/quotaoff.0 X! ln /usr/man/cat8/quotaon.0 /usr/man/cat8/quotaoff.0 X! install -c -s -o root -g staff -m 755 quotaon /usr/sbin/quotaon X! -rm -f /usr/sbin/quotaoff X! ln /usr/sbin/quotaon /usr/sbin/quotaoff X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/dev_mkdb/Makefile.old Sat Nov 16 17:36:25 1996 X--- ./usr/src/usr.sbin/dev_mkdb/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 2/3/1995 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD GTE) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= dev_mkdb.c X OBJS= dev_mkdb.o X MAN= dev_mkdb.0 X--- 1,10 ---- X # X # Public Domain. 2/3/1995 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= dev_mkdb.c X OBJS= dev_mkdb.o X MAN= dev_mkdb.0 X*************** X*** 13,19 **** X all: dev_mkdb dev_mkdb.0 X X dev_mkdb: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X dev_mkdb.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: dev_mkdb dev_mkdb.0 X X dev_mkdb: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X dev_mkdb.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 dev_mkdb ${DESTDIR}/usr/sbin/dev_mkdb X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 dev_mkdb /usr/sbin/dev_mkdb X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/syslogd/Makefile.old Sat Sep 28 08:11:56 2024 X--- ./usr/src/usr.sbin/syslogd/Makefile Tue Dec 9 14:57:42 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= syslogd.c X OBJS= syslogd.o X MAN= syslogd.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= syslogd.c X OBJS= syslogd.o X MAN= syslogd.0 X*************** X*** 13,19 **** X all: syslogd syslogd.0 X X syslogd: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X syslogd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: syslogd syslogd.0 X X syslogd: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X syslogd.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: syslogd syslogd.0 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 syslogd ${DESTDIR}/usr/sbin/syslogd X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: syslogd syslogd.0 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 syslogd /usr/sbin/syslogd X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/update/Makefile.old Sat Nov 16 17:52:43 1996 X--- ./usr/src/usr.sbin/update/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= update.c X OBJS= update.o X MAN= update.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= update.c X OBJS= update.o X MAN= update.0 X*************** X*** 13,19 **** X all: update update.0 X X update: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X update.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: update update.0 X X update: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X update.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: update X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 update ${DESTDIR}/usr/sbin/update X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: update X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 update /usr/sbin/update X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/cron/Makefile.old Tue Aug 17 01:25:42 1999 X--- ./usr/src/usr.sbin/cron/Makefile Fri Nov 28 09:43:20 2025 X*************** X*** 1,3 **** X--- 1,5 ---- X+ # @(#)Makefile 2.0 (2.11BSD) 2025/11/28 X+ X #/* Copyright 1988,1990,1993,1994 by Paul Vixie X # * All rights reserved X # * X*************** X*** 15,24 **** X # * Paul Vixie uunet!decwrl!vixie!paul X # */ X X- # Makefile for vixie's cron X- # X # $Id: Makefile,v 2.9 1994/01/15 20:43:43 vixie Exp $ X- # X # vix 03mar88 [moved to RCS, rest of log is in there] X # vix 30mar87 [goodbye, time.c; hello, getopt] X # vix 12feb87 [cleanup for distribution] X--- 17,23 ---- X*************** X*** 45,56 **** X # X # there's more configuration info in config.h; edit that first! X X! DESTROOT = $(DESTDIR)/usr X DESTSBIN = $(DESTROOT)/sbin X DESTBIN = $(DESTROOT)/bin X DESTMAN = $(DESTROOT)/man X INCLUDE = -I. X- LIBS = X OPTIM = -O X #<> X LINTFLAGS = -hbxa $(INCLUDE) X--- 44,54 ---- X # X # there's more configuration info in config.h; edit that first! X X! DESTROOT = /usr X DESTSBIN = $(DESTROOT)/sbin X DESTBIN = $(DESTROOT)/bin X DESTMAN = $(DESTROOT)/man X INCLUDE = -I. X OPTIM = -O X #<> X LINTFLAGS = -hbxa $(INCLUDE) X*************** X*** 73,88 **** X all: cron crontab X X lint: X! lint $(LINTFLAGS) $(LINT_CRON) $(LIBS) \ X |grep -v "constant argument to NOT" 2>&1 X! lint $(LINTFLAGS) $(LINT_CRONTAB) $(LIBS) \ X |grep -v "constant argument to NOT" 2>&1 X X cron: $(CRON_OBJ) X! $(CC) $(LDFLAGS) -o cron $(CRON_OBJ) $(LIBS) X X crontab: $(CRONTAB_OBJ) X! $(CC) $(LDFLAGS) -o crontab $(CRONTAB_OBJ) $(LIBS) X X install: all X $(INSTALL) -c -m 111 -o root -s cron $(DESTSBIN)/cron X--- 71,86 ---- X all: cron crontab X X lint: X! lint $(LINTFLAGS) $(LINT_CRON) \ X |grep -v "constant argument to NOT" 2>&1 X! lint $(LINTFLAGS) $(LINT_CRONTAB) \ X |grep -v "constant argument to NOT" 2>&1 X X cron: $(CRON_OBJ) X! $(CC) $(LDFLAGS) -o cron $(CRON_OBJ) X X crontab: $(CRONTAB_OBJ) X! $(CC) $(LDFLAGS) -o crontab $(CRONTAB_OBJ) X X install: all X $(INSTALL) -c -m 111 -o root -s cron $(DESTSBIN)/cron X*** ./usr/src/usr.sbin/accton/Makefile.old Sun Jul 25 23:19:33 1999 X--- ./usr/src/usr.sbin/accton/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 1999/2/19 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= accton.c X OBJS= accton.o X MAN= accton.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= accton.c X OBJS= accton.o X MAN= accton.0 X*************** X*** 13,19 **** X all: accton accton.0 X X accton: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X accton.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: accton accton.0 X X accton: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X accton.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: accton X! install -s -o root -g bin -m 755 accton ${DESTDIR}/usr/sbin/accton X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN} X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: accton X! install -c -s -o root -g staff -m 755 accton /usr/sbin/accton X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8/${MAN} X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/named/tools/nslookup/Makefile.old Sun Dec 1 16:53:43 1996 X--- ./usr/src/usr.sbin/named/tools/nslookup/Makefile Tue Dec 9 14:55:44 2025 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 5.20.2 (2.11BSD) 1996/12/1 X # X CFLAGS= -O X! RES= X! LIBS= -ll ${RES} X CSRCS= main.c getinfo.c debug.c send.c skip.c list.c subr.c res_debug.c X SRCS= ${CSRCS} commands.c X OBJS= main.o getinfo.o debug.o send.o skip.o list.o subr.o commands.o \ X--- 14,23 ---- 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 CSRCS= main.c getinfo.c debug.c send.c skip.c list.c subr.c res_debug.c X SRCS= ${CSRCS} commands.c X OBJS= main.o getinfo.o debug.o send.o skip.o list.o subr.o commands.o \ X*************** X*** 39,47 **** X mkdep ${CFLAGS} ${SRCS} X X install: nslookup nslookup.0 X! install -s -o bin -g bin -m 755 nslookup ${DESTDIR}/usr/bin/nslookup X! install -c -o bin -g bin -m 444 nslookup.help ${DESTDIR}/usr/share/misc/nslookup.help X! install -c -o bin -g bin -m 444 nslookup.0 ${DESTDIR}/usr/man/cat1/nslookup.0 X X nslookup.0: nslookup.8 X /usr/man/manroff nslookup.8 > nslookup.0 X--- 38,46 ---- 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*** ./usr/src/usr.sbin/named/tools/Makefile.old Sun Dec 1 16:53:14 1996 X--- ./usr/src/usr.sbin/named/tools/Makefile Tue Dec 9 14:55:28 2025 X*************** X*** 14,39 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 4.9.1 (2.11BSD) 1996/12/1 X # X CFLAGS= -O X- RES= X SRCS= nsquery.c nstest.c X! OBJS= X X all: nsquery nstest nslookup X X nsquery: nsquery.o X! ${CC} ${CFLAGS} -i -o $@ nsquery.o ${RES} X X # test programs and utilities X nstest: nstest.o X @echo "The resolver routines in libc must be compiled with the -DDEBUG" X @echo "option or nstest will not have any output." X! ${CC} ${CFLAGS} -i -o $@ nstest.o ${RES} X X nslookup: FRC X! cd nslookup; make ${MFLAGS} RES=${RES} X X clean: FRC X cd nslookup; make ${MFLAGS} clean X--- 14,38 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 4.9.2 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X SRCS= nsquery.c nstest.c X! OBJS= nsquery.o nstest.o X X all: nsquery nstest nslookup X X nsquery: nsquery.o X! ${CC} ${CFLAGS} -i -o $@ nsquery.o X X # test programs and utilities X nstest: nstest.o X @echo "The resolver routines in libc must be compiled with the -DDEBUG" X @echo "option or nstest will not have any output." X! ${CC} ${CFLAGS} -i -o $@ nstest.o X X nslookup: FRC X! cd nslookup; make ${MFLAGS} X X clean: FRC X cd nslookup; make ${MFLAGS} clean X*************** X*** 44,52 **** X mkdep -p ${CFLAGS} ${SRCS} X X install: ${MAN} X! cd nslookup; make ${MFLAGS} DESTDIR=${DESTDIR} install X! install -s -m 555 nsquery ${DESTDIR}/usr/bin X! install -s -m 555 nstest ${DESTDIR}/usr/bin X X lint: ${SRCS} X cd nslookup; make ${MFLAGS} lint X--- 43,51 ---- X mkdep -p ${CFLAGS} ${SRCS} X X install: ${MAN} X! cd nslookup; make ${MFLAGS} install X! install -c -s -m 555 nsquery /usr/bin X! install -c -s -m 555 nstest /usr/bin X X lint: ${SRCS} X cd nslookup; make ${MFLAGS} lint X*** ./usr/src/usr.sbin/named/named/Makefile.old Sun Dec 1 16:52:18 1996 X--- ./usr/src/usr.sbin/named/named/Makefile Tue Dec 9 15:48:29 2025 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.1 (2.11BSD) 1996/11/16 X # X- SEPFLAG= -i X RES= X DEFINES= X #DEFINES= -DDEBUG -DSTATS X--- 9,16 ---- 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 (2.11BSD) 2025/11/29 X # X RES= X DEFINES= X #DEFINES= -DDEBUG -DSTATS X*************** X*** 18,24 **** X ### -DALLOW_T_UNSPEC -Dmalloc=rt_malloc -Dfree=rt_free X ### ALLOC=storage.o X CFLAGS= -O ${DEFINES} X! LDFLAGS= ${RES} ${SEPFLAG} X SRCS= db_dump.c db_load.c db_lookup.c db_reload.c db_save.c db_update.c \ X ns_forw.c ns_init.c ns_main.c ns_maint.c ns_req.c ns_resp.c \ X ns_sort.c ns_stats.c X--- 17,23 ---- X ### -DALLOW_T_UNSPEC -Dmalloc=rt_malloc -Dfree=rt_free X ### ALLOC=storage.o X CFLAGS= -O ${DEFINES} X! LDFLAGS= -i ${RES} X SRCS= db_dump.c db_load.c db_lookup.c db_reload.c db_save.c db_update.c \ X ns_forw.c ns_init.c ns_main.c ns_maint.c ns_req.c ns_resp.c \ X ns_sort.c ns_stats.c X*************** X*** 34,41 **** X named: ${OBJS} X sh newvers.sh X # You need overlays if you define DEBUG and STATS. X! # ${CC} ${LDFLAGS} -o $@ version.c ${BASE} -Z ${OBJS1} -Z ${OBJS2} -Y X! ${CC} ${LDFLAGS} -o $@ version.c ${OBJS} X X clean: FRC X rm -f ${OBJS} core named version.o version.c X--- 33,40 ---- X named: ${OBJS} X sh newvers.sh X # You need overlays if you define DEBUG and STATS. X! # ${CC} ${LDFLAGS} -o named ${BASE} -Z ${OBJS1} -Z ${OBJS2} -Y version.c X! ${CC} ${LDFLAGS} -o named ${OBJS} version.c X X clean: FRC X rm -f ${OBJS} core named version.o version.c X*************** X*** 44,50 **** X mkdep ${CFLAGS} ${SRCS} X X install: named X! install -s -o root -g staff -m 751 named ${DESTDIR}/usr/sbin/named X X lint: FRC X lint -Dlint ${CFLAGS} ${SRCS} X--- 43,49 ---- X mkdep ${CFLAGS} ${SRCS} X X install: named X! install -c -s -o root -g staff -m 755 named /usr/sbin/named X X lint: FRC X lint -Dlint ${CFLAGS} ${SRCS} X*************** X*** 53,146 **** X ctags -t ${SRCS} ${HDRS} 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- db_dump.o: db_dump.c /usr/include/sys/param.h /usr/include/sys/localopts.h X- db_dump.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- db_dump.o: /usr/include/signal.h /usr/include/sys/types.h X- db_dump.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/stat.h X- db_dump.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/stdio.h X- db_dump.o: /usr/include/syslog.h /usr/include/arpa/nameser.h ns.h X- db_dump.o: /usr/include/strings.h /usr/include/arpa/inet.h db.h X- db_load.o: db_load.c /usr/include/sys/param.h /usr/include/sys/localopts.h X- db_load.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- db_load.o: /usr/include/signal.h /usr/include/sys/types.h X- db_load.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/stat.h X- db_load.o: /usr/include/netinet/in.h /usr/include/stdio.h /usr/include/syslog.h X- db_load.o: /usr/include/ctype.h /usr/include/netdb.h X- db_load.o: /usr/include/arpa/nameser.h ns.h /usr/include/strings.h X- db_load.o: /usr/include/arpa/inet.h db.h X- db_lookup.o: db_lookup.c /usr/include/sys/types.h /usr/include/stdio.h X- db_lookup.o: /usr/include/arpa/nameser.h db.h X- db_reload.o: db_reload.c /usr/include/sys/types.h /usr/include/sys/time.h X- db_reload.o: /usr/include/time.h /usr/include/netinet/in.h /usr/include/stdio.h X- db_reload.o: /usr/include/syslog.h /usr/include/arpa/nameser.h ns.h X- db_reload.o: /usr/include/strings.h /usr/include/arpa/inet.h db.h X- db_save.o: db_save.c /usr/include/sys/types.h /usr/include/stdio.h X- db_save.o: /usr/include/syslog.h /usr/include/arpa/nameser.h db.h X- db_update.o: db_update.c /usr/include/sys/types.h /usr/include/sys/socket.h X- db_update.o: /usr/include/sys/time.h /usr/include/time.h X- db_update.o: /usr/include/netinet/in.h /usr/include/stdio.h X- db_update.o: /usr/include/syslog.h /usr/include/arpa/nameser.h ns.h X- db_update.o: /usr/include/strings.h /usr/include/arpa/inet.h db.h X- ns_forw.o: ns_forw.c /usr/include/stdio.h /usr/include/sys/param.h X- ns_forw.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X- ns_forw.o: /usr/include/sys/types.h /usr/include/signal.h X- ns_forw.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h X- ns_forw.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- ns_forw.o: /usr/include/syslog.h /usr/include/arpa/nameser.h ns.h X- ns_forw.o: /usr/include/strings.h /usr/include/arpa/inet.h db.h X- ns_init.o: ns_init.c /usr/include/sys/types.h /usr/include/sys/socket.h X- ns_init.o: /usr/include/sys/time.h /usr/include/time.h X- ns_init.o: /usr/include/netinet/in.h /usr/include/stdio.h /usr/include/errno.h X- ns_init.o: /usr/include/signal.h /usr/include/syslog.h /usr/include/ctype.h X- ns_init.o: /usr/include/arpa/nameser.h ns.h /usr/include/strings.h X- ns_init.o: /usr/include/arpa/inet.h db.h X- ns_main.o: ns_main.c /usr/include/sys/param.h /usr/include/sys/localopts.h X- ns_main.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- ns_main.o: /usr/include/signal.h /usr/include/sys/types.h X- ns_main.o: /usr/include/sys/file.h /usr/include/sys/time.h /usr/include/time.h X- ns_main.o: /usr/include/sys/wait.h /usr/include/sys/resource.h X- ns_main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X- ns_main.o: /usr/include/sys/ttydev.h /usr/include/sys/socket.h X- ns_main.o: /usr/include/netinet/in.h /usr/include/net/if.h X- ns_main.o: /usr/include/net/if_arp.h /usr/include/stdio.h /usr/include/syslog.h X- ns_main.o: /usr/include/errno.h /usr/include/signal.h /usr/include/netdb.h X- ns_main.o: /usr/include/arpa/nameser.h /usr/include/arpa/inet.h X- ns_main.o: /usr/include/resolv.h ns.h /usr/include/strings.h X- ns_main.o: /usr/include/arpa/inet.h db.h X- ns_maint.o: ns_maint.c /usr/include/sys/param.h /usr/include/sys/localopts.h X- ns_maint.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- ns_maint.o: /usr/include/signal.h /usr/include/sys/types.h X- ns_maint.o: /usr/include/sys/socket.h /usr/include/sys/time.h X- ns_maint.o: /usr/include/time.h /usr/include/netinet/in.h /usr/include/stdio.h X- ns_maint.o: /usr/include/syslog.h /usr/include/signal.h /usr/include/errno.h X- ns_maint.o: /usr/include/arpa/nameser.h ns.h /usr/include/strings.h X- ns_maint.o: /usr/include/arpa/inet.h db.h X- ns_req.o: ns_req.c /usr/include/stdio.h /usr/include/sys/param.h X- ns_req.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X- ns_req.o: /usr/include/sys/types.h /usr/include/signal.h X- ns_req.o: /usr/include/sys/types.h /usr/include/sys/uio.h X- ns_req.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/socket.h X- ns_req.o: /usr/include/netinet/in.h /usr/include/syslog.h X- ns_req.o: /usr/include/sys/file.h /usr/include/arpa/nameser.h ns.h X- ns_req.o: /usr/include/strings.h /usr/include/arpa/inet.h db.h X- ns_resp.o: ns_resp.c /usr/include/stdio.h /usr/include/sys/param.h X- ns_resp.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X- ns_resp.o: /usr/include/sys/types.h /usr/include/signal.h X- ns_resp.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h X- ns_resp.o: /usr/include/sys/socket.h /usr/include/sys/file.h X- ns_resp.o: /usr/include/netinet/in.h /usr/include/syslog.h X- ns_resp.o: /usr/include/arpa/nameser.h ns.h /usr/include/strings.h X- ns_resp.o: /usr/include/arpa/inet.h db.h X- ns_sort.o: ns_sort.c /usr/include/stdio.h /usr/include/sys/types.h X- ns_sort.o: /usr/include/sys/time.h /usr/include/time.h X- ns_sort.o: /usr/include/sys/socket.h /usr/include/sys/file.h X- ns_sort.o: /usr/include/netinet/in.h /usr/include/syslog.h X- ns_sort.o: /usr/include/arpa/nameser.h ns.h /usr/include/strings.h X- ns_sort.o: /usr/include/arpa/inet.h db.h X- ns_stats.o: ns_stats.c X- X- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X--- 52,54 ---- X*** ./usr/src/usr.sbin/sa/Makefile.old Sun Jul 25 23:19:33 1999 X--- ./usr/src/usr.sbin/sa/Makefile Tue Dec 9 14:56:14 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 1999/2/19 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= sa.c X OBJS= sa.o X MAN= sa.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.3 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= sa.c X OBJS= sa.o X MAN= sa.0 X*************** X*** 13,19 **** X all: sa sa.0 X X sa: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X sa.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: sa sa.0 X X sa: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X sa.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 sa ${DESTDIR}/usr/sbin/sa X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 sa /usr/sbin/sa X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/catman/Makefile.old Sat Nov 16 19:03:30 1996 X--- ./usr/src/usr.sbin/catman/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= catman.c X OBJS= catman.o X MAN= catman.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= catman.c X OBJS= catman.o X MAN= catman.0 X*************** X*** 13,19 **** X all: catman catman.0 X X catman: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X catman.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: catman catman.0 X X catman: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X catman.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: catman X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 catman ${DESTDIR}/usr/sbin/catman X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: catman X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 catman /usr/sbin/catman X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/chroot/Makefile.old Sun Dec 1 16:52:04 1996 X--- ./usr/src/usr.sbin/chroot/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 14,24 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.2.2 (2.11BSD) 1996/11/16 X # X X CFLAGS= -O X! SEPFLAG= -i X SRCS= chroot.c X OBJS= chroot.o X MAN= chroot.0 X--- 14,24 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.2.3 (2.11BSD) 2025/11/28 X # X X CFLAGS= -O X! LDFLAGS= -i X SRCS= chroot.c X OBJS= chroot.o X MAN= chroot.0 X*************** X*** 27,33 **** X all: chroot ${MAN} X X chroot: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS} X X chroot.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 27,33 ---- X all: chroot ${MAN} X X chroot: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${CFLAGS} ${OBJS} X X chroot.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 42,49 **** X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} chroot X! install -s -o root -g bin -m 4751 chroot ${DESTDIR}/usr/sbin X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X--- 42,49 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} chroot X! install -c -s -o root -g staff -m 4751 chroot /usr/sbin X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X*** ./usr/src/usr.sbin/rwhod/Makefile.old Thu Sep 26 19:59:14 2024 X--- ./usr/src/usr.sbin/rwhod/Makefile Tue Dec 9 14:56:08 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2024/9/26 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= rwhod.c X OBJS= rwhod.o X MAN= rwhod.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= rwhod.c X OBJS= rwhod.o X MAN= rwhod.0 X*************** X*** 13,19 **** X all: rwhod rwhod.0 X X rwhod: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X rwhod.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: rwhod rwhod.0 X X rwhod: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X rwhod.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: rwhod rwhod.0 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 rwhod ${DESTDIR}/usr/sbin/rwhod X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rwhod rwhod.0 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 rwhod /usr/sbin/rwhod X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/timed/Makefile.old Sat Nov 16 23:49:30 1996 X--- ./usr/src/usr.sbin/timed/Makefile Tue Dec 9 14:58:52 2025 X*************** X*** 3,15 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 2.1.1 (2.11BSD) 1996/11/16 X # X # optional flags are: MEASURE TESTING DEBUG X X CFLAGS= -O -DMEASURE X! SEPFLAG= -i X! DESTDIR= X MACHINE= pdp X LIBS= X PROGRS= timed timedc X--- 3,14 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 2.2 (2.11BSD) 2025/11/25 X # X # optional flags are: MEASURE TESTING DEBUG X X CFLAGS= -O -DMEASURE X! LDFLAGS= -i X MACHINE= pdp X LIBS= X PROGRS= timed timedc X*************** X*** 39,52 **** X rm -f cksum.s X X timed: ${OBJDS} ${COMMO} X! cc ${SEPFLAG} ${CFLAGS} ${OBJDS} ${COMMO} ${LIBS} -o timed X X timedc: ${OBJCS} ${COMMO} X! cc ${SEPFLAG} ${CFLAGS} ${OBJCS} ${COMMO} ${LIBS} -o timedc X X install: ${PROGRS} X! install -s timed ${DESTDIR}/usr/sbin X! install -s -o root -m 4511 timedc ${DESTDIR}/usr/sbin X X clean: X rm -f a.out core *.o Makefile.bak errs ${PROGRS} X--- 38,51 ---- X rm -f cksum.s X X timed: ${OBJDS} ${COMMO} X! cc ${LDFLAGS} ${CFLAGS} ${OBJDS} ${COMMO} ${LIBS} -o timed X X timedc: ${OBJCS} ${COMMO} X! cc ${LDFLAGS} ${CFLAGS} ${OBJCS} ${COMMO} ${LIBS} -o timedc X X install: ${PROGRS} X! install -c -s -m 755 timed /usr/sbin X! install -c -s -o root -m 4555 timedc /usr/sbin X X clean: X rm -f a.out core *.o Makefile.bak errs ${PROGRS} X*** ./usr/src/usr.sbin/vipw/Makefile.old Sat Nov 16 23:57:57 1996 X--- ./usr/src/usr.sbin/vipw/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 14,24 **** X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.1.3 (2.11BSD) 1996/11/16 X # X X CFLAGS= -O X! SEPFLAG= -i X SRCS= vipw.c X OBJS= vipw.o X MAN= vipw.0 X--- 14,24 ---- X # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND X # FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.1.4 (2.11BSD) 2025/11/28 X # X X CFLAGS= -O X! LDFLAGS= -i X SRCS= vipw.c X OBJS= vipw.o X MAN= vipw.0 X*************** X*** 27,33 **** X all: vipw ${MAN} X X vipw: ${OBJS} X! ${CC} ${SEPFLAG} -o $@ ${CFLAGS} ${OBJS} X X vipw.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 27,33 ---- X all: vipw ${MAN} X X vipw: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X vipw.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 42,49 **** X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} vipw X! install -s -o bin -g bin -m 755 vipw ${DESTDIR}/usr/sbin X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X--- 42,49 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ${MAN} vipw X! install -c -s -o root -g staff -m 755 vipw /usr/sbin X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X X lint: ${SRCS} X lint ${CFLAGS} ${SRCS} X*** ./usr/src/usr.sbin/sysgen/Makefile.old Thu Mar 13 12:51:23 2025 X--- ./usr/src/usr.sbin/sysgen/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 1,10 **** X # SYSGEN -- an imitation of the CONFIG command of VMS SYSGEN. X- # X # $Id: Makefile,v 1.5 1997/06/08 12:35:38 tih Exp $ X X PROG= sysgen X CFLAGS = -O X! SEPFLAG= -i X SRCS= sysgen.c X OBJS= sysgen.o X MAN= sysgen.0 X--- 1,11 ---- X+ # @(#)Makefile 1.2 (2.11BSD) 2025/11/28 X+ X # SYSGEN -- an imitation of the CONFIG command of VMS SYSGEN. X # $Id: Makefile,v 1.5 1997/06/08 12:35:38 tih Exp $ X X PROG= sysgen X CFLAGS = -O X! LDFLAGS= -i X SRCS= sysgen.c X OBJS= sysgen.o X MAN= sysgen.0 X*************** X*** 19,29 **** X all: sysgen ${MAN} X X sysgen: sysgen.o devices.h X! cc ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X install: sysgen sysgen.0 X! install -c -s ${PROG} ${DESTDIR}/usr/sbin/${PROG} X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN} X X clean: X rm -f ${OBJS} ${MAN} ${PROG} tags X--- 20,30 ---- X all: sysgen ${MAN} X X sysgen: sysgen.o devices.h X! cc ${LDFLAGS} -o $@ ${OBJS} X X install: sysgen sysgen.0 X! install -c -s ${PROG} /usr/sbin/${PROG} X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8/${MAN} X X clean: X rm -f ${OBJS} ${MAN} ${PROG} tags X*** ./usr/src/usr.sbin/ac/Makefile.old Sun Nov 17 00:39:18 1996 X--- ./usr/src/usr.sbin/ac/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= ac.c X OBJS= ac.o X MAN= ac.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= ac.c X OBJS= ac.o X MAN= ac.0 X*************** X*** 13,19 **** X all: ac ac.0 X X ac: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X ac.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: ac ac.0 X X ac: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X ac.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: ac X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 ac ${DESTDIR}/usr/sbin/ac X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: ac X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 ac /usr/sbin/ac X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/chown/Makefile.old Sun Nov 17 20:17:23 1996 X--- ./usr/src/usr.sbin/chown/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= chown.c X OBJS= chown.o X MAN= chown.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= chown.c X OBJS= chown.o X MAN= chown.0 X*************** X*** 13,19 **** X all: chown chown.0 X X chown: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X chown.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: chown chown.0 X X chown: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X chown.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: chown X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 chown ${DESTDIR}/usr/sbin/chown X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: chown X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 chown /usr/sbin/chown X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/mkhosts/Makefile.old Sun Nov 17 21:11:39 1996 X--- ./usr/src/usr.sbin/mkhosts/Makefile Wed Dec 24 21:49:36 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= mkhosts.c X OBJS= mkhosts.o X MAN= mkhosts.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= mkhosts.c X OBJS= mkhosts.o X MAN= mkhosts.0 X*************** X*** 15,21 **** X mkhosts: ${OBJS} X @echo "Mkhosts only works with the dbm version of the hostent routines." X @echo "If gethostent() is not in libc, mkhosts isn't installed." X! -cc ${CFLAGS} -o mkhosts ${OBJS} X X mkhosts.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 15,21 ---- X mkhosts: ${OBJS} X @echo "Mkhosts only works with the dbm version of the hostent routines." X @echo "If gethostent() is not in libc, mkhosts isn't installed." X! -cc ${LDFLAGS} -o mkhosts ${OBJS} X X mkhosts.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 27,36 **** X mkdep ${CFLAGS} ${SRCS} X X install: mkhosts X- install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X -if test -x mkhosts;\ X then \ X! install -s -o root -g bin -m 755 mkhosts ${DESTDIR}/usr/sbin ;\ X else \ X :;\ X fi X--- 27,36 ---- X mkdep ${CFLAGS} ${SRCS} X X install: mkhosts X -if test -x mkhosts;\ X then \ X! install -c -s -o root -g staff -m 755 mkhosts /usr/sbin ;\ X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 ;\ X else \ X :;\ X fi X*** ./usr/src/usr.sbin/mkhosts/mkhosts.8.old Sun Nov 17 20:53:41 1996 X--- ./usr/src/usr.sbin/mkhosts/mkhosts.8 Tue Dec 23 19:31:41 2025 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mkhosts.8 6.3.1 (2.11BSD) 1996/11/17 X .\" X! .TH MKHOSTS 8 "May 23, 1986" X .UC 6 X .SH NAME X mkhosts \- generate hashed host table X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mkhosts.8 6.3.2 (2.11BSD) 2025/12/23 X .\" X! .TH MKHOSTS 8 "December 23, 2025" X .UC 6 X .SH NAME X mkhosts \- generate hashed host table X*************** X*** 50,53 **** X .br X \fIhostfile\fR.new.dir X .SH SEE ALSO X! gethostbyname(3), gettable(8), hosts(5), htable(8), named(8) X--- 50,53 ---- X .br X \fIhostfile\fR.new.dir X .SH SEE ALSO X! gethostbyname(3), hosts(5), named(8) X*** ./usr/src/usr.sbin/mklost+found/Makefile.old Sun Nov 17 21:17:46 1996 X--- ./usr/src/usr.sbin/mklost+found/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X- CFLAGS= -O X- SEPFLAG= -i X SRCS= mklost+found.sh X MAN= mklost+found.0 X MANSRC= mklost+found.8 X--- 1,8 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X SRCS= mklost+found.sh X MAN= mklost+found.0 X MANSRC= mklost+found.8 X*************** X*** 20,27 **** X depend: X X install: X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -c -o root -g bin -m 555 ${SRCS} ${DESTDIR}/usr/sbin/mklost+found X X lint: X X--- 18,25 ---- X depend: X X install: X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -o root -g staff -m 555 ${SRCS} /usr/sbin/mklost+found X X lint: X X*** ./usr/src/usr.sbin/mkproto/Makefile.old Sun Nov 17 22:11:17 1996 X--- ./usr/src/usr.sbin/mkproto/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= mkproto.c X OBJS= mkproto.o X MAN= mkproto.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= mkproto.c X OBJS= mkproto.o X MAN= mkproto.0 X*************** X*** 13,19 **** X all: mkproto mkproto.0 X X mkproto: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X mkproto.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: mkproto mkproto.0 X X mkproto: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X mkproto.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: mkproto X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 mkproto ${DESTDIR}/usr/sbin/mkproto X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: mkproto X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 mkproto /usr/sbin/mkproto X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/pstat/Makefile.old Wed Dec 31 10:46:55 2008 X--- ./usr/src/usr.sbin/pstat/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= pstat.c X OBJS= pstat.o X MAN= pstat.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= pstat.c X OBJS= pstat.o X MAN= pstat.0 X*************** X*** 13,19 **** X all: pstat pstat.0 X X pstat: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X pstat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: pstat pstat.0 X X pstat: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X pstat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: pstat ${MAN} X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o bin -g kmem -m 2755 pstat ${DESTDIR}/usr/sbin/pstat X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: pstat ${MAN} X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g kmem -m 2755 pstat /usr/sbin/pstat X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/pstat/pstat.8.old Sat Sep 28 07:47:03 2024 X--- ./usr/src/usr.sbin/pstat/pstat.8 Tue Dec 16 12:59:14 2025 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pstat.8 6.4 (2.11BSD) 2024/9/28 X .\" X .TH PSTAT 8 "September 28, 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! .\" @(#)pstat.8 6.5 (2.11BSD) 2025/12/16 X .\" X .TH PSTAT 8 "September 28, 2024" X .UC 4 X*************** X*** 91,96 **** X--- 91,98 ---- X .IP SIZ/DEV X Number of bytes in an ordinary file, or X major and minor device of special file. X+ .IP FS X+ File system struct of the inode. X .PD X .TP X .B \-x X*** ./usr/src/usr.sbin/pstat/pstat.c.old Sat Sep 28 07:43:46 2024 X--- ./usr/src/usr.sbin/pstat/pstat.c Fri Dec 26 18:46:06 2025 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.9 (2.11BSD) 2024/9/28"; 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.10 (2.11BSD) 2025/12/26"; X #endif X X /* X*************** X*** 110,116 **** X int totflg; X int allflg; X int kflg; X! u_short getw(); X X main(argc, argv) X char **argv; X--- 110,116 ---- X int totflg; X int allflg; X int kflg; X! u_short pgetw(); X X main(argc, argv) X char **argv; X*************** X*** 247,253 **** X u_int ninode, ainode; X X nin = 0; X! ninode = getw((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--- 247,253 ---- X u_int ninode, ainode; X X nin = 0; 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*************** X*** 307,313 **** X } X X u_short X! getw(loc) X off_t loc; X { X u_short word; X--- 307,313 ---- X } X X u_short X! pgetw(loc) X off_t loc; X { X u_short word; X*************** X*** 335,341 **** X u_int ntx, ntxca, atext; X X ntx = ntxca = 0; X! ntext = getw((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--- 335,341 ---- X u_int ntx, ntxca, atext; X X ntx = ntxca = 0; 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*************** X*** 392,398 **** X register struct proc *pp; X register loc, np; X X! nproc = getw((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--- 392,398 ---- X register struct proc *pp; X register loc, np; X 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*************** X*** 731,737 **** X static char *dtypes[] = { "???", "inode", "socket", "pipe" }; X X nf = 0; X! nfile = getw((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--- 731,737 ---- X static char *dtypes[] = { "???", "inode", "socket", "pipe" }; X 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*************** X*** 848,854 **** X X switch(nlind) { X case SWAPMAP: X! nswap = getw((off_t)nl[SNSWAP].n_value); X printf("%4u kB used, %4u kB free, %4u kB max\n", X (nswap-freetot)/2, freetot/2, freemax/2); X break; X--- 848,854 ---- X X switch(nlind) { X case SWAPMAP: X! nswap = pgetw((off_t)nl[SNSWAP].n_value); X printf("%4u kB used, %4u kB free, %4u kB max\n", X (nswap-freetot)/2, freetot/2, freemax/2); X break; X*************** X*** 874,880 **** X u_long l_baddr; X int i; X X! nbuf = getw((off_t)nl[SNBUF].n_value); X if (nbuf <= 0 || nbuf >= 2000) { X fprintf(stderr, "number of buffers is preposterous (%d)\n", X nbuf); X--- 874,880 ---- X u_long l_baddr; X int i; X X! nbuf = pgetw((off_t)nl[SNBUF].n_value); X if (nbuf <= 0 || nbuf >= 2000) { X fprintf(stderr, "number of buffers is preposterous (%d)\n", X nbuf); X*** ./usr/src/usr.sbin/rmt/Makefile.old Sun Nov 17 22:39:15 1996 X--- ./usr/src/usr.sbin/rmt/Makefile Tue Dec 9 14:56:05 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= rmt.c X OBJS= rmt.o X MAN= rmt.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= rmt.c X OBJS= rmt.o X MAN= rmt.0 X*************** X*** 13,19 **** X all: rmt rmt.0 X X rmt: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X rmt.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: rmt rmt.0 X X rmt: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X rmt.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: rmt X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 rmt ${DESTDIR}/usr/sbin/rmt X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rmt X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 rmt /usr/sbin/rmt X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/rxformat/Makefile.old Sun Nov 17 23:01:27 1996 X--- ./usr/src/usr.sbin/rxformat/Makefile Tue Dec 9 14:56:11 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= rxformat.c X OBJS= rxformat.o X MAN= rxformat.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= rxformat.c X OBJS= rxformat.o X MAN= rxformat.0 X*************** X*** 13,19 **** X all: rxformat rxformat.0 X X rxformat: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X rxformat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: rxformat rxformat.0 X X rxformat: ${OBJS} X! ${CC} ${LDFLAGS} -o $@ ${OBJS} X X rxformat.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: rxformat X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 rxformat ${DESTDIR}/usr/sbin/rxformat X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rxformat X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 rxformat /usr/sbin/rxformat X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/traceroute/Makefile.old Sun Dec 1 19:57:56 1996 X--- ./usr/src/usr.sbin/traceroute/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 1,18 **** X! # X! # traceroute Makefile. Revised 1996/11/17 X! # X! INCL = X CFLAGS = -O -i X! LIBS = X X all: traceroute traceroute.0 X X traceroute: traceroute.o X! cc $(CFLAGS) $(INCL) -o traceroute traceroute.o $(LIBS) X X install: traceroute traceroute.0 X! install -c -s -o root -g bin -m 4551 traceroute ${DESTDIR}/usr/sbin/traceroute X! install -c -m 444 -o bin -g bin traceroute.0 ${DESTDIR}/usr/man/cat8 X X traceroute.0: traceroute.8 X /usr/man/manroff traceroute.8 > traceroute.0 X--- 1,16 ---- X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X! X CFLAGS = -O -i X! LDFLAGS = -i X X all: traceroute traceroute.0 X X traceroute: traceroute.o X! cc $(LDFLAGS) -o traceroute traceroute.o X X install: traceroute traceroute.0 X! install -c -s -o root -g staff -m 4551 traceroute /usr/sbin/traceroute X! install -c -m 444 -o root -g staff traceroute.0 /usr/man/cat8 X X traceroute.0: traceroute.8 X /usr/man/manroff traceroute.8 > traceroute.0 X*************** X*** 21,25 **** X rm -f *.o traceroute traceroute.0 core X X lint: X! lint -b -h -x $(INCL) traceroute.c | \ X grep -v 'possible pointer alignment problem' X--- 19,23 ---- X rm -f *.o traceroute traceroute.0 core X X lint: X! lint -b -h -x traceroute.c | \ X grep -v 'possible pointer alignment problem' X*** ./usr/src/usr.sbin/quot/Makefile.old Tue Nov 19 22:13:19 1996 X--- ./usr/src/usr.sbin/quot/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= quot.c X OBJS= quot.o X MAN= quot.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= quot.c X OBJS= quot.o X MAN= quot.0 X*************** X*** 13,19 **** X all: quot quot.0 X X quot: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X quot.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: quot quot.0 X X quot: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X quot.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: quot X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o bin -g operator -m 2755 quot ${DESTDIR}/usr/sbin/quot X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: quot X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g operator -m 2755 quot /usr/sbin/quot X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/bad144/Makefile.old Thu Sep 26 20:02:37 2024 X--- ./usr/src/usr.sbin/bad144/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= bad144.c X OBJS= bad144.o X MAN= bad144.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= bad144.c X OBJS= bad144.o X MAN= bad144.0 X*************** X*** 13,19 **** X all: bad144 bad144.0 X X bad144: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X bad144.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: bad144 bad144.0 X X bad144: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X bad144.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: bad144 bad144.0 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 bad144 ${DESTDIR}/usr/sbin/bad144 X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: bad144 bad144.0 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 bad144 /usr/sbin/bad144 X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/repquota/Makefile.old Tue Nov 19 22:31:19 1996 X--- ./usr/src/usr.sbin/repquota/Makefile Tue Dec 9 14:56:00 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= repquota.c X OBJS= repquota.o X MAN= repquota.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= repquota.c X OBJS= repquota.o X MAN= repquota.0 X*************** X*** 13,19 **** X all: repquota repquota.0 X X repquota: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X repquota.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: repquota repquota.0 X X repquota: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X repquota.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: repquota X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 repquota ${DESTDIR}/usr/sbin/repquota X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: repquota X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 repquota /usr/sbin/repquota X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/edquota/Makefile.old Tue Nov 19 22:36:20 1996 X--- ./usr/src/usr.sbin/edquota/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= edquota.c X OBJS= edquota.o X MAN= edquota.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= edquota.c X OBJS= edquota.o X MAN= edquota.0 X*************** X*** 13,19 **** X all: edquota edquota.0 X X edquota: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X edquota.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: edquota edquota.0 X X edquota: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X edquota.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: edquota X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 edquota ${DESTDIR}/usr/sbin/edquota X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: edquota X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 edquota /usr/sbin/edquota X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/arp/Makefile.old Thu Sep 26 20:01:19 2024 X--- ./usr/src/usr.sbin/arp/Makefile Mon Dec 8 15:33:55 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2024/9/26 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= arp.c X OBJS= arp.o X MAN= arp.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= arp.c X OBJS= arp.o X MAN= arp.0 X*************** X*** 13,19 **** X all: arp arp.0 X X arp: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X arp.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: arp arp.0 X X arp: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X arp.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: arp arp.0 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o bin -g kmem -m 2755 arp ${DESTDIR}/usr/sbin/arp X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: arp arp.0 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g kmem -m 2755 arp /usr/sbin/arp X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/arp/arp.c.old Fri Sep 20 14:13:33 2024 X--- ./usr/src/usr.sbin/arp/arp.c Sat Dec 27 10:03:28 2025 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)arp.c 5.5 (2.11BSD) 2024/9/20"; X #endif X X /* X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)arp.c 5.6 (2.11BSD) 2025/12/27"; X #endif X X /* X*************** X*** 290,296 **** X } X mf = open(mem, 0); X if(mf < 0) { X! fprintf(fprintf, "arp: cannot open %s\n", mem); X exit(1); X } X #ifdef pdp11 X--- 290,296 ---- X } X mf = open(mem, 0); X if(mf < 0) { X! fprintf(stderr, "arp: cannot open %s\n", mem); X exit(1); X } X #ifdef pdp11 X*** ./usr/src/usr.sbin/trpt/Makefile.old Sat Sep 28 08:16:44 2024 X--- ./usr/src/usr.sbin/trpt/Makefile Tue Dec 9 14:58:56 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2024/9/28 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= trpt.c X OBJS= trpt.o X MAN= trpt.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= trpt.c X OBJS= trpt.o X MAN= trpt.0 X*************** X*** 13,19 **** X all: trpt trpt.0 X X trpt: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X trpt.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: trpt trpt.0 X X trpt: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X trpt.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 25,32 **** X mkdep ${CFLAGS} ${SRCS} X X install: trpt trpt.0 X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o bin -g kmem -m 2755 trpt ${DESTDIR}/usr/sbin/trpt X X lint: ${SRCS} X lint -hax ${SRCS} X--- 25,32 ---- X mkdep ${CFLAGS} ${SRCS} X X install: trpt trpt.0 X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g kmem -m 2755 trpt /usr/sbin/trpt X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/trsp/Makefile.old Fri Nov 22 21:48:04 1996 X--- ./usr/src/usr.sbin/trsp/Makefile Thu Dec 18 07:25:41 2025 X*************** X*** 1,10 **** X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.0 (2.11BSD) 1996/11/16 X # X CFLAGS= -O X! SEPFLAG= -i X SRCS= trsp.c X OBJS= trsp.o X MAN= trsp.0 X--- 1,10 ---- X # X # Public Domain. 1996/11/16 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/12/18 X # X CFLAGS= -O X! LDFLAGS= -i X SRCS= trsp.c X OBJS= trsp.o X MAN= trsp.0 X*************** X*** 13,19 **** X all: trsp trsp.0 X X trsp: ${OBJS} X! ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} X X trsp.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X--- 13,19 ---- X all: trsp trsp.0 X X trsp: ${OBJS} X! ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} X X trsp.0: ${MANSRC} X /usr/man/manroff ${MANSRC} > ${MAN} X*************** X*** 24,32 **** X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X! install: trsp X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 X! install -s -o root -g bin -m 755 trsp ${DESTDIR}/usr/sbin/trsp X X lint: ${SRCS} X lint -hax ${SRCS} X--- 24,32 ---- X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X! install: all X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8 X! install -c -s -o root -g staff -m 755 trsp /usr/sbin/trsp X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.sbin/ntp/man/Makefile.old Sun Dec 1 19:48:33 1996 X--- ./usr/src/usr.sbin/ntp/man/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 1,4 **** X! DESTDIR= X MANDIR=/usr/man/cat8 X MANSRC= ntp.8 ntpd.8 ntpdc.8 X MAN= ntp.0 ntpd.0 ntpdc.0 X--- 1,5 ---- X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! X MANDIR=/usr/man/cat8 X MANSRC= ntp.8 ntpd.8 ntpdc.8 X MAN= ntp.0 ntpd.0 ntpdc.0 X*************** X*** 6,19 **** X .SUFFIXES: .8 .0 X X .8.0: X! ${DESTDIR}/usr/man/manroff $*.8 > $*.0 X X all: ${MAN} X X install: ${MAN} X! install -c -m 444 -o bin -g bin ntp.0 ${DESTDIR}/${MANDIR} X! install -c -m 444 -o bin -g bin ntpd.0 ${DESTDIR}/${MANDIR} X! install -c -m 444 -o bin -g bin ntpdc.0 ${DESTDIR}/${MANDIR} X X clean: X @rm -f *~ ${MAN} X--- 7,20 ---- X .SUFFIXES: .8 .0 X X .8.0: X! /usr/man/manroff $*.8 > $*.0 X X all: ${MAN} X X install: ${MAN} X! install -c -m 444 -o root -g staff ntp.0 ${MANDIR} X! install -c -m 444 -o root -g staff ntpd.0 ${MANDIR} X! install -c -m 444 -o root -g staff ntpdc.0 ${MANDIR} X X clean: X @rm -f *~ ${MAN} X*** ./usr/src/usr.sbin/ntp/Makefile.old Sun Dec 1 20:17:09 1996 X--- ./usr/src/usr.sbin/ntp/Makefile Tue Nov 25 18:41:53 2025 X*************** X*** 1,4 **** X! # @(#) Makefile 1.0 (2.11BSD) 1996/12/1 X # X # $Log: Makefile,v $ X # Revision 3.4.1.7 89/05/18 12:43:32 louie 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*************** X*** 55,61 **** X # verify that certain arithmetic operations are done correctly on the X # host that the code is being compiled on. X # X- DESTDIR= X LDFLAGS= -i X BINDIR=/usr/sbin X LIBS= X--- 55,60 ---- X*************** X*** 130,136 **** X @./ntest X X man: FRC X! cd man; make ${MFLAGS} DESTDIR=${DESTDIR} all X X ntp: ntp.o ntpsubs.o X ${CC} ${LDFLAGS} -o ntp ntp.o ntpsubs.o ${LIBS} X--- 129,135 ---- X @./ntest X X man: FRC X! cd man; make ${MFLAGS} all X X ntp: ntp.o ntpsubs.o X ${CC} ${LDFLAGS} -o ntp ntp.o ntpsubs.o ${LIBS} X*************** X*** 154,167 **** X X install: ${PROGS} X @./ntest X! ${INSTALL} ntpd ${DESTDIR}${BINDIR}/ntpd X! ${INSTALL} ntp ${DESTDIR}${BINDIR}/ntp X! ${INSTALL} ntpdc ${DESTDIR}${BINDIR}/ntpdc X! cd man; make ${MFLAGS} DESTDIR=${DESTDIR} install X X clean: X rm -f *.o *~ ${PROGS} ntest sock_test X! cd man; make ${MFLAGS} DESTDIR=${DESTDIR} clean X X lint: X lint -bac ${DEFINES} ${NTPDSRC} X--- 153,166 ---- X X install: ${PROGS} X @./ntest X! ${INSTALL} ntpd ${BINDIR}/ntpd X! ${INSTALL} ntp ${BINDIR}/ntp X! ${INSTALL} ntpdc ${BINDIR}/ntpdc X! cd man; make ${MFLAGS} install X X clean: X rm -f *.o *~ ${PROGS} ntest sock_test X! cd man; make ${MFLAGS} clean X X lint: X lint -bac ${DEFINES} ${NTPDSRC} X*** ./usr/src/usr.sbin/nc/Makefile.old Sat Jul 10 22:54:29 2021 X--- ./usr/src/usr.sbin/nc/Makefile Mon Dec 8 15:33:56 2025 X*************** X*** 1,5 **** X # X! # @(#)Makefile 1.0 (2.11BSD) 2021/7/10 X # X X # DFLAGS = -DTEST -DDEBUG X--- 1,5 ---- X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/28 X # X X # DFLAGS = -DTEST -DDEBUG X*************** X*** 23,30 **** X /usr/man/manroff ${MANSRC} > ${MAN} X X install: ${PROG} ${MAN} X! install -c -s -o bin -g bin $(PROG) ${DESTDIR}/usr/sbin/${PROG} X! install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/${MAN} X X clean: X rm -f ${PROG} ${MAN} ${OBJS} X--- 23,30 ---- X /usr/man/manroff ${MANSRC} > ${MAN} X X install: ${PROG} ${MAN} X! install -c -s -o root -g staff $(PROG) /usr/sbin/${PROG} X! install -c -o root -g staff -m 444 ${MAN} /usr/man/cat8/${MAN} X X clean: X rm -f ${PROG} ${MAN} ${OBJS} X*** ./usr/src/usr.sbin/Makefile.old Sun Aug 31 20:54:40 2025 X--- ./usr/src/usr.sbin/Makefile Mon Dec 8 19:50:31 2025 X*************** X*** 1,14 **** X # X # Public domain - 1996/10/24 - sms X # X! # @(#)Makefile 1.4 (2.11BSD) 2025/8/31 X! # X! DESTDIR= X! CFLAGS= -O X! SEPFLAG= -i X X! SUBDIR= ac accton arff arp bad144 catman chown chroot config cron dev_mkdb \ X! diskpart edquota flcopy implog implogd inetd kgmon \ 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--- 1,10 ---- 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*** 16,28 **** X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} SEPFLAG=${SEPFLAG} all X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X--- 12,24 ---- X all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} all X X FRC: X X install: FRC X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X X clean: X for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X*** ./usr/src/sys/pdpstand/Makefile.old Sat Jan 4 12:37:43 2020 X--- ./usr/src/sys/pdpstand/Makefile Thu Jan 8 16:24:16 2026 X*************** X*** 1,4 **** X! # Makefile (2.11BSD) 2.5 2020/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.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*************** X*** 70,83 **** X ./maketape /dev/nr${TAPE} maketape.data 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 hosts include ingres \ X! lib libdata libexec local man msgs new old preserve pub \ X sbin share spool tmp ucb X cd ${ROOT}/usr/src; tar cfb /dev/nr${TAPE} 20 \ X sys X cd ${ROOT}/usr/src; tar cfb /dev/r${TAPE} 20 \ X Makefile bin etc games \ X! lib libexec local man new old sbin share ucb usr.bin \ X usr.lib usr.sbin X X tape1: ${ALL} ${DUMP} X--- 70,83 ---- X ./maketape /dev/nr${TAPE} maketape.data 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! lib libdata libexec local man msgs new preserve pub \ X sbin share spool tmp ucb X cd ${ROOT}/usr/src; tar cfb /dev/nr${TAPE} 20 \ X sys X cd ${ROOT}/usr/src; tar cfb /dev/r${TAPE} 20 \ X Makefile bin etc games \ X! lib libexec local man new sbin share ucb usr.bin \ X usr.lib usr.sbin X X tape1: ${ALL} ${DUMP} X*************** X*** 84,91 **** X ./maketape /dev/nr${TAPE} maketape.data 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 hosts include ingres \ X! lib libdata libexec local man msgs new old preserve pub \ X sbin share spool tmp ucb X cd ${ROOT}/usr/src; tar cfb /dev/nr${TAPE} 20 \ X sys X--- 84,91 ---- X ./maketape /dev/nr${TAPE} maketape.data 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! lib libdata libexec local man msgs new preserve pub \ X sbin share spool tmp ucb X cd ${ROOT}/usr/src; tar cfb /dev/nr${TAPE} 20 \ X sys X*************** X*** 99,105 **** X tape2: X cd ${ROOT}/usr/src; tar cfb /dev/r${TAPE} 20 \ X Makefile bin etc games \ X! lib libexec local man new old sbin share ucb usr.bin \ X usr.lib usr.sbin X X ${DUMP}: X--- 99,105 ---- X tape2: X cd ${ROOT}/usr/src; tar cfb /dev/r${TAPE} 20 \ X Makefile bin etc games \ X! lib libexec local man new sbin share ucb usr.bin \ X usr.lib usr.sbin X X ${DUMP}: X*************** X*** 109,116 **** X dump: X dump 0f ${DUMP} /dev/r${DISK} X X! install: boot X! install -s boot ${ROOT}/ X X X libsa.a: ${DRIVERS} X--- 109,116 ---- X dump: X dump 0f ${DUMP} /dev/r${DISK} X X! install: boot toyset disklabel X! install -s -m 744 boot toyset disklabel ${ROOT}/ X X X libsa.a: ${DRIVERS} X*** ./VERSION.old Sun Aug 31 14:43:26 2025 X--- ./VERSION Fri Jan 2 17:53:14 2026 X*************** X*** 1,5 **** X! Current Patch Level: 498 X! Date: September 7, 2025 X X 2.11 BSD X ============ X--- 1,5 ---- X! Current Patch Level: 499 X! Date: January 2, 2026 X X 2.11 BSD X ============ SHAR_EOF fi if test -f 'OLD499G.patch' then echo shar: "will not over-write existing file 'OLD499G.patch'" else sed 's/^X//' << \SHAR_EOF > 'OLD499G.patch' X*** ./usr/src/ucb/ftp/cmds.c.old Fri Mar 21 18:53:02 2025 X--- ./usr/src/ucb/ftp/cmds.c Thu Jan 8 12:12:03 2026 X*************** X*** 16,22 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmds.c 5.18.3 (2.11BSD) 2025/03/21"; X #endif X X /* X--- 16,22 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmds.c 5.18.3 (2.11BSD) 2026/1/5"; X #endif X X /* X*************** X*** 55,60 **** X--- 55,71 ---- X jmp_buf jabort; X char *dotrans(), *domap(); 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 /* X * Connect to peer server and X * auto-login, if possible. X*************** X*** 75,81 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(to) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 86,92 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(to) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 307,313 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(local-file) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 318,324 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(local-file) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 321,327 **** X if (argc < 3) { X (void) strcat(line, " "); X printf("(remote-file) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 332,338 ---- X if (argc < 3) { X (void) strcat(line, " "); X printf("(remote-file) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 366,372 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(local-files) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 377,383 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(local-files) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 513,519 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-file) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 524,530 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-file) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 527,533 **** X if (argc < 3) { X (void) strcat(line, " "); X printf("(local-file) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 538,544 ---- X if (argc < 3) { X (void) strcat(line, " "); X printf("(local-file) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 660,666 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-files) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 671,677 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-files) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 984,990 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-directory) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 995,1001 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-directory) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1040,1046 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-file) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1051,1057 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-file) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1066,1072 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-files) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1077,1083 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-files) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1111,1117 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(from-name) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1122,1128 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(from-name) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1125,1131 **** X if (argc < 3) { X (void) strcat(line, " "); X printf("(to-name) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1136,1142 ---- X if (argc < 3) { X (void) strcat(line, " "); X printf("(to-name) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1181,1187 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-files) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1192,1198 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(remote-files) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1189,1195 **** X if (argc < 3) { X (void) strcat(line, " "); X printf("(local-file) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1200,1206 ---- X if (argc < 3) { X (void) strcat(line, " "); X printf("(local-file) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1297,1303 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(username) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1308,1314 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(username) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1362,1368 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(directory-name) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1373,1379 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(directory-name) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1389,1395 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(directory-name) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1400,1406 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(directory-name) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1418,1424 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(command line to send) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1429,1435 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(command line to send) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1453,1459 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(arguments to SITE command) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1464,1470 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(arguments to SITE command) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1485,1491 **** X if (argc < 3) { X (void) strcat(line, " "); X printf("(mode and file-name) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1496,1502 ---- X if (argc < 3) { X (void) strcat(line, " "); X printf("(mode and file-name) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1572,1585 **** X confirm(cmd, file) X char *cmd, *file; X { X- char line[BUFSIZ]; X X if (!interactive) X return (1); X printf("%s %s? ", cmd, file); X! (void) fflush(stdout); X! (void) gets(line); X! return (*line != 'n' && *line != 'N'); X } X X fatal(msg) X--- 1583,1595 ---- X confirm(cmd, file) X char *cmd, *file; X { X X if (!interactive) X return (1); X printf("%s %s? ", cmd, file); X! line[0] = '\0'; X! cmdgets(); X! return (line[0] != 'n' && line[0] != 'N'); X } X X fatal(msg) X*************** X*** 1679,1685 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(command) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1689,1695 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(command) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 1812,1818 **** X if (argc < 3) { X (void) strcat(line, " "); X printf("(mapout) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 1822,1828 ---- X if (argc < 3) { X (void) strcat(line, " "); X printf("(mapout) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 2066,2072 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(macro name) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 2076,2082 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(macro name) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 2129,2135 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(filename) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 2139,2145 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(filename) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 2153,2159 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(filename) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 2163,2169 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(filename) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*** ./usr/src/ucb/ftp/domacro.c.old Mon Jun 26 00:06:29 1989 X--- ./usr/src/ucb/ftp/domacro.c Mon Jan 5 13:38:15 2026 X*************** X*** 16,23 **** X */ X X #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)domacro.c 1.6 (Berkeley) 2/28/89"; X! #endif /* not lint */ X X #include "ftp_var.h" X X--- 16,23 ---- 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 X*************** X*** 27,32 **** X--- 27,35 ---- X #include X #include X X+ /* in cmds.c */ X+ extern void cmdgets(); X+ X domacro(argc, argv) X int argc; X char *argv[]; X*************** X*** 42,48 **** X if (argc < 2) { X (void) strcat(line, " "); X printf("(macro name) "); X! (void) gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 45,51 ---- X if (argc < 2) { X (void) strcat(line, " "); X printf("(macro name) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*** ./usr/src/ucb/ftp/main.c.old Fri Mar 21 18:53:02 2025 X--- ./usr/src/ucb/ftp/main.c Mon Jan 5 14:17:43 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.14 (2.11BSD) 2025/3/21"; 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.15 (2.11BSD) 2026/1/5"; X #endif X X /* X*************** X*** 207,212 **** X--- 207,213 ---- X { X register struct cmd *c; X struct cmd *getcmd(); X+ char *cp; X extern int help(); X X if (!top) X*************** X*** 216,226 **** X printf("ftp> "); X (void) fflush(stdout); X } X! if (gets(line) == 0) { X if (feof(stdin) || ferror(stdin)) X quit(); X break; X } X if (line[0] == 0) X break; X makeargv(); X--- 217,230 ---- X printf("ftp> "); X (void) fflush(stdout); X } X! if (fgets(line, sizeof line, stdin) == 0) { X if (feof(stdin) || ferror(stdin)) X quit(); X break; X } X+ cp = index(line, '\n'); X+ if (cp) *cp = '\0'; X+ X if (line[0] == 0) X break; X makeargv(); X*** ./usr/src/ucb/telnet.c.old Wed Mar 26 20:06:52 2025 X--- ./usr/src/ucb/telnet.c Mon Jan 5 15:18:57 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)telnet.c 5.18 (2.11BSD) 2025/3/26"; X #endif X 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*************** X*** 1936,1942 **** X char *argv[]; X { X register char *arg; X! char buf[50]; X X printf( X "Deprecated usage - please use 'set escape%s%s' in the future.\n", X--- 1936,1942 ---- X char *argv[]; X { X register char *arg; X! char buf[4]; X X printf( X "Deprecated usage - please use 'set escape%s%s' in the future.\n", X*************** X*** 1945,1951 **** X arg = argv[1]; X else { X printf("new escape character: "); X! gets(buf); X arg = buf; X } X if (arg[0] != '\0') X--- 1945,1952 ---- X arg = argv[1]; X else { X printf("new escape character: "); X! fgets(buf, sizeof (buf), stdin); X! if (arg = index(buf, '\n')) *arg = '\0'; X arg = buf; X } X if (arg[0] != '\0') X*************** X*** 2033,2038 **** X--- 2034,2040 ---- X char *argv[]; X { X register struct hostent *host = 0; X+ char *cp; X X if (connected) { X printf("?Already connected to %s\n", hostname); X*************** X*** 2041,2047 **** X if (argc < 2) { X (void) strcpy(line, "Connect "); X printf("(to) "); X! gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 2043,2051 ---- X if (argc < 2) { X (void) strcpy(line, "Connect "); X printf("(to) "); X! fgets(&line[strlen(line)], sizeof(line) - strlen(line), stdin); X! cp = index(line, '\n'); X! if (cp) *cp = '\0'; X makeargv(); X argc = margc; X argv = margv; X*************** X*** 2283,2288 **** X--- 2287,2293 ---- X int top; X { X register struct cmd *c; X+ char *cp; X X setcommandmode(); X if (!top) { X*************** X*** 2293,2303 **** X } X for (;;) { X printf("%s> ", prompt); X! if (gets(line) == 0) { X if (feof(stdin)) X quit(); X break; X } X if (line[0] == 0) X break; X makeargv(); X--- 2298,2311 ---- X } X for (;;) { X printf("%s> ", prompt); X! if (fgets(line, sizeof (line), stdin) == 0) { X if (feof(stdin)) X quit(); X break; X } X+ cp = index(line, '\n'); X+ if (cp) *cp = '\0'; X+ X if (line[0] == 0) X break; X makeargv(); X*** ./usr/src/usr.bin/find/bigram.c.old Mon Feb 16 18:22:18 1987 X--- ./usr/src/usr.bin/find/bigram.c Mon Jan 5 15:51:22 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)bigram.c 4.2 (Berkeley) 7/21/83"; X! #endif not lint X X /* X * bigram < text > bigrams X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)bigram.c 4.3 (2.11BSD) 2026/1/5"; X! #endif X X /* X * bigram < text > bigrams X*************** X*** 10,15 **** X--- 10,16 ---- X */ X X #include X+ #include X X #define MAXPATH 1024 /* maximum pathname length */ X X*************** X*** 19,27 **** X main ( ) X { X register int count, j; X X! while ( gets ( path ) != NULL ) { X! X count = prefix_length ( oldpath, path ); X /* X output post-residue bigrams only X--- 20,30 ---- X main ( ) X { X register int count, j; X+ char *cp; X X! while ( fgets(path, sizeof path, stdin ) != NULL ) { X! cp = index(path, '\n'); X! if (cp) *cp = '\0'; X count = prefix_length ( oldpath, path ); X /* X output post-residue bigrams only X*** ./usr/src/usr.bin/find/code.c.old Mon Feb 16 18:22:18 1987 X--- ./usr/src/usr.bin/find/code.c Mon Jan 5 15:51:46 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)code.c 4.2 (Berkeley) 7/21/83"; X! #endif not lint X X /* X * PURPOSE: sorted list compressor (works with a modified 'find' X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)code.c 4.3 (2.11BSD) 2026/1/5"; X! #endif X X /* X * PURPOSE: sorted list compressor (works with a modified 'find' X*************** X*** 28,33 **** X--- 28,34 ---- X */ X X #include X+ #include X X #define MAXPATH 1024 /* maximum pathname length */ X #define RESET 30 /* switch code */ X*************** X*** 41,47 **** X { X int count, oldcount, diffcount; X int j, code; X! char bigram[3]; X FILE *fp; X X oldcount = 0; X--- 42,48 ---- X { X int count, oldcount, diffcount; X int j, code; X! char bigram[3], *cp; X FILE *fp; X X oldcount = 0; X*************** X*** 54,60 **** X fgets ( bigrams, 257, fp ); X fwrite ( bigrams, 1, 256, stdout ); X X! while ( gets ( path ) != NULL ) { X /* X squelch unprintable chars so as not to botch decoding X */ X--- 55,63 ---- X fgets ( bigrams, 257, fp ); X fwrite ( bigrams, 1, 256, stdout ); X X! while ( fgets(path, sizeof path, stdin ) != NULL ) { X! cp = index(path, '\n'); X! if (cp) *cp = '\0'; X /* X squelch unprintable chars so as not to botch decoding X */ X*** ./usr/src/etc/netstart.old Mon Aug 30 21:13:23 2021 X--- ./usr/src/etc/netstart Mon Jan 12 17:29:37 2026 X*************** X*** 1,6 **** X #!/bin/sh - X X! # @(#)netstart 5.3 (2.11BSD) 2021/8/30 X X INET=`testnet` X if [ $INET = YES ]; then X--- 1,6 ---- X #!/bin/sh - X X! # @(#)netstart 5.5 (2.11BSD) 2026/1/12 X X INET=`testnet` X if [ $INET = YES ]; then X*************** X*** 17,47 **** X rwhod=YES X named=NO X X! # myname is my symbolic name X! # my-netmask is specified in /etc/networks X! # my-default-address should be set to some machine where you X! # want to send all your packets, by default. X # X X! hostname=localhost.2bsd.com X netmask=255.255.255.0 X! broadcast=127.255.255.255 X! default=127.0.0.1 X X hostname $hostname >/dev/console 2>&1 X hostid $hostname >/dev/console 2>&1 X X if [ $INET = YES ]; then X! # ifconfig imp0 inet netmask $netmask $hostname broadcast $broadcast up -trailers >/dev/console 2>&1 X! # ifconfig en0 inet netmask $netmask $hostname broadcast $broadcast up -trailers >/dev/console 2>&1 X! # ifconfig ec0 inet netmask $netmask $hostname broadcast $broadcast up -trailers arp >/dev/console 2>&1 X! # ifconfig il0 inet netmask $netmask $hostname broadcast $broadcast up -trailers >/dev/console 2>&1 X! # ifconfig qe0 inet netmask $netmask $hostname broadcast $broadcast up -trailers >/dev/console 2>&1 X! # ifconfig qt0 inet netmask $netmask $hostname broadcast $broadcast up -trailers >/dev/console 2>&1 X! # ifconfig sl0 inet 192.254.254.2 192.254.254.1 -arp -trailers >/dev/console 2>&1 X # slattach /dev/ttyS6 9600 X! ifconfig lo0 inet localhost up -trailers >/dev/console 2>&1 X X route add $hostname localhost 0 >/dev/console 2>&1 X! route add default $default 1 >/dev/console 2>&1 X fi X--- 17,80 ---- 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! # 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*** ./usr/src/sbin/fsck/main.c.old Mon Nov 18 07:55:23 2019 X--- ./usr/src/sbin/fsck/main.c Tue Jan 6 07:02:20 2026 X*************** X*** 9,16 **** 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 (2.11BSD) 2019/11/18"; X! #endif not lint X X #include X #include X--- 9,16 ---- 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 #include X*************** X*** 37,42 **** X--- 37,43 ---- X char *name, inbuf[128], outbuf[128]; X X setbuffer(stdin, inbuf, sizeof (inbuf)); X+ setlinebuf(stdin); X setbuffer(stdout, outbuf, sizeof (outbuf)); X setlinebuf(stdout); X sync(); X*** ./usr/src/sys/pdpstand/mtboot.s.old Wed Mar 16 19:39:49 2016 X--- ./usr/src/sys/pdpstand/mtboot.s Tue Jan 6 17:02:16 2026 X*************** X*** 6,11 **** X--- 6,16 ---- X * 2016/03/10 - force bootflags to RB_ASKNAME|RB_SINGLE X * (auto/multi-user boot from tape makes no sense) X * X+ * 2026/1/6 - comment out erroneous 'drive ready' test in hrrec. the bit X+ * being tested was the ATA bit which is set for non-transfer X+ * operations such as rewind. For READ the bit would never be X+ * set resulting in an endless loop. X+ * X * This is a universal tape boot which can handle HT, TM, TS and TMSCP X * tapes. This boot is FULL. Some of the more extended error X * checking had to be left out to get all the drivers to fit. X*************** X*** 136,143 **** X htcmd: X tstb (csr) / controller ready? X bpl htcmd X! tst htds(csr) / drive ready? X! bpl htcmd X tstb htcs2+1(csr) / any controller errors? X bne ctlerr X bit $!1000,hter(csr) / any drive errors except HTER_FCE? X--- 141,149 ---- X htcmd: X tstb (csr) / controller ready? X bpl htcmd X! / see revision history for why these lines are commented out X! / tst htds(csr) / drive ready? X! / bpl htcmd X tstb htcs2+1(csr) / any controller errors? X bne ctlerr X bit $!1000,hter(csr) / any drive errors except HTER_FCE? X*** ./usr/src/ucb/man/apropos.c.old Wed Dec 31 10:46:55 2008 X--- ./usr/src/ucb/man/apropos.c Wed Jan 7 05:40:16 2026 X*************** X*** 15,33 **** X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 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 /* not lint */ X X! #ifndef lint X! static char sccsid[] = "@(#)apropos.c 5.6 (Berkeley) 6/29/88"; X! #endif /* not lint */ X X #include X #include X #include X #include X X #define DEF_PATH "/usr/man:/usr/new/man:/usr/local/man" X--- 15,32 ---- X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 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[] = "@(#)apropos.c 5.7 (2.11BSD) 2026/1/7"; X! #endif X X #include X #include X #include X+ #include X #include X X #define DEF_PATH "/usr/man:/usr/new/man:/usr/local/man" X*************** X*** 43,55 **** X int argc; X char **argv; X { X- extern char *optarg; X- extern int optind; 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], *getenv(), *malloc(); X X myname = (beg = rindex(*argv, '/')) ? beg + 1 : *argv; X if (!strcmp(myname, "apropos")) { X--- 42,53 ---- 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*************** X*** 104,110 **** X continue; X X /* for each file found */ X! for (foundman = YES; gets(buf);) { X if (isapropos) X lowstr(buf, wbuf); X else X--- 102,109 ---- 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 else X*** ./usr/src/ucb/msgs/msgs.c.old Tue Mar 25 17:35:17 2025 X--- ./usr/src/ucb/msgs/msgs.c Wed Jan 7 07:39: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[] = "@(#)msgs.c 5.2 (Berkeley) 4/10/86"; X! #endif not lint X X /* X * msgs - a user bulletin board 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) 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 * msgs - a user bulletin board program X*************** X*** 35,41 **** X * print message number X */ X X- #define V7 /* will look for TERM in the environment */ X #define OBJECT /* will object to messages without Subjects */ X /* #define REJECT /* will reject messages without Subjects X (OBJECT must be defined also) */ X--- 33,38 ---- X*************** X*** 50,55 **** X--- 47,53 ---- X #include X #include X #include X+ #include X #include "msgs.h" X X #define CMODE 0666 /* bounds file creation mode */ X*************** X*** 365,371 **** X if (nextmsg > lastmsg+1) { X printf("Warning: bounds have been reset (%d, %d)\n", X firstmsg, lastmsg); X! ftruncate(fileno(msgsrc), 0L); X newrc = YES; X } X else if (!rcfirst) X--- 363,369 ---- X if (nextmsg > lastmsg+1) { X printf("Warning: bounds have been reset (%d, %d)\n", X firstmsg, lastmsg); X! truncate(fname, 0L); X newrc = YES; X } X else if (!rcfirst) X*************** X*** 394,400 **** X fflush(msgsrc); X } X X- #ifdef V7 X if (totty) { X struct winsize win; X if (ioctl(fileno(stdout), TIOCGWINSZ, &win) != -1) X--- 392,397 ---- X*************** X*** 406,412 **** X } X } X } X! #endif X Lpp -= 6; /* for headers, etc. */ X X already = NO; X--- 403,409 ---- X } X } X } X! X Lpp -= 6; /* for headers, etc. */ X X already = NO; X*************** X*** 671,677 **** X ask(prompt) X char *prompt; X { X! char inch; X int n, cmsg; X off_t oldpos; X FILE *cpfrom, *cpto; X--- 668,674 ---- X ask(prompt) X char *prompt; X { X! char inch, *cp; X int n, cmsg; X off_t oldpos; X FILE *cpfrom, *cpto; X*************** X*** 679,685 **** X printf("%s ", prompt); X fflush(stdout); X intrpflg = NO; X! gets(inbuf); X if (intrpflg) X inbuf[0] = 'x'; X X--- 676,686 ---- X printf("%s ", prompt); X fflush(stdout); X intrpflg = NO; X! X! fgets(inbuf, sizeof inbuf, stdin); X! cp = index(inbuf, '\n'); X! if (cp) *cp = '\0'; X! X if (intrpflg) X inbuf[0] = 'x'; X X*** ./usr/src/etc/hosts.old Fri Jan 10 22:49:42 1997 X--- ./usr/src/etc/hosts Mon Jan 12 17:32:40 2026 X*************** X*** 1 **** X! 127.0.0.1 localhost.2bsd.com localhost.arpa localhost 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 SHAR_EOF fi exit 0 # End of shell archive