Update of /cvsroot/winbash/winbash/dum_inc
In directory usw-pr-cvs1:/tmp/cvs-serv381/dum_inc
Modified Files:
alloca.h bash_dum.c bash_endian.h bcopy.c bzero.c dir.h
dirent.c dirent.h dtypes.h fab.h grp.h nam.h ndir.h pwd.h
rmsdef.h sgtty.h signal.c strings.h system.h termcap.h
termio.h termios.h unistd.c unistd.h
Log Message:
Fixed more cr/lf problems.
Index: alloca.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/alloca.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- alloca.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ alloca.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-#include <malloc.h>
+#include <malloc.h>
Index: bash_dum.c
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/bash_dum.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- bash_dum.c 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ bash_dum.c 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,6 +1,6 @@
-/* dummy functions that we need to write eventually */
-int gethostname(char *name, int len)
-{
- if (name && len) *name = 0 ;
- return -1 ;
-}
+/* dummy functions that we need to write eventually */
+int gethostname(char *name, int len)
+{
+ if (name && len) *name = 0 ;
+ return -1 ;
+}
Index: bash_endian.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/bash_endian.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- bash_endian.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ bash_endian.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: bcopy.c
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/bcopy.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- bcopy.c 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ bcopy.c 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,57 +1,57 @@
-/* bcopy -- copy memory regions of arbitary length
- Copyright (C) 1991 Free Software Foundation, Inc.
-
-This file is part of the libiberty library.
-Libiberty is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public
-License as published by the Free Software Foundation; either
-version 2 of the License, or (at your option) any later version.
-
-Libiberty is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with libiberty; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA. */
-
-/*
-
-NAME
-
- bcopy -- copy memory regions of arbitrary length
-
-SYNOPSIS
-
- void bcopy (char *in, char *out, int length)
-
-DESCRIPTION
-
- Copy LENGTH bytes from memory region pointed to by IN to memory
- region pointed to by OUT.
-
-BUGS
- Significant speed improvements can be made in some cases by
- implementing copies of multiple bytes simultaneously, or unrolling
- the copy loop.
-
-*/
-
-void
-bcopy (src, dest, len)
- register char *src, *dest;
- int len;
-{
- if (dest < src)
- while (len--)
- *dest++ = *src++;
- else
- {
- char *lasts = src + (len-1);
- char *lastd = dest + (len-1);
- while (len--)
- *(char *)lastd-- = *(char *)lasts--;
- }
-}
+/* bcopy -- copy memory regions of arbitary length
+ Copyright (C) 1991 Free Software Foundation, Inc.
+
+This file is part of the libiberty library.
+Libiberty is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+Libiberty is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with libiberty; see the file COPYING.LIB. If
+not, write to the Free Software Foundation, Inc., 675 Mass Ave,
+Cambridge, MA 02139, USA. */
+
+/*
+
+NAME
+
+ bcopy -- copy memory regions of arbitrary length
+
+SYNOPSIS
+
+ void bcopy (char *in, char *out, int length)
+
+DESCRIPTION
+
+ Copy LENGTH bytes from memory region pointed to by IN to memory
+ region pointed to by OUT.
+
+BUGS
+ Significant speed improvements can be made in some cases by
+ implementing copies of multiple bytes simultaneously, or unrolling
+ the copy loop.
+
+*/
+
+void
+bcopy (src, dest, len)
+ register char *src, *dest;
+ int len;
+{
+ if (dest < src)
+ while (len--)
+ *dest++ = *src++;
+ else
+ {
+ char *lasts = src + (len-1);
+ char *lastd = dest + (len-1);
+ while (len--)
+ *(char *)lastd-- = *(char *)lasts--;
+ }
+}
Index: bzero.c
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/bzero.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- bzero.c 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ bzero.c 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,53 +1,53 @@
-/* Portable version of bzero for systems without it.
- Copyright (C) 1991 Free Software Foundation, Inc.
-
-This file is part of the libiberty library.
-Libiberty is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public
-License as published by the Free Software Foundation; either
-version 2 of the License, or (at your option) any later version.
-
-Libiberty is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with libiberty; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA. */
-
-
-/*
-
-NAME
-
- bzero -- zero the contents of a specified memory region
-
-SYNOPSIS
-
- void bzero (char *to, int count)
-
-DESCRIPTION
-
- Zero COUNT bytes of memory pointed to by TO.
-
-BUGS
-
- Significant speed enhancements may be made in some environments
- by zeroing more than a single byte at a time, or by unrolling the
- loop.
-
-*/
-
-
-void
-bzero (to, count)
- char *to;
- int count;
-{
- while (count-- > 0)
- {
- *to++ = 0;
- }
-}
+/* Portable version of bzero for systems without it.
+ Copyright (C) 1991 Free Software Foundation, Inc.
+
+This file is part of the libiberty library.
+Libiberty is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+Libiberty is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with libiberty; see the file COPYING.LIB. If
+not, write to the Free Software Foundation, Inc., 675 Mass Ave,
+Cambridge, MA 02139, USA. */
+
+
+/*
+
+NAME
+
+ bzero -- zero the contents of a specified memory region
+
+SYNOPSIS
+
+ void bzero (char *to, int count)
+
+DESCRIPTION
+
+ Zero COUNT bytes of memory pointed to by TO.
+
+BUGS
+
+ Significant speed enhancements may be made in some environments
+ by zeroing more than a single byte at a time, or by unrolling the
+ loop.
+
+*/
+
+
+void
+bzero (to, count)
+ char *to;
+ int count;
+{
+ while (count-- > 0)
+ {
+ *to++ = 0;
+ }
+}
Index: dir.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/dir.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- dir.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ dir.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: dirent.c
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/dirent.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- dirent.c 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ dirent.c 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,193 +1,193 @@
-/*****************************************************************************
- * *
- * Was DH_DIR.C *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/*
-dirent.c
-Modified by Paul Budnik for GNU Bash
-*/
-/*****************************************************************************
- * *
- * sys/dirent.h *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-
-
-
-/* Include stuff *************************************************************/
-#include <stdlib.h>
-#include <windows.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <io.h>
-
-
-
-/* Struct and typedef stuff **************************************************/
-
-/* Directory entry (file) struct =========================================== */
-struct dirent
-{
- unsigned long d_fileno;
- unsigned short d_namlen;
- char d_name[_MAX_PATH+1];
-};
-
-/* Directory info typedef ================================================== */
-typedef struct __dirdesc
-{
- char dir_Name[_MAX_PATH+1];
- HANDLE dir_Handle;
- int dir_FileCount;
- struct dirent dir_FileUnix;
-} DIR;
-
-
-/* Prototype stuff **********************************************************/
-DIR* opendir(char* dir_Name);
-struct dirent* readdir(DIR* dir_Info);
-void rewinddir(DIR* dir_Info);
-int closedir(DIR* dir_Info);
-long telldir(DIR* dir_Info);
-void seekdir(DIR* dir_Info,long dir_Position);
-
-/* Open a directory ======================================================== */
-DIR* opendir(char* dir_Name)
-{
- DIR* dir_Info;
- /*struct stat dir_Stat;
- int len;
- char myDir[1024];
-
- if (!dir_Name) return NULL;
- len = strlen(dir_Name);
- if ((len > 1 && dir_Name[len - 1] == '/') && !(len == 3 && dir_Name[1] == ':' && dir_Name[2] == '/')) {
- strcpy(myDir, dir_Name);
- myDir[len - 1] = 0;
- dir_Name = myDir;
- }*/
-
- /* Make sure directory is actually a directory */
- /*if (stat(dir_Name,&dir_Stat) != 0)
- {
- errno = ENOENT;
- return NULL;
- }
- if ((dir_Stat.st_mode&_S_IFDIR) == 0)
- {
- errno = ENOTDIR;
- return NULL;
- }*/
-
- /* Get some memory */
- dir_Info = (DIR*)calloc(1,sizeof(DIR));
- if (dir_Info == NULL)
- {
- return NULL;
- }
-
- /* Save some info about the directory */
- strcpy(dir_Info->dir_Name,dir_Name);
- if ((dir_Info->dir_Name[strlen(dir_Info->dir_Name)-1] != '/') &&
- (dir_Info->dir_Name[strlen(dir_Info->dir_Name)-1] != '\\'))
- {
- strcat(dir_Info->dir_Name,"/");
- }
- strcat(dir_Info->dir_Name,"*");
- dir_Info->dir_Handle = INVALID_HANDLE_VALUE;
- dir_Info->dir_FileCount = 0;
-
- /* And return the directory info */
- return dir_Info;
-}
-
-/* Read the next file in a directory ======================================= */
-struct dirent* readdir(DIR* dir_Info)
-{
- WIN32_FIND_DATA dir_FileWin;
-
- /* Get the info about the next file */
- if (dir_Info->dir_FileCount == 0)
- {
- dir_Info->dir_Handle = FindFirstFile(dir_Info->dir_Name,
- &dir_FileWin);
- if (dir_Info->dir_Handle == INVALID_HANDLE_VALUE)
- {
- return NULL;
- }
- }
- else
- {
- if (!FindNextFile(dir_Info->dir_Handle,&dir_FileWin))
- {
- return NULL;
- }
- }
-
- /* Dummy up a UNIX file */
- dir_Info->dir_FileUnix.d_fileno = dir_Info->dir_FileCount;
- dir_Info->dir_FileUnix.d_namlen = strlen(dir_FileWin.cFileName);
- strcpy(dir_Info->dir_FileUnix.d_name,dir_FileWin.cFileName);
-
- /* Bump the number we've read */
- dir_Info->dir_FileCount++;
-
- /* And return the UNIX file info */
- return &(dir_Info->dir_FileUnix);
-}
-
-/* Rewind a directory ====================================================== */
-void rewinddir(DIR* dir_Info)
-{
- /* Re-set to the beginning */
- dir_Info->dir_Handle = INVALID_HANDLE_VALUE;
- dir_Info->dir_FileCount = 0;
-}
-
-/* Close a directory ======================================================= */
-int closedir(DIR* dir_Info)
-{
- /* Close down the directory */
- if (!FindClose(dir_Info->dir_Handle))
- {
- errno = EBADF;
- return -1;
- }
-
- /* Free up the memory */
- free(dir_Info);
-
- /* And return that everything went fine */
- return 0;
-}
-
-/* Tell our position in a directory ======================================== */
-long telldir(DIR* dir_Info)
-{
- /* Return our last position */
- return dir_Info->dir_FileCount;
-}
-
-/* Seek to a position in a directory ======================================= */
-void seekdir(DIR* dir_Info,long dir_Position)
-{
- /* Jump back to the beginning of the file */
- rewinddir(dir_Info);
-
- /* And read to a specific position */
- while (--dir_Position > 0)
- {
- readdir(dir_Info);
- }
-}
-
+/*****************************************************************************
+ * *
+ * Was DH_DIR.C *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+/*
+dirent.c
+Modified by Paul Budnik for GNU Bash
+*/
+/*****************************************************************************
+ * *
+ * sys/dirent.h *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+
+
+
+/* Include stuff *************************************************************/
+#include <stdlib.h>
+#include <windows.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <io.h>
+
+
+
+/* Struct and typedef stuff **************************************************/
+
+/* Directory entry (file) struct =========================================== */
+struct dirent
+{
+ unsigned long d_fileno;
+ unsigned short d_namlen;
+ char d_name[_MAX_PATH+1];
+};
+
+/* Directory info typedef ================================================== */
+typedef struct __dirdesc
+{
+ char dir_Name[_MAX_PATH+1];
+ HANDLE dir_Handle;
+ int dir_FileCount;
+ struct dirent dir_FileUnix;
+} DIR;
+
+
+/* Prototype stuff **********************************************************/
+DIR* opendir(char* dir_Name);
+struct dirent* readdir(DIR* dir_Info);
+void rewinddir(DIR* dir_Info);
+int closedir(DIR* dir_Info);
+long telldir(DIR* dir_Info);
+void seekdir(DIR* dir_Info,long dir_Position);
+
+/* Open a directory ======================================================== */
+DIR* opendir(char* dir_Name)
+{
+ DIR* dir_Info;
+ /*struct stat dir_Stat;
+ int len;
+ char myDir[1024];
+
+ if (!dir_Name) return NULL;
+ len = strlen(dir_Name);
+ if ((len > 1 && dir_Name[len - 1] == '/') && !(len == 3 && dir_Name[1] == ':' && dir_Name[2] == '/')) {
+ strcpy(myDir, dir_Name);
+ myDir[len - 1] = 0;
+ dir_Name = myDir;
+ }*/
+
+ /* Make sure directory is actually a directory */
+ /*if (stat(dir_Name,&dir_Stat) != 0)
+ {
+ errno = ENOENT;
+ return NULL;
+ }
+ if ((dir_Stat.st_mode&_S_IFDIR) == 0)
+ {
+ errno = ENOTDIR;
+ return NULL;
+ }*/
+
+ /* Get some memory */
+ dir_Info = (DIR*)calloc(1,sizeof(DIR));
+ if (dir_Info == NULL)
+ {
+ return NULL;
+ }
+
+ /* Save some info about the directory */
+ strcpy(dir_Info->dir_Name,dir_Name);
+ if ((dir_Info->dir_Name[strlen(dir_Info->dir_Name)-1] != '/') &&
+ (dir_Info->dir_Name[strlen(dir_Info->dir_Name)-1] != '\\'))
+ {
+ strcat(dir_Info->dir_Name,"/");
+ }
+ strcat(dir_Info->dir_Name,"*");
+ dir_Info->dir_Handle = INVALID_HANDLE_VALUE;
+ dir_Info->dir_FileCount = 0;
+
+ /* And return the directory info */
+ return dir_Info;
+}
+
+/* Read the next file in a directory ======================================= */
+struct dirent* readdir(DIR* dir_Info)
+{
+ WIN32_FIND_DATA dir_FileWin;
+
+ /* Get the info about the next file */
+ if (dir_Info->dir_FileCount == 0)
+ {
+ dir_Info->dir_Handle = FindFirstFile(dir_Info->dir_Name,
+ &dir_FileWin);
+ if (dir_Info->dir_Handle == INVALID_HANDLE_VALUE)
+ {
+ return NULL;
+ }
+ }
+ else
+ {
+ if (!FindNextFile(dir_Info->dir_Handle,&dir_FileWin))
+ {
+ return NULL;
+ }
+ }
+
+ /* Dummy up a UNIX file */
+ dir_Info->dir_FileUnix.d_fileno = dir_Info->dir_FileCount;
+ dir_Info->dir_FileUnix.d_namlen = strlen(dir_FileWin.cFileName);
+ strcpy(dir_Info->dir_FileUnix.d_name,dir_FileWin.cFileName);
+
+ /* Bump the number we've read */
+ dir_Info->dir_FileCount++;
+
+ /* And return the UNIX file info */
+ return &(dir_Info->dir_FileUnix);
+}
+
+/* Rewind a directory ====================================================== */
+void rewinddir(DIR* dir_Info)
+{
+ /* Re-set to the beginning */
+ dir_Info->dir_Handle = INVALID_HANDLE_VALUE;
+ dir_Info->dir_FileCount = 0;
+}
+
+/* Close a directory ======================================================= */
+int closedir(DIR* dir_Info)
+{
+ /* Close down the directory */
+ if (!FindClose(dir_Info->dir_Handle))
+ {
+ errno = EBADF;
+ return -1;
+ }
+
+ /* Free up the memory */
+ free(dir_Info);
+
+ /* And return that everything went fine */
+ return 0;
+}
+
+/* Tell our position in a directory ======================================== */
+long telldir(DIR* dir_Info)
+{
+ /* Return our last position */
+ return dir_Info->dir_FileCount;
+}
+
+/* Seek to a position in a directory ======================================= */
+void seekdir(DIR* dir_Info,long dir_Position)
+{
+ /* Jump back to the beginning of the file */
+ rewinddir(dir_Info);
+
+ /* And read to a specific position */
+ while (--dir_Position > 0)
+ {
+ readdir(dir_Info);
+ }
+}
+
Index: dirent.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/dirent.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- dirent.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ dirent.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,55 +1,55 @@
-#ifndef DIRENT_DOT_H
-#define DIRENT_DOT_H
-/*****************************************************************************
- * *
- * Was sys/dirent.h *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/*
-dirent.h
-Modified by Paul Budnik for GNU Bash
-*/
-
-
-
-
-/* Include stuff *************************************************************/
-#include "dtypes.h"
-#include <stdlib.h>
-#include <windows.h>
-
-
-/* Struct and typedef stuff **************************************************/
-
-/* Directory entry (file) struct =========================================== */
-struct dirent
-{
- unsigned long d_fileno;
- unsigned short d_namlen;
- char d_name[_MAX_PATH+1];
-};
-
-/* Directory info typedef ================================================== */
-typedef struct __dirdesc
-{
- char dir_Name[_MAX_PATH+1];
- HANDLE dir_Handle;
- int dir_FileCount;
- struct dirent dir_FileUnix;
-} DIR;
-
-
-/* Prototype stuff **********************************************************/
-DIR* opendir(char* dir_Name);
-struct dirent* readdir(DIR* dir_Info);
-void rewinddir(DIR* dir_Info);
-int closedir(DIR* dir_Info);
-long telldir(DIR* dir_Info);
-void seekdir(DIR* dir_Info,long dir_Position);
-
-
-#endif /* #ifdef DIRENT_DOT_H */
+#ifndef DIRENT_DOT_H
+#define DIRENT_DOT_H
+/*****************************************************************************
+ * *
+ * Was sys/dirent.h *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+/*
+dirent.h
+Modified by Paul Budnik for GNU Bash
+*/
+
+
+
+
+/* Include stuff *************************************************************/
+#include "dtypes.h"
+#include <stdlib.h>
+#include <windows.h>
+
+
+/* Struct and typedef stuff **************************************************/
+
+/* Directory entry (file) struct =========================================== */
+struct dirent
+{
+ unsigned long d_fileno;
+ unsigned short d_namlen;
+ char d_name[_MAX_PATH+1];
+};
+
+/* Directory info typedef ================================================== */
+typedef struct __dirdesc
+{
+ char dir_Name[_MAX_PATH+1];
+ HANDLE dir_Handle;
+ int dir_FileCount;
+ struct dirent dir_FileUnix;
+} DIR;
+
+
+/* Prototype stuff **********************************************************/
+DIR* opendir(char* dir_Name);
+struct dirent* readdir(DIR* dir_Info);
+void rewinddir(DIR* dir_Info);
+int closedir(DIR* dir_Info);
+long telldir(DIR* dir_Info);
+void seekdir(DIR* dir_Info,long dir_Position);
+
+
+#endif /* #ifdef DIRENT_DOT_H */
Index: dtypes.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/dtypes.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- dtypes.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ dtypes.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,34 +1,34 @@
-#ifndef DTYPES_DOT_H
-#define DTYPES_DOT_H
-/*****************************************************************************
- * *
- * From sys/types.h *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/*
-Modified for GNU Bash by Paul Budnik
-*/
-
-
-/* Good typedefs =========================================================== */
-typedef long uid_t;
-typedef long gid_t;
-typedef long pid_t;
-typedef unsigned short mode_t;
-typedef short nlink_t;
-typedef char* caddr_t;
-
-/* Bad typedefs ============================================================ */
-typedef unsigned char u_char;
-typedef unsigned short u_short;
-typedef unsigned int u_int;
-typedef unsigned long u_long;
-typedef u_int uint;
-typedef u_short ushort;
-
-
-#endif /* #ifdef DTYPES_DOT_H */
+#ifndef DTYPES_DOT_H
+#define DTYPES_DOT_H
+/*****************************************************************************
+ * *
+ * From sys/types.h *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+/*
+Modified for GNU Bash by Paul Budnik
+*/
+
+
+/* Good typedefs =========================================================== */
+typedef long uid_t;
+typedef long gid_t;
+typedef long pid_t;
+typedef unsigned short mode_t;
+typedef short nlink_t;
+typedef char* caddr_t;
+
+/* Bad typedefs ============================================================ */
+typedef unsigned char u_char;
+typedef unsigned short u_short;
+typedef unsigned int u_int;
+typedef unsigned long u_long;
+typedef u_int uint;
+typedef u_short ushort;
+
+
+#endif /* #ifdef DTYPES_DOT_H */
Index: fab.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/fab.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- fab.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ fab.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: grp.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/grp.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- grp.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ grp.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,41 +1,41 @@
-#ifndef GRP_DOT_H
-#define GRP_DOT_H
-/*****************************************************************************
- * *
- * grp.h *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/* modified by Paul Budnik for GNU Bash
-*/
-
-#include "dtypes.h"
-
-
-
-/* Include stuff *************************************************************/
-#include <sys/types.h>
-
-
-/* Struct stuff **************************************************************/
-struct group
-{
- char* gr_name;
- char* gr_passwd;
- gid_t gr_gid;
- char* gr_mem[2];
-};
-
-
-/* Prototype stuff ***********************************************************/
-struct group* getgrent(void);
-void setgrent(void);
-void endgrent(void);
-struct group* getgrgid(gid_t group_Id);
-struct group* getgrnam(char* group_Name);
-
-
-#endif /* #ifdef GRP_DOT_H */
+#ifndef GRP_DOT_H
+#define GRP_DOT_H
+/*****************************************************************************
+ * *
+ * grp.h *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+/* modified by Paul Budnik for GNU Bash
+*/
+
+#include "dtypes.h"
+
+
+
+/* Include stuff *************************************************************/
+#include <sys/types.h>
+
+
+/* Struct stuff **************************************************************/
+struct group
+{
+ char* gr_name;
+ char* gr_passwd;
+ gid_t gr_gid;
+ char* gr_mem[2];
+};
+
+
+/* Prototype stuff ***********************************************************/
+struct group* getgrent(void);
+void setgrent(void);
+void endgrent(void);
+struct group* getgrgid(gid_t group_Id);
+struct group* getgrnam(char* group_Name);
+
+
+#endif /* #ifdef GRP_DOT_H */
Index: nam.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/nam.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- nam.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ nam.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: ndir.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/ndir.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- ndir.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ ndir.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: pwd.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/pwd.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- pwd.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ pwd.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,45 +1,45 @@
-#ifndef PWD_DOT_H
-#define PWD_DOT_H
-/*****************************************************************************
- * *
- * pwd.h *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/*
-Modified by Paul Budnik for GNU BASH
-*/
-
-
-
-
-/* Include stuff *************************************************************/
-#include "dtypes.h"
-#include <sys/types.h>
-
-
-/* Struct stuff **************************************************************/
-struct passwd
-{
- char* pw_name;
- char* pw_passwd;
- uid_t pw_uid;
- gid_t pw_gid;
- char* pw_gecos;
- char* pw_dir;
- char* pw_shell;
-};
-
-
-/* Prototype stuff ***********************************************************/
-struct passwd* getpwent(void);
-void setpwent(void);
-void endpwent(void);
-struct passwd* getpwuid(uid_t user_Id);
-struct passwd* getpwnam(char* user_Name);
-
-
-#endif /* #ifdef PWD_DOT_H */
+#ifndef PWD_DOT_H
+#define PWD_DOT_H
+/*****************************************************************************
+ * *
+ * pwd.h *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+/*
+Modified by Paul Budnik for GNU BASH
+*/
+
+
+
+
+/* Include stuff *************************************************************/
+#include "dtypes.h"
+#include <sys/types.h>
+
+
+/* Struct stuff **************************************************************/
+struct passwd
+{
+ char* pw_name;
+ char* pw_passwd;
+ uid_t pw_uid;
+ gid_t pw_gid;
+ char* pw_gecos;
+ char* pw_dir;
+ char* pw_shell;
+};
+
+
+/* Prototype stuff ***********************************************************/
+struct passwd* getpwent(void);
+void setpwent(void);
+void endpwent(void);
+struct passwd* getpwuid(uid_t user_Id);
+struct passwd* getpwnam(char* user_Name);
+
+
+#endif /* #ifdef PWD_DOT_H */
Index: rmsdef.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/rmsdef.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- rmsdef.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ rmsdef.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: sgtty.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/sgtty.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- sgtty.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ sgtty.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: signal.c
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/signal.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- signal.c 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ signal.c 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,36 +1,36 @@
-/*****************************************************************************
- * *
- * From DH_SIG.C *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/*
-Modified for GNU Bash by Paul Budnik
-&/
-
-
-/* Include stuff *************************************************************/
-#include <windows.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <errno.h>
-#include <signal.h>
-#include <dtypes.h>
-
-
-int kill(pid_t pid,int sig)
-{
- if (pid == getpid()) return raise(sig);
- return -1 ;
-}
-
-int killpg(int pgrp, int sig)
-{
- return -1 ;
-}
-
-
+/*****************************************************************************
+ * *
+ * From DH_SIG.C *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+/*
+Modified for GNU Bash by Paul Budnik
+&/
+
+
+/* Include stuff *************************************************************/
+#include <windows.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <stdarg.h>
+#include <errno.h>
+#include <signal.h>
+#include <dtypes.h>
+
+
+int kill(pid_t pid,int sig)
+{
+ if (pid == getpid()) return raise(sig);
+ return -1 ;
+}
+
+int killpg(int pgrp, int sig)
+{
+ return -1 ;
+}
+
+
Index: strings.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/strings.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- strings.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ strings.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: system.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/system.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- system.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ system.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: termcap.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/termcap.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- termcap.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ termcap.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: termio.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/termio.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- termio.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ termio.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: termios.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/termios.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- termios.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ termios.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1 +1 @@
-/* Dummy header file to get Visual C++ happy */
+/* Dummy header file to get Visual C++ happy */
Index: unistd.c
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/unistd.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- unistd.c 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ unistd.c 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,959 +1,959 @@
-/*****************************************************************************
- * *
- * Taken from DH_GRP.C *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/* modified by Paul Budnik
-for GNU Bash
[...1887 lines suppressed...]
+{
+ /* Reset to the beginning */
+ pwd_Position = -1;
+
+ return;
+}
+
+/* Stop using the password file ============================================ */
+void endpwent(void)
+{
+ /* Reset to the beginning */
+ pwd_Position = -1;
+
+ return;
+}
+
+long ulimit(int a, long b)
+{
+ return 1000000 ;
+}
Index: unistd.h
===================================================================
RCS file: /cvsroot/winbash/winbash/dum_inc/unistd.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- unistd.h 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ unistd.h 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,44 +1,44 @@
-#ifndef UNISTD_DOT_H
-#define UNISTD_DOT_H
-/*****************************************************************************
- * *
- * sys/unistd.h *
- * *
- * Freely redistributable and modifiable. Use at your own risk. *
- * *
- * Copyright 1994 The Downhill Project *
- * *
- *****************************************************************************/
-/*
-Modified by Paul Budnik for GNU BASH
-*/
-
-
-#include "dtypes.h"
-#include <stdio.h>
-#include <sys/types.h>
-
-
-
-
-/* Prototype stuff ***********************************************************/
-uid_t getuid(void);
-uid_t geteuid(void);
-gid_t getgid(void);
-gid_t getegid(void);
-int getgroups(int group_Max,gid_t group_Id[]);
-unsigned int sleep(unsigned int sleep_Duration);
-int pause(void);
-int chown(char* file_Name,uid_t file_User,gid_t file_Group);
-int fchown(int file_Fd,uid_t file_User,gid_t file_Group);
-int getopt(int arg_Count,char* arg_Value[],char flag_List[]);
-int readlink(char* file_Name,char* buf_Mem,int buf_Size);
-
-int pipe(int filedes[2]);
-int getppid(void);
-int getdtablesize();
-int setuid(uid_t id);
-int setgid(gid_t gid);
-long ulimit(int a, long b);
-
-#endif /* #ifdef UNISTD_DOT_H */
+#ifndef UNISTD_DOT_H
+#define UNISTD_DOT_H
+/*****************************************************************************
+ * *
+ * sys/unistd.h *
+ * *
+ * Freely redistributable and modifiable. Use at your own risk. *
+ * *
+ * Copyright 1994 The Downhill Project *
+ * *
+ *****************************************************************************/
+/*
+Modified by Paul Budnik for GNU BASH
+*/
+
+
+#include "dtypes.h"
+#include <stdio.h>
+#include <sys/types.h>
+
+
+
+
+/* Prototype stuff ***********************************************************/
+uid_t getuid(void);
+uid_t geteuid(void);
+gid_t getgid(void);
+gid_t getegid(void);
+int getgroups(int group_Max,gid_t group_Id[]);
+unsigned int sleep(unsigned int sleep_Duration);
+int pause(void);
+int chown(char* file_Name,uid_t file_User,gid_t file_Group);
+int fchown(int file_Fd,uid_t file_User,gid_t file_Group);
+int getopt(int arg_Count,char* arg_Value[],char flag_List[]);
+int readlink(char* file_Name,char* buf_Mem,int buf_Size);
+
+int pipe(int filedes[2]);
+int getppid(void);
+int getdtablesize();
+int setuid(uid_t id);
+int setgid(gid_t gid);
+long ulimit(int a, long b);
+
+#endif /* #ifdef UNISTD_DOT_H */
|