psignal.c:

Use CR instead of LF in call to write(2).

Makefile:
	Depend on ../../paths.mk

basename.c:
	Include <sys/syslimits.h> due to change in stdio.h
This commit is contained in:
gdr 1997-09-05 06:09:50 +00:00
parent 9002791e1c
commit 1fd1b2b9dd
3 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,10 @@
#
# Makefile for libc/gen.
#
# $Id: Makefile,v 1.3 1997/07/28 03:15:55 gdr Exp $
# $Id: Makefile,v 1.4 1997/09/05 06:09:50 gdr Exp $
#
.INCLUDE: ../../../paths.mk
.INCLUDE: ../../const.mk
OBJ_ASM = crypta.o setjmp.o syslog.o

View File

@ -1,7 +1,7 @@
/*
* These routines were written by Devin Reade for GNO v2.0.4.
*
* $Id: basename.c,v 1.1 1997/02/28 05:12:43 gdr Exp $
* $Id: basename.c,v 1.2 1997/09/05 06:09:50 gdr Exp $
*
* This file is formatted for tabs every 8 columns.
*/
@ -14,6 +14,7 @@ segment "libc_gen__";
#pragma debug 0
#pragma memorymodel 0
#include <sys/syslimits.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: psignal.c,v 1.1 1997/07/28 03:12:37 gdr Exp $
* $Id: psignal.c,v 1.2 1997/09/05 06:09:50 gdr Exp $
*
* This file is formatted for tab stops every 8 columns.
*/
@ -71,5 +71,5 @@ psignal(unsigned int sig, const char *s)
(void)write(STDERR_FILENO, ": ", 2);
}
(void)write(STDERR_FILENO, c, strlen(c));
(void)write(STDERR_FILENO, "\n", 1);
(void)write(STDERR_FILENO, "\r", 1);
}