Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-28 23:50:07 +0400
committerChristopher Faylor <me@cgf.cx>2004-05-28 23:50:07 +0400
commite3778517d9c6409c9c917db83ccac20de1800a29 (patch)
tree407e958798d6f156ff0762350734b7b92cf032d8 /winsup/cygwin/libc
parentdccc3e5d2c6059410c12feb9e5d26f3176334011 (diff)
* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it
starts with a drive. Also perform whitespace cleanup.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/bsdlib.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/libc/bsdlib.cc b/winsup/cygwin/libc/bsdlib.cc
index 4de52f230..71393fb87 100644
--- a/winsup/cygwin/libc/bsdlib.cc
+++ b/winsup/cygwin/libc/bsdlib.cc
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*
* CV 2003-09-10: Cygwin specific changes applied. Code simplified just
- * for Cygwin alone.
+ * for Cygwin alone.
*/
#include "winsup.h"
@@ -96,11 +96,11 @@ login_tty (int fd)
if ((fdname = ttyname (fd)))
{
if (fd != STDIN_FILENO)
- close (STDIN_FILENO);
+ close (STDIN_FILENO);
if (fd != STDOUT_FILENO)
- close (STDOUT_FILENO);
+ close (STDOUT_FILENO);
if (fd != STDERR_FILENO)
- close (STDERR_FILENO);
+ close (STDERR_FILENO);
newfd = open (fdname, O_RDWR);
close (newfd);
}
@@ -126,7 +126,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp,
strcpy (pts, ptsname (master));
revoke (pts);
if ((slave = open (pts, O_RDWR | O_NOCTTY)) >= 0)
- {
+ {
if (amaster)
*amaster = master;
if (aslave)
@@ -251,11 +251,11 @@ setprogname (const char *newprogname)
if (!check_null_str_errno (newprogname))
{
/* Per BSD man page, setprogname keeps a pointer to the last
- path component of the argument. It does *not* copy the
+ path component of the argument. It does *not* copy the
argument before. */
__progname = strrchr (newprogname, '/');
if (__progname)
- ++__progname;
+ ++__progname;
else
__progname = (char *)newprogname;
}