mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
140932d6d8 |
No files matched your search
@@ -0,0 +1,89 @@
|
||||
>From newsserv!kralizec.zeta.org.au!bde Sat Aug 20 01:50:59 1994
|
||||
From: Bruce Evans <newsserv!kralizec.zeta.org.au!bde>
|
||||
Newsgroups: stark.freebsd-bugs
|
||||
Subject: Re: uucp command fails with permission problems
|
||||
Date: Mon, 20 Jun 1994 15:13:31 +1000
|
||||
Organization: Gene Stark's home system
|
||||
Distribution: stark
|
||||
NNTP-Posting-Host: home.stark.cs.sunysb.edu
|
||||
To: [email protected], [email protected]
|
||||
Precedence: bulk
|
||||
|
||||
> The problem stems from the change the setreuid(). It
|
||||
> doesn't change the real uid any more, so uucp changes ids
|
||||
> back to the wrong id after opening the input file and
|
||||
> then tries to open a file in the spool directory with
|
||||
> the invoking user's permissions.
|
||||
>
|
||||
> The promised POSIX saved-setuid features don't work either,
|
||||
|
||||
I fixed setuid() and setgid() to support saved ids. This fixes
|
||||
uucp (when it is configured with HAVE_BROKEN_SETREUID=1 and
|
||||
HAVE_SAVED_SETUID=1). I don't know if the change is really safe.
|
||||
|
||||
Bruce
|
||||
|
||||
*** sys1/kern/kern_prot.c Wed May 4 17:54:23 1994
|
||||
--- src/sys/kern/kern_prot.c Sun Jun 12 06:47:11 1994
|
||||
***************
|
||||
*** 270,274 ****
|
||||
|
||||
uid = uap->uid;
|
||||
! if (uid != pc->p_ruid &&
|
||||
(error = suser(pc->pc_ucred, &p->p_acflag)))
|
||||
return (error);
|
||||
--- 270,274 ----
|
||||
|
||||
uid = uap->uid;
|
||||
! if (uid != pc->p_ruid && uid != pc->p_svuid &&
|
||||
(error = suser(pc->pc_ucred, &p->p_acflag)))
|
||||
return (error);
|
||||
***************
|
||||
*** 277,284 ****
|
||||
* not see our changes.
|
||||
*/
|
||||
pc->pc_ucred = crcopy(pc->pc_ucred);
|
||||
pc->pc_ucred->cr_uid = uid;
|
||||
- pc->p_ruid = uid;
|
||||
- pc->p_svuid = uid;
|
||||
p->p_flag |= SUGID;
|
||||
return (0);
|
||||
--- 277,286 ----
|
||||
* not see our changes.
|
||||
*/
|
||||
+ if (pc->pc_ucred->cr_uid == 0) {
|
||||
+ pc->p_ruid = uid;
|
||||
+ pc->p_svuid = uid;
|
||||
+ }
|
||||
pc->pc_ucred = crcopy(pc->pc_ucred);
|
||||
pc->pc_ucred->cr_uid = uid;
|
||||
p->p_flag |= SUGID;
|
||||
return (0);
|
||||
***************
|
||||
*** 330,339 ****
|
||||
|
||||
gid = uap->gid;
|
||||
! if (gid != pc->p_rgid && (error = suser(pc->pc_ucred, &p->p_acflag)))
|
||||
return (error);
|
||||
pc->pc_ucred = crcopy(pc->pc_ucred);
|
||||
pc->pc_ucred->cr_groups[0] = gid;
|
||||
! pc->p_rgid = gid;
|
||||
! pc->p_svgid = gid;
|
||||
p->p_flag |= SUGID;
|
||||
return (0);
|
||||
--- 332,344 ----
|
||||
|
||||
gid = uap->gid;
|
||||
! if (gid != pc->p_rgid && gid != pc->p_svgid &&
|
||||
! (error = suser(pc->pc_ucred, &p->p_acflag)))
|
||||
return (error);
|
||||
pc->pc_ucred = crcopy(pc->pc_ucred);
|
||||
pc->pc_ucred->cr_groups[0] = gid;
|
||||
! if (pc->pc_ucred->cr_uid == 0) {
|
||||
! pc->p_rgid = gid;
|
||||
! pc->p_svgid = gid;
|
||||
! }
|
||||
p->p_flag |= SUGID;
|
||||
return (0);
|
||||
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
From julian Wed Aug 24 20:05:58 1994
|
||||
Return-Path: <julian>
|
||||
Received: by tfs.com (smail3.1.28.1)
|
||||
Message-Id: <[email protected]>
|
||||
Date: Wed, 24 Aug 94 20:05 PDT
|
||||
From: julian (Julian Elischer)
|
||||
To: phk
|
||||
Subject: a patch to st.c and to related files...
|
||||
Status: RO
|
||||
|
||||
There have been several people asking for this patch.
|
||||
|
||||
>
|
||||
> From pressco.com!ljo Mon Aug 8 05:30:52 1994
|
||||
> Return-Path: <[email protected]>
|
||||
> Received: from dialup.oar.net by tfs.com (smail3.1.28.1) with SMTP
|
||||
> id m0qXTqt-0003wNC; Mon, 8 Aug 94 05:30 PDT
|
||||
> Received: from pressco.com for [email protected]
|
||||
> by dialup.oar.net (PIPE/8.6.8.1/931123.1402) id IAA15392; Mon, 8 Aug 1994 08:30:47 -0400
|
||||
> Received: from holiday.pressco.com (holiday-2) by pressco.com (4.1/SMI-4.1)
|
||||
> id AA09605; Mon, 8 Aug 94 08:20:22 EDT
|
||||
> Received: from localhost (ljo@localhost) by holiday.pressco.com (8.6.5/8.6.6) id IAA00562; Mon, 8 Aug 1994 08:21:15 -0400
|
||||
> Date: Mon, 8 Aug 1994 08:21:15 -0400
|
||||
> From: L Jonas Olsson <[email protected]>
|
||||
> Message-Id: <[email protected]>
|
||||
> To: [email protected]
|
||||
> Subject: st eom support
|
||||
> Status: RO
|
||||
|
||||
Hi Julian,
|
||||
Here's some basic patches to implement st eom.
|
||||
I also looked at how Sun is doing this. They have the file(s)
|
||||
/sys/sundev/ st_conf.c (older versions have st_reg.h). This has records
|
||||
for setting up each device, e.g.:
|
||||
{
|
||||
"ArchiveST 4mm DAT/DAT-DC", 14, "ARCHIVE python", 0x30, 512,
|
||||
(ST_KNOWS_EOD | ST_BSF | ST_BSR | ST_VARIABLE), 5000, 5000,
|
||||
{0, 0, 0, 0, }, {0, 0, 0, 0}
|
||||
}
|
||||
|
||||
The interesting part is the capabilities field. I guess we could
|
||||
infer capabilities from the density perhaps? All drives supporting DAT
|
||||
density does probably have ST_KNOWS_EOD | ST_BSF | ST_BSR |
|
||||
ST_VARIABLE.
|
||||
The Sun driver uses several st/mt fsf if ST_KNOWS_EOD is not present.
|
||||
|
||||
Jonas
|
||||
|
||||
*** src/sys/sys/mtio.h~ Thu Nov 18 04:07:52 1993
|
||||
--- src/sys/sys/mtio.h Fri Aug 5 11:12:14 1994
|
||||
***************
|
||||
*** 74,79 ****
|
||||
--- 74,82 ----
|
||||
#define MTSETDNSTY 11
|
||||
#endif
|
||||
|
||||
+ #define MTEOM 12 /* space to end of media */
|
||||
+ #define MTERASE 13 /* erase the whole tape */
|
||||
+
|
||||
/* structure for MTIOCGET - mag tape get status command */
|
||||
|
||||
struct mtget {
|
||||
*** src/sys/scsi/st.c.orig Fri Aug 5 11:01:26 1994
|
||||
--- src/sys/scsi/st.c Fri Aug 5 11:13:00 1994
|
||||
***************
|
||||
*** 1152,1157 ****
|
||||
--- 1152,1163 ----
|
||||
errcode = st_space(unit, number - nmarks,
|
||||
SP_FILEMARKS, flags);
|
||||
break;
|
||||
+ case MTEOM: /* space to end of media */
|
||||
+ errcode = st_chkeod(unit, FALSE, &nmarks, flags);
|
||||
+ if (errcode == ESUCCESS)
|
||||
+ errcode = st_space(unit, 1,
|
||||
+ SP_EOM, flags);
|
||||
+ break;
|
||||
case MTBSR: /* backward space record */
|
||||
number = -number;
|
||||
case MTFSR: /* forward space record */
|
||||
*** src/sbin/st/st.c~ Thu Nov 18 00:05:24 1993
|
||||
--- src/sbin/st/st.c Fri Aug 5 11:14:41 1994
|
||||
***************
|
||||
*** 62,67 ****
|
||||
--- 62,68 ----
|
||||
{ "weof", MTWEOF, 0 },
|
||||
{ "eof", MTWEOF, 0 },
|
||||
{ "fsf", MTFSF, 1 },
|
||||
+ { "eom", MTEOM, 1 },
|
||||
{ "bsf", MTBSF, 1 },
|
||||
{ "fsr", MTFSR, 1 },
|
||||
{ "bsr", MTBSR, 1 },
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,328 @@
|
||||
From freefall.cdrom.com!owner-freebsd-hackers Wed Aug 24 07:58:32 1994
|
||||
Return-Path: <[email protected]>
|
||||
Received: from freefall.cdrom.com by tfs.com (smail3.1.28.1) with SMTP
|
||||
id m0qdJmQ-0003xpa; Wed, 24 Aug 94 07:58 PDT
|
||||
Received: (from root@localhost) by freefall.cdrom.com (8.6.8/8.6.6) id HAA12879 for freebsd-hackers-outgoing; Wed, 24 Aug 1994 07:54:14 -0700
|
||||
Received: from id.slip.bcm.tmc.edu (id.slip.bcm.tmc.edu [128.249.248.67]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id HAA12864 for <[email protected]>; Wed, 24 Aug 1994 07:51:33 -0700
|
||||
Received: by id.slip.bcm.tmc.edu (8.6.8/1.34)
|
||||
id JAA17760; Wed, 24 Aug 1994 09:48:58 -0501
|
||||
Date: Wed, 24 Aug 1994 09:48:58 -0501
|
||||
From: [email protected] (Rich Murphey)
|
||||
Message-Id: <[email protected]>
|
||||
To: [email protected]
|
||||
CC: [email protected], [email protected], [email protected],
|
||||
[email protected]
|
||||
In-reply-to: <[email protected]> (message from David Greenman on Wed, 24 Aug 1994 02:55:06 -0700)
|
||||
Subject: Re: apply this patch file
|
||||
Reply-To: [email protected]
|
||||
Sender: [email protected]
|
||||
Precedence: bulk
|
||||
Status: RO
|
||||
|
||||
:From: David Greenman <[email protected]>
|
||||
:
|
||||
:>This is against POSIX: POSIX says that you can't do anything
|
||||
:>with carrier lost device until closing it, i.e. clearing
|
||||
:>TS_ZOMBIE is illegal. Proper POSIX way is close()/open() device
|
||||
:>again like kermit/uucp does. Ask Bruce for more detailed info.
|
||||
:
|
||||
: I'm aware of the issues involved.
|
||||
: The problem has to do with a vnode reference that prevents the tty from
|
||||
:being completely closed (caused by the tty being a session leader with a
|
||||
:control tty). Regardless of what POSIX says, this is the only reasonable way
|
||||
:to solve this problem until the code is changed to allow a session leader to
|
||||
:get rid of it's control tty. I tried to find a way to do this and was
|
||||
:unsuccessful. The only solution that the code allows is for the process to
|
||||
:exit. It should not be necessary for the process to exit. If you can come up
|
||||
:with fixes for slattach and pppd so that they work without the patch, then
|
||||
:please do.
|
||||
|
||||
Bruce Evans suggested doing the fork before reopening the tty and
|
||||
redialing. That fixes slattach and I commited it in the 2.0 tree.
|
||||
I've also sent a copy of the patch for 1.1.5's slattach to Poul.
|
||||
|
||||
diff -rub slattach.orig/slattach.c src/sbin/slattach/slattach.c
|
||||
--- slattach.orig/slattach.c Mon May 9 14:04:20 1994
|
||||
+++ src/sbin/slattach/slattach.c Tue Aug 23 00:39:05 1994
|
||||
@@ -85,8 +85,8 @@
|
||||
* [email protected]
|
||||
*
|
||||
* sighup_handler changed to set CLOCAL before running redial_cmd.
|
||||
- * added flag exiting, so exit_handler is not run twice.
|
||||
- *
|
||||
+ * added flag exiting, so exit_handler is not run twice. Fork
|
||||
+ * before reopening tty.
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -126,13 +126,13 @@
|
||||
void sigint_handler(); /* SIGINT handler */
|
||||
void sigterm_handler(); /* SIGTERM handler */
|
||||
void exit_handler(int ret); /* run exit_cmd iff specified upon exit. */
|
||||
-void setup_line(); /* configure slip line */
|
||||
-void attach_line(); /* switch to slip line discipline */
|
||||
+void setup_line(int cflag); /* configure terminal settings */
|
||||
+void slip_discipline(); /* switch to slip line discipline */
|
||||
+void configure_network(); /* configure slip interface */
|
||||
+void acquire_line(); /* get tty device as controling terminal */
|
||||
|
||||
int fd = -1;
|
||||
char *dev = (char *)0;
|
||||
-int slipdisc = SLIPDISC;
|
||||
-int ttydisc = TTYDISC;
|
||||
int flow_control = 0; /* non-zero to enable hardware flow control. */
|
||||
int modem_control = 0; /* non-zero iff we watch carrier. */
|
||||
int comstate; /* TIOCMGET current state of serial driver */
|
||||
@@ -145,7 +145,6 @@
|
||||
FILE *console;
|
||||
|
||||
struct termios tty;
|
||||
-struct termios tty_orig; /* For saving original tty state */
|
||||
|
||||
char devname[32];
|
||||
char hostname[MAXHOSTNAMELEN];
|
||||
@@ -171,7 +170,6 @@
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int option;
|
||||
- char name[32];
|
||||
extern char *optarg;
|
||||
extern int optind;
|
||||
|
||||
@@ -244,22 +242,13 @@
|
||||
|
||||
if (!foreground)
|
||||
daemon(0,0); /* fork, setsid, chdir /, and close std*. */
|
||||
+ /* daemon() closed stderr, so log errors from here on. */
|
||||
+ openlog("slattach",LOG_CONS|LOG_PID,LOG_DAEMON);
|
||||
|
||||
- /* Note: daemon() closes stderr, so log errors from here on. */
|
||||
- (void)sprintf(name,"slattach[%d]", getpid());
|
||||
- openlog(name,LOG_CONS,LOG_DAEMON);
|
||||
+ acquire_line(); /* get tty device as controling terminal */
|
||||
+ setup_line(0); /* configure for slip line discipline */
|
||||
+ slip_discipline(); /* switch to slip line discipline */
|
||||
|
||||
- if ((fd = open(dev, O_RDWR | O_NONBLOCK)) < 0) {
|
||||
- syslog(LOG_ERR, "open(%s): %m", dev);
|
||||
- exit_handler(1);
|
||||
- }
|
||||
- /* acquire the serial line as a controling terminal. */
|
||||
- if (ioctl(fd, TIOCSCTTY, 0) < 0)
|
||||
- syslog(LOG_NOTICE,"ioctl(TIOCSCTTY) failed: %s: %m");
|
||||
- /* Make us the foreground process group associated with the
|
||||
- slip line which is our controlling terminal. */
|
||||
- if (tcsetpgrp(fd, getpid()) < 0)
|
||||
- syslog(LOG_NOTICE,"tcsetpgrp failed: %s: %m");
|
||||
/* upon INT log a timestamp and exit. */
|
||||
if ((int)signal(SIGINT,sigint_handler) < 0)
|
||||
syslog(LOG_NOTICE,"cannot install SIGINT handler: %s: %m");
|
||||
@@ -269,36 +258,76 @@
|
||||
/* upon HUP redial and reconnect. */
|
||||
if ((int)signal(SIGHUP,sighup_handler) < 0)
|
||||
syslog(LOG_NOTICE,"cannot install SIGHUP handler: %s: %m");
|
||||
- /* Keep track of our original terminal values for redialing */
|
||||
- if (tcgetattr(fd, &tty_orig) < 0) {
|
||||
- syslog(LOG_ERR, "tcgetattr: %m");
|
||||
- exit_handler(1);
|
||||
- }
|
||||
-
|
||||
-
|
||||
- setup_line();
|
||||
|
||||
if (redial_on_startup)
|
||||
sighup_handler();
|
||||
- else
|
||||
- attach_line();
|
||||
- if (!(modem_control & CLOCAL)) {
|
||||
+ else if (!(modem_control & CLOCAL)) {
|
||||
ioctl(fd, TIOCMGET, &comstate);
|
||||
if (!(comstate & TIOCM_CD)) { /* check for carrier */
|
||||
/* force a redial if no carrier */
|
||||
kill (getpid(), SIGHUP);
|
||||
}
|
||||
}
|
||||
+ else
|
||||
+ configure_network(); /* configure the network if needed. */
|
||||
+
|
||||
for (;;) {
|
||||
- sigset_t mask = 0;
|
||||
+ sigset_t mask;
|
||||
+ sigemptyset(&mask);
|
||||
sigsuspend(&mask);
|
||||
}
|
||||
}
|
||||
|
||||
-void setup_line()
|
||||
+/* Close all FDs, fork, reopen tty port as 0-2, and make it the
|
||||
+ controlling terminal for our process group. */
|
||||
+void acquire_line()
|
||||
+{
|
||||
+ int ttydisc = TTYDISC;
|
||||
+ int pgrp;
|
||||
+
|
||||
+ ioctl(fd, TIOCSETD, &ttydisc); /* reset to tty discipline */
|
||||
+
|
||||
+ (void)close(STDIN_FILENO); /* close FDs before forking. */
|
||||
+ (void)close(STDOUT_FILENO);
|
||||
+ (void)close(STDERR_FILENO);
|
||||
+ if (fd > 2)
|
||||
+ (void)close(fd);
|
||||
+
|
||||
+ signal(SIGHUP, SIG_IGN); /* ignore HUP signal when parent dies. */
|
||||
+ daemon(0,0); /* fork, setsid, chdir /, and close std*. */
|
||||
+
|
||||
+ while (getppid () != 1)
|
||||
+ sleep (1); /* Wait for parent to die. */
|
||||
+
|
||||
+ if ((int)signal(SIGHUP,sighup_handler) < 0) /* Re-enable HUP signal */
|
||||
+ syslog(LOG_NOTICE,"cannot install SIGHUP handler: %s: %m");
|
||||
+
|
||||
+ if ((fd = open(dev, O_RDWR | O_NONBLOCK, 0)) < 0) {
|
||||
+ syslog(LOG_ERR, "open(%s) fd=%d: %m", dev, fd);
|
||||
+ exit_handler(1);
|
||||
+ }
|
||||
+ (void)dup2(fd, STDIN_FILENO);
|
||||
+ (void)dup2(fd, STDOUT_FILENO);
|
||||
+ (void)dup2(fd, STDERR_FILENO);
|
||||
+ if (fd > 2)
|
||||
+ (void)close (fd);
|
||||
+ fd = STDIN_FILENO;
|
||||
+
|
||||
+ /* acquire the serial line as a controling terminal. */
|
||||
+ if (ioctl(fd, TIOCSCTTY, 0) < 0)
|
||||
+ syslog(LOG_NOTICE,"ioctl(TIOCSCTTY) failed: %s: %m");
|
||||
+ /* Make us the foreground process group associated with the
|
||||
+ slip line which is our controlling terminal. */
|
||||
+ if (tcsetpgrp(fd, getpid()) < 0)
|
||||
+ syslog(LOG_NOTICE,"tcsetpgrp failed: %s: %m");
|
||||
+}
|
||||
+
|
||||
+/* Set the tty flags and set DTR. */
|
||||
+/* Call as setup_line(CLOCAL) to force clocal assertion. */
|
||||
+void setup_line(int cflag)
|
||||
{
|
||||
tty.c_lflag = tty.c_iflag = tty.c_oflag = 0;
|
||||
- tty.c_cflag = CREAD | CS8 | flow_control | modem_control;
|
||||
+ tty.c_cflag = CREAD | CS8 | flow_control | modem_control | cflag;
|
||||
tty.c_ispeed = tty.c_ospeed = speed;
|
||||
/* set the line speed and flow control */
|
||||
if (tcsetattr(fd, TCSAFLUSH, &tty) < 0) {
|
||||
@@ -310,6 +339,13 @@
|
||||
syslog(LOG_ERR, "ioctl(TIOCSDTR): %m");
|
||||
exit_handler(1);
|
||||
}
|
||||
+}
|
||||
+
|
||||
+/* Put the line in slip discipline. */
|
||||
+void slip_discipline()
|
||||
+{
|
||||
+ int slipdisc = SLIPDISC;
|
||||
+
|
||||
/* Switch to slip line discipline. */
|
||||
if (ioctl(fd, TIOCSETD, &slipdisc) < 0) {
|
||||
syslog(LOG_ERR, "ioctl(TIOCSETD): %m");
|
||||
@@ -322,8 +358,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
-/* switch to slip line discipline and configure the network. */
|
||||
-void attach_line()
|
||||
+/* configure the interface, eg. by passing the unit number to a script. */
|
||||
+void configure_network()
|
||||
{
|
||||
int new_unit;
|
||||
|
||||
@@ -354,27 +390,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
-/* Signal handler for SIGHUP when carrier is dropped. */
|
||||
+/* signup_handler() is invoked when carrier drops, eg. before redial. */
|
||||
void sighup_handler()
|
||||
{
|
||||
if(exiting) return;
|
||||
again:
|
||||
- /* reset discipline */
|
||||
- if (ioctl(fd, TIOCSETD, &ttydisc) < 0) {
|
||||
- syslog(LOG_ERR, "ioctl(TIOCSETD): %m");
|
||||
- exit_handler(1);
|
||||
- }
|
||||
/* invoke a shell for redial_cmd or punt. */
|
||||
if (redial_cmd) {
|
||||
+ acquire_line();
|
||||
+ setup_line(CLOCAL);
|
||||
syslog(LOG_NOTICE,"SIGHUP on %s (sl%d); running %s",
|
||||
dev,unit,redial_cmd);
|
||||
- if (!(modem_control & CLOCAL)) {
|
||||
- tty_orig.c_cflag |= CLOCAL;
|
||||
- if (tcsetattr(fd, TCSAFLUSH, &tty_orig) < 0) {
|
||||
- syslog(LOG_ERR, "tcsetattr(TCSAFLUSH): %m");
|
||||
- exit_handler(1);
|
||||
- }
|
||||
- }
|
||||
system(redial_cmd);
|
||||
/* Now check again for carrier (dial command is done): */
|
||||
if (!(modem_control & CLOCAL)) {
|
||||
@@ -390,50 +416,33 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
- /*
|
||||
- * No redial command.
|
||||
- *
|
||||
- * If modem control, just wait for carrier before
|
||||
- * falling through to setup_line() and attach_line().
|
||||
- * If no modem control, just fall through immediately.
|
||||
- */
|
||||
+ /* If modem control, just wait for carrier before attaching.
|
||||
+ If no modem control, just fall through immediately. */
|
||||
if (!(modem_control & CLOCAL)) {
|
||||
int carrier = 0;
|
||||
-
|
||||
syslog(LOG_NOTICE, "Waiting for carrier on %s (sl%d)",
|
||||
dev, unit);
|
||||
-
|
||||
- /* Now wait for carrier before attaching line: */
|
||||
+ /* Now wait for carrier before attaching line. */
|
||||
+ /* We must poll since CLOCAL prevents signal. */
|
||||
while (! carrier) {
|
||||
- /*
|
||||
- * Don't burn the CPU checking for carrier;
|
||||
- * carrier must be polled since there is no
|
||||
- * way to have a signal sent when carrier
|
||||
- * goes high (SIGHUP can only be sent when
|
||||
- * carrier is dropped); so add space between
|
||||
- * checks for carrier:
|
||||
- */
|
||||
sleep(2);
|
||||
-
|
||||
- /* Check for carrier present on tty port: */
|
||||
ioctl(fd, TIOCMGET, &comstate);
|
||||
- if (comstate & TIOCM_CD) {
|
||||
+ if (comstate & TIOCM_CD)
|
||||
carrier = 1;
|
||||
}
|
||||
- }
|
||||
-
|
||||
syslog(LOG_NOTICE, "Carrier now present on %s (sl%d)",
|
||||
dev, unit);
|
||||
}
|
||||
}
|
||||
- setup_line();
|
||||
- attach_line();
|
||||
+ setup_line(0);
|
||||
+ slip_discipline();
|
||||
+ configure_network();
|
||||
}
|
||||
/* Signal handler for SIGINT. We just log and exit. */
|
||||
void sigint_handler()
|
||||
{
|
||||
if(exiting) return;
|
||||
- syslog(LOG_NOTICE,"sl%d on %s caught SIGINT, exiting.",unit,dev);
|
||||
+ syslog(LOG_NOTICE,"SIGINT on %s (sl%d); exiting",dev,unit);
|
||||
exit_handler(0);
|
||||
}
|
||||
/* Signal handler for SIGTERM. We just log and exit. */
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# $Id: Makefile,v 1.29 1994/11/08 00:55:08 ache Exp $
|
||||
# Makefile,v 1.30 1994/11/14 20:52:54 phk Exp
|
||||
#
|
||||
# Make command line options:
|
||||
# -DCLOBBER will remove /usr/include and MOST of /usr/lib
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; $Id: TODO,v 1.4 1994/09/11 20:01:03 phk Exp $
|
||||
; TODO,v 1.5 1994/10/23 04:06:10 phk Exp
|
||||
|
||||
** To skip this preamble, search forward for the pattern `**'.
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# From: @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/18 21:25:26 wollman Exp
|
||||
|
||||
SUBDIR= cat chmod cp csh date dd df domainname echo ed expr hostname \
|
||||
kill ln ls mkdir mv pax ps pwd rcp rm rmail rmdir sh sleep \
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:53:25 davidg Exp
|
||||
|
||||
PROG= cat
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)cat.1 8.1 (Berkeley) 6/29/93
|
||||
.\" $Id$
|
||||
.\" cat.1,v 1.2 1994/09/24 02:53:25 davidg Exp
|
||||
.\"
|
||||
.Dd June 29, 1993
|
||||
.Dt CAT 1
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* cat.c,v 1.2 1994/09/24 02:53:26 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:53:36 davidg Exp
|
||||
|
||||
PROG= chmod
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
|
||||
.\" $Id$
|
||||
.\" chmod.1,v 1.2 1994/09/24 02:53:37 davidg Exp
|
||||
.\"
|
||||
.Dd March 31, 1994
|
||||
.Dt CHMOD 1
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* chmod.c,v 1.2 1994/09/24 02:53:37 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:53:39 davidg Exp
|
||||
|
||||
PROG= cp
|
||||
SRCS= cp.c utils.c
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
|
||||
.\" $Id$
|
||||
.\" cp.1,v 1.2 1994/09/24 02:53:40 davidg Exp
|
||||
.\"
|
||||
.Dd April 18, 1994
|
||||
.Dt CP 1
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* cp.c,v 1.2 1994/09/24 02:53:41 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.2 (Berkeley) 4/1/94
|
||||
* $Id$
|
||||
* extern.h,v 1.2 1994/09/24 02:53:41 davidg Exp
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* utils.c,v 1.2 1994/09/24 02:53:42 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.5 1994/09/24 02:53:44 davidg Exp
|
||||
#
|
||||
# C Shell with process control; VM/UNIX VAX Makefile
|
||||
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 8/14/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:54:22 davidg Exp
|
||||
|
||||
DIR= usd/04.csh
|
||||
SRCS= tabs csh.1 csh.2 csh.3 csh.4 csh.a csh.g
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.1 8.1 (Berkeley) 6/8/93
|
||||
.\" $Id$
|
||||
.\" csh.1,v 1.2 1994/09/24 02:54:23 davidg Exp
|
||||
.\"
|
||||
.EH 'USD:4-%''An Introduction to the C shell'
|
||||
.OH 'An Introduction to the C shell''USD:4-%'
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.2 8.1 (Berkeley) 6/8/93
|
||||
.\" $Id$
|
||||
.\" csh.2,v 1.2 1994/09/24 02:54:24 davidg Exp
|
||||
.\"
|
||||
.nr H1 1
|
||||
.NH
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.3 8.1 (Berkeley) 6/8/93
|
||||
.\" $Id$
|
||||
.\" csh.3,v 1.2 1994/09/24 02:54:26 davidg Exp
|
||||
.\"
|
||||
.nr H1 2
|
||||
.NH
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.4 8.1 (Berkeley) 6/8/93
|
||||
.\" $Id$
|
||||
.\" csh.4,v 1.2 1994/09/24 02:54:27 davidg Exp
|
||||
.\"
|
||||
.nr H1 3
|
||||
.NH
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.a 8.1 (Berkeley) 6/8/93
|
||||
.\" $Id$
|
||||
.\" csh.a,v 1.2 1994/09/24 02:54:28 davidg Exp
|
||||
.\"
|
||||
.SH
|
||||
Appendix \- Special characters
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.g 8.1 (Berkeley) 6/8/93
|
||||
.\" $Id$
|
||||
.\" csh.g,v 1.2 1994/09/24 02:54:31 davidg Exp
|
||||
.\"
|
||||
.SH
|
||||
Glossary
|
||||
|
||||
@@ -30,6 +30,6 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)tabs 8.1 (Berkeley) 6/8/93
|
||||
.\" $Id$
|
||||
.\" tabs,v 1.2 1994/09/24 02:54:32 davidg Exp
|
||||
.\"
|
||||
.ta 5n 10n 15n 20n 25n 30n 35n 40n 45n 50n 55n 60n 65n 70n 75n 80n
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* alloc.c,v 1.2 1994/09/24 02:53:45 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* char.c,v 1.2 1994/09/24 02:53:46 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)char.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* char.h,v 1.2 1994/09/24 02:53:47 davidg Exp
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* const.c,v 1.2 1994/09/24 02:53:48 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.1 8.2 (Berkeley) 1/21/94
|
||||
.\" $Id$
|
||||
.\" csh.1,v 1.2 1994/09/24 02:53:49 davidg Exp
|
||||
.\"
|
||||
.Dd January 21, 1994
|
||||
.Dt CSH 1
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* csh.c,v 1.2 1994/09/24 02:53:51 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)csh.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* csh.h,v 1.2 1994/09/24 02:53:52 davidg Exp
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* dir.c,v 1.2 1994/09/24 02:53:54 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)dir.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* dir.h,v 1.2 1994/09/24 02:53:55 davidg Exp
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* dol.c,v 1.2 1994/09/24 02:53:56 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* err.c,v 1.2 1994/09/24 02:53:57 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* exec.c,v 1.2 1994/09/24 02:53:59 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* exp.c,v 1.2 1994/09/24 02:54:00 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* extern.h,v 1.2 1994/09/24 02:54:02 davidg Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* file.c,v 1.2 1994/09/24 02:54:03 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* func.c,v 1.2 1994/09/24 02:54:04 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* glob.c,v 1.2 1994/09/24 02:54:05 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* hist.c,v 1.2 1994/09/24 02:54:06 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1994/09/24 02:54:07 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* lex.c,v 1.2 1994/09/24 02:54:09 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* misc.c,v 1.2 1994/09/24 02:54:10 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* parse.c,v 1.2 1994/09/24 02:54:11 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)pathnames.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* pathnames.h,v 1.2 1994/09/24 02:54:12 davidg Exp
|
||||
*/
|
||||
|
||||
#define _PATH_BIN "/bin"
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* proc.c,v 1.2 1994/09/24 02:54:13 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)proc.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* proc.h,v 1.2 1994/09/24 02:54:14 davidg Exp
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* sem.c,v 1.2 1994/09/24 02:54:15 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* set.c,v 1.2 1994/09/24 02:54:16 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* str.c,v 1.2 1994/09/24 02:54:18 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* time.c,v 1.2 1994/09/24 02:54:20 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:54:33 davidg Exp
|
||||
|
||||
PROG= date
|
||||
SRCS= date.c netdate.c
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)date.1 8.2 (Berkeley) 11/17/93
|
||||
.\" $Id$
|
||||
.\" date.1,v 1.4 1994/09/24 02:54:34 davidg Exp
|
||||
.\"
|
||||
.Dd November 17, 1993
|
||||
.Dt DATE 1
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* date.c,v 1.2 1994/09/24 02:54:36 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* extern.h,v 1.2 1994/09/24 02:54:37 davidg Exp
|
||||
*/
|
||||
|
||||
int netsettime __P((time_t));
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* netdate.c,v 1.2 1994/09/24 02:54:38 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:54:40 davidg Exp
|
||||
|
||||
PROG= dd
|
||||
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* args.c,v 1.3 1994/09/24 02:54:42 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* conv.c,v 1.3 1994/09/24 02:54:44 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* conv_tab.c,v 1.2 1994/09/24 02:54:47 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
|
||||
.\" $Id$
|
||||
.\" dd.1,v 1.2 1994/09/24 02:54:49 davidg Exp
|
||||
.\"
|
||||
.Dd January 13, 1994
|
||||
.Dt DD 1
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* dd.c,v 1.2 1994/09/24 02:54:52 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)dd.h 8.3 (Berkeley) 4/2/94
|
||||
* $Id$
|
||||
* dd.h,v 1.2 1994/09/24 02:54:54 davidg Exp
|
||||
*/
|
||||
|
||||
/* Input/output stream state. */
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.3 (Berkeley) 4/2/94
|
||||
* $Id$
|
||||
* extern.h,v 1.2 1994/09/24 02:54:57 davidg Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* misc.c,v 1.2 1994/09/24 02:55:01 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* position.c,v 1.2 1994/09/24 02:55:03 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.2 (Berkeley) 4/1/94
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:55:06 davidg Exp
|
||||
|
||||
PROG= df
|
||||
BINGRP= operator
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)df.1 8.2 (Berkeley) 1/13/94
|
||||
.\" $Id$
|
||||
.\" df.1,v 1.3 1994/09/24 02:55:08 davidg Exp
|
||||
.\"
|
||||
.Dd January 13, 1994
|
||||
.Dt DF 1
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* df.c,v 1.5 1994/09/24 02:55:11 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id$
|
||||
# Makefile,v 1.1 1994/09/18 21:23:35 wollman Exp
|
||||
|
||||
PROG= domainname
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" From: @(#)hostname.1 8.1 (Berkeley) 5/31/93
|
||||
.\" $Id$
|
||||
.\" domainname.1,v 1.1 1994/09/18 21:23:36 wollman Exp
|
||||
.\"
|
||||
.Dd September 18, 1994
|
||||
.Dt DOMAINNAME 1
|
||||
|
||||
@@ -40,7 +40,7 @@ static char copyright[] =
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "From: @(#)hostname.c 8.1 (Berkeley) 5/31/93"; */
|
||||
static const char rcsid[] =
|
||||
"$Id: domainname.c,v 1.3 1994/09/21 22:30:55 bde Exp $";
|
||||
"domainname.c,v 1.4 1994/09/26 02:14:27 wollman Exp";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:55:15 davidg Exp
|
||||
|
||||
PROG= echo
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
|
||||
.\" $Id$
|
||||
.\" echo.1,v 1.2 1994/09/24 02:55:17 davidg Exp
|
||||
.\"
|
||||
.Dd July 22, 1993
|
||||
.Dt ECHO 1
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* echo.c,v 1.2 1994/09/24 02:55:18 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.8 1994/09/24 02:55:20 davidg Exp $
|
||||
# Makefile,v 1.9 1994/10/29 10:13:34 phk Exp
|
||||
|
||||
PROG= ed
|
||||
SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
$Id$
|
||||
POSIX,v 1.4 1994/09/24 02:55:20 davidg Exp
|
||||
|
||||
This version of ed(1) is not strictly POSIX compliant, as described in
|
||||
the POSIX 1003.2 document. The following is a summary of the omissions,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
$Id$
|
||||
README,v 1.4 1994/09/24 02:55:21 davidg Exp
|
||||
|
||||
ed is an 8-bit-clean, POSIX-compliant line editor. It should work with
|
||||
any regular expression package that conforms to the POSIX interface
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* buf.c,v 1.6 1994/09/24 02:55:22 davidg Exp
|
||||
*/
|
||||
#ifndef lint
|
||||
static char *rcsid = "@(#)buf.c,v 1.4 1994/02/01 00:34:35 alm Exp";
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)bdes.c 5.5 (Berkeley) 6/27/91
|
||||
* $Id$
|
||||
* cbc.c,v 1.4 1994/09/24 02:55:24 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
.\" $Id$
|
||||
.\" ed.1,v 1.6 1994/09/24 02:55:24 davidg Exp
|
||||
.TH ED 1 "21 May 1993"
|
||||
.SH NAME
|
||||
.\" ed, red \- text editor
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ed.h,v 1.5 1994/02/01 00:34:39 alm Exp
|
||||
* $Id: ed.h,v 1.7 1994/09/24 02:55:25 davidg Exp $
|
||||
* ed.h,v 1.8 1994/11/03 21:46:55 davidg Exp
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* glbl.c,v 1.2 1994/09/24 02:55:26 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* io.c,v 1.3 1994/09/24 02:55:27 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* main.c,v 1.3 1994/09/24 02:55:28 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* re.c,v 1.8 1994/09/24 02:55:29 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* sub.c,v 1.3 1994/09/24 02:55:31 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id$
|
||||
# Makefile,v 1.5 1994/09/24 02:55:35 davidg Exp
|
||||
|
||||
SHELL= /bin/sh
|
||||
ED= ../obj/ed
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* undo.c,v 1.3 1994/09/24 02:55:32 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# /b/source/CVS/src/bin/expr/Makefile,v 1.5 1993/06/14 19:56:06 jtc Exp
|
||||
# $Id$
|
||||
# Makefile,v 1.6 1994/09/24 02:55:36 davidg Exp
|
||||
|
||||
PROG= expr
|
||||
SRCS= expr.c
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id: expr.1,v 1.2 1993/10/04 22:07:27 jtc Exp $
|
||||
.\" expr.1,v 1.3 1994/04/24 01:18:46 jkh Exp
|
||||
.\"
|
||||
.Dd July 3, 1993
|
||||
.Dt EXPR 1
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* Largely rewritten by J.T. Conklin ([email protected])
|
||||
*
|
||||
* $Id$
|
||||
* expr.y,v 1.8 1994/09/24 02:55:37 davidg Exp
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# Makefile,v 1.2 1994/09/24 02:55:39 davidg Exp
|
||||
|
||||
PROG= hostname
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)hostname.1 8.1 (Berkeley) 5/31/93
|
||||
.\" $Id$
|
||||
.\" hostname.1,v 1.2 1994/09/24 02:55:40 davidg Exp
|
||||
.\"
|
||||
.Dd May 31, 1993
|
||||
.Dt HOSTNAME 1
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* hostname.c,v 1.2 1994/09/24 02:55:40 davidg Exp
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
|
||||
Loaded 100 of 3776 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user