www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/13/08:21:51

Date: Tue, 13 Jan 1998 15:18:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ivo Stoykov <istoykov AT plovdiv DOT techno-link DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: help needed
In-Reply-To: <B0000116909@plovdiv.techno-link.com>
Message-ID: <Pine.SUN.3.91.980113150738.6255C-100000@is>
MIME-Version: 1.0

On Tue, 13 Jan 1998, Ivo Stoykov wrote:

> 	1. few times I met the "mane of the filesystem" expression. 
> Making experiments with functions I found that the "mane of the 
> filesystem" returns as a value the disk label. Am I wrong or there is 
> something else I've missed?

I looked into libc.inf (the library reference) and found only one place 
where it references the "name of the filesystem", and that is where the 
`getmntent' function is described.  But that place describes *exactly* 
what can be returned as the filesystem name (it's not always the volume 
label).  So I don't understand to which places in the docs do you refer, 
and therefore I cannot answer the question.  Please tell where did you 
see the references to the "name of the filesystem".

> 	2. I always receive as a directory separator a slash "/" instead a 
> backslash "\" which is usual for DOS. (I know that slash is usual for 
> Unix) How can I change slashs with backsalshs?

You can't, unless you write the code that does the conversion.  DJGPP
functions which return pathnames, such as `getcwd', always return forward
slashes, to be compatible with Unix.  Since the kernels of MS-DOS and of
all versions of MS-Windows (including 3.X, 9X and NT) understand both
forward and backslashes, while Unix only understands forward slashes, you
really should not bother about this, except when you interface with some
non-DJGPP program that doesn't understand forward slashes (like
COMMAND.COM).

If you have some specific problem with this, please describe the specific 
case which troubles you.  Usually, these problems are easily solved.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019