Skip to content

Commit

Permalink
Upload part 2 of source.
Browse files Browse the repository at this point in the history
  • Loading branch information
calmsacibis995 committed Nov 4, 2022
1 parent 83b4120 commit f5c14a5
Show file tree
Hide file tree
Showing 1,394 changed files with 69,572 additions and 26,184 deletions.
47 changes: 41 additions & 6 deletions usr/src/:mk
Original file line number Diff line number Diff line change
@@ -1,24 +1,54 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# All Rights Reserved
# Copyright (c) 1984 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)mk::mk 1.10.2.1"
#ident "@(#)mk::mk 1.10"
#
# Shell script for rebuilding the UNIX System
#
trap "exit 1" 1 2 3 15
if [ "$ROOT" = "" ]
then
PATH=/usr/ccs/bin:/sbin:/usr/sbin:/usr/bin:/etc ; export PATH
PATH=/bin:/etc:/usr/bin; export PATH
fi

UID_NAME=`id|sed 's/[()]/ /gp'|awk '{print $2}'`

# create target directories
./:mktarget
# Check for the existance of target directories
test -d ${ROOT:-"/"} || mkdir -p $ROOT
cat -s target.dirs | # print contents of the target directory list
egrep -v "^$|^#" | # get rid of blank lines and comments
while read TARGETDIR MODE OWNER GROUP
do
if [ ! -d ${ROOT}/$TARGETDIR ]
then
mkdir ${ROOT}/$TARGETDIR
if [ ! -d ${ROOT}/$TARGETDIR ]
then
echo "$0: stop: make of directory ${ROOT}/$TARGETDIR failed"
exit 1
fi

fi
if [ "$UID_NAME" = "root" ]
then
if [ ! -z "$MODE" -a "$MODE" != "-" ]
then
chmod $MODE ${ROOT}/$TARGETDIR
fi
if [ ! -z "$OWNER" -a "$OWNER" != "-" ]
then
chown $OWNER ${ROOT}/$TARGETDIR
fi
if [ ! -z "$GROUP" -a "$GROUP" != "-" ]
then
chgrp $GROUP ${ROOT}/$TARGETDIR
fi
fi
done

# install /usr/include and /usr/include/sys header files
./:mkhead
Expand Down Expand Up @@ -48,4 +78,9 @@ then
fi
# build the OS itself
./:mkuts
# build the compatibility package
if [ -d ucbcmd -d -s ucbhead -d -s ucblib ]
then
./:mkucb
fi
exit 0
4 changes: 2 additions & 2 deletions usr/src/:mkcmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# Copyright (c) 1984 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)mk::mkcmd 1.29"
#ident "@(#)mk::mkcmd 1.28"
#
MAKE=${MAKE:-make}
CLOBBER=${CLOBBER:-"ON"}
Expand Down
4 changes: 2 additions & 2 deletions usr/src/:mkhead
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# Copyright (c) 1984 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)mk::mkhead 1.19"
#ident "@(#)mk::mkhead 1.18"
#
# Install UNIX System header files
#
Expand Down
6 changes: 3 additions & 3 deletions usr/src/:mklib
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# Copyright (c) 1984 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)mk::mklib 1.8.1.2"
#ident "@(#)mk::mklib 1.8"
#
# Build UNIX System libraries
# For each directory build the library by invoking its
Expand All @@ -26,7 +26,7 @@ do
cd $LIB
if [ -f $LIB.mk ]
then
$MAKE -b -f $LIB.mk install
$MAKE -b -f $LIB.mk install I="install -i -n $ROOT/lib $ROOT/usr/lib"
if [ $? -ne 0 ]
then
echo ":mklib: *** $MAKE failed using $LIB.mk"
Expand Down
4 changes: 2 additions & 2 deletions usr/src/:mkstand
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# Copyright (c) 1984 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)mk::mkstand 1.7"
#ident "@(#)mk::mkstand 1.6"
#
# make UNIX System stand-alone libraries and commands
#
Expand Down
14 changes: 2 additions & 12 deletions usr/src/:mksyshead
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.


#ident "@(#)mk::mksyshead 1.24"
#ident "@(#)mk::mksyshead 1.20"
#
# Install UNIX System 'sys' header files
#
Expand Down Expand Up @@ -60,9 +52,7 @@ for DIR in sys $MACH/sys \
$MACH/netinet \
$MACH/nfs \
$MACH/rpc \
$MACH/des \
$MACH/fs \
$MACH/klm
$MACH/fs
do
TARGETBASE=`basename $DIR`
if [ -d $SRCDIR/$DIR ]
Expand Down
4 changes: 2 additions & 2 deletions usr/src/:mkuts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# Copyright (c) 1984 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)mk::mkuts 1.15"
#ident "@(#)mk::mkuts 1.14"
#
# Configure and make the UNIX Operating System with various devices
#
Expand Down
4 changes: 2 additions & 2 deletions usr/src/arglist
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# Copyright (c) 1984 AT&T
# All Rights Reserved

# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.

#ident "@(#)mk:arglist 1.3.1.1"
#ident "@(#)mk:arglist 1.3"
#
if [ x$1 = x+ ]
then
Expand Down
12 changes: 7 additions & 5 deletions usr/src/head/archives.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
/* Portions Copyright (c) 1988, Sun Microsystems, Inc. */
/* All Rights Reserved. */

#ident "@(#)head.usr:archives.h 1.6"
#ident "@(#)head.usr:archives.h 1.3"

/*
* Code review updated version.
*/

/* Magic numbers */

Expand Down Expand Up @@ -49,7 +53,7 @@ struct hdr_cpio {
char h_name[HNAMLEN]; /* filename */
} ;

/* cpio ODC header format */
/* cpio -c header format */

struct c_hdr {
char c_magic[CMS_LEN],
Expand All @@ -66,7 +70,7 @@ struct c_hdr {
c_name[HNAMLEN];
} ;

/* -c and CRC header format */
/* ASCII and CRC header format */

struct Exp_cpio_hdr {
char E_magic[CMS_LEN],
Expand Down Expand Up @@ -108,8 +112,6 @@ union tblock {
t_gid[TGIDLEN], /* gid of file */
t_size[TSIZLEN], /* size of file in bytes */
t_mtime[TTIMLEN], /* modification time of file */
t_devmajor[8], /* major number for special files */
t_devminor[8], /* minor number for special files */
t_cksum[TCRCLEN], /* checksum of header */
t_linkflag, /* indicates a link to a file */
t_linkname[TNAMLEN]; /* file this file linked with */
Expand Down
5 changes: 1 addition & 4 deletions usr/src/head/filehdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */

#ident "@(#)sgs-inc:common/filehdr.h 1.23"
#ident "@(#)sgs-inc:common/filehdr.h 1.22"

#ifndef _FILEHDR_H
#define _FILEHDR_H
Expand Down Expand Up @@ -171,8 +171,6 @@ struct filehdr {

/* Zilog */
/* 0544 and 0545 reserved for Zilog */
/* i860 */
#define I860MAGIC 0515

#define FILHDR struct filehdr
#define FILHSZ sizeof(FILHDR)
Expand All @@ -190,7 +188,6 @@ struct filehdr {
|| ((x)==I286SMAGIC) || ((x)==I286LMAGIC) \
|| ((x)==MC68KWRMAGIC) || ((x)==MC68KROMAGIC) \
|| ((x)==MC68KPGMAGIC) \
|| ((x)==I860MAGIC) \
|| ((x)==I386MAGIC))

#endif /* _FILEHDR_H */
13 changes: 3 additions & 10 deletions usr/src/head/fmtmsg.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* Copyright (c) 1988 AT&T */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */

/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */

#ident "@(#)head:fmtmsg.h 1.3"
#ident "@(#)head.usr:fmtmsg.h 1.1"

/*
* fmtmsg.h
Expand Down Expand Up @@ -34,7 +34,7 @@
* MM_MXACTLN Maximum size of an action string
*/

#define MM_MXLABELLN 25
#define MM_MXLABELLN 20
#define MM_MXTAGLN 32
#define MM_MXTXTLN 512
#define MM_MXACTLN 512
Expand Down Expand Up @@ -157,12 +157,5 @@


/* Function definition */

#if defined(__STDC__)
int fmtmsg(long, const char *, int, const char *, const char *, const char *);
int addseverity(int, const char *);

#else
int fmtmsg();
int addseverity();
#endif
8 changes: 2 additions & 6 deletions usr/src/head/ftw.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */

#ident "@(#)head:ftw.h 1.3.1.9"
#ident "@(#)head:ftw.h 1.3.1.7"
/*
* Codes for the third argument to the user-supplied function
* which is passed as the second argument to ftwalk
Expand Down Expand Up @@ -46,11 +46,9 @@ struct FTW

#if defined(__STDC__)

#include <sys/types.h>
#include <sys/stat.h>
extern int ftw(const char *, int (*)(const char *, const struct stat *, int), int);
extern int _xftw(const int, const char *, int (*)(const char *, const struct stat *, int), int);
extern int nftw(const char *, int (*)(const char *, const struct stat *, int, struct FTW *), int, int);
extern int nftw(const char *, int (*)(const char *, const struct stat *, int), int, int);

#else

Expand All @@ -74,8 +72,6 @@ int depth;
/* nftw not available to non-EFT applications */

#if defined(_STYPES)
#include <errno.h>

static int nftw(path, fn, depth, flags)
const char *path;
int (*fn) ();
Expand Down
4 changes: 2 additions & 2 deletions usr/src/head/grp.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef _GRP_H
#define _GRP_H

#ident "@(#)head:grp.h 1.3.1.9"
#ident "@(#)head:grp.h 1.3.1.8"

#include <sys/types.h>

Expand All @@ -26,7 +26,7 @@ struct group { /* see getgrent(3) */
extern void endgrent(void);
extern struct group *fgetgrent(FILE *);
extern struct group *getgrent(void);
extern struct group *getgrgid(gid_t);
extern struct group *getgrgid(uid_t);
extern struct group *getgrnam(const char *);
extern void setgrent(void);
extern int initgroups(const char *, gid_t);
Expand Down
12 changes: 1 addition & 11 deletions usr/src/head/ieeefp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */

#ident "@(#)head:ieeefp.h 1.17"
#ident "@(#)head:ieeefp.h 1.16"

#ifndef _IEEEFP_H
#define _IEEEFP_H
Expand Down Expand Up @@ -406,21 +406,11 @@ extern fp_union _getfltsw(fp_ftype,fp_op,char *,fp_union *,fp_union *,fp_union *
static void (* _p754_1)(int *, int (*)()) = _getflthw;
static fp_union (* _p754_2)(fp_ftype,fp_op,char *,fp_union *,fp_union *,fp_union *) = _getfltsw;

extern void _s2dec(float *, decimal *, int);
extern void _d2dec(double *, decimal *, int);
extern void _dec2s(decimal *, float *, int);
extern void _dec2d(decimal *, double *, int);

#else
extern void _getflthw();
extern fp_union _getfltsw();
static void (* _p754_1)() = _getflthw;
static fp_union (* _p754_2)() = _getfltsw;

extern void _s2dec();
extern void _d2dec();
extern void _dec2s();
extern void _dec2d();
#endif

#endif /* ndef P&%$_NOFAULT 1 */
Expand Down
3 changes: 1 addition & 2 deletions usr/src/head/libelf.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef _LIBELF_H
#define _LIBELF_H

#ident "@(#)sgs-inc:common/libelf.h 1.8"
#ident "@(#)sgs-inc:common/libelf.h 1.7"

#include <sys/types.h>
#include "sys/elf.h"
Expand Down Expand Up @@ -43,7 +43,6 @@ typedef enum {
ELF_C_SET,
ELF_C_FDDONE,
ELF_C_FDREAD,
ELF_C_RDWR,
ELF_C_NUM /* must be last */
} Elf_Cmd;

Expand Down
Loading

0 comments on commit f5c14a5

Please sign in to comment.