Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
91153302
Commit
91153302
authored
Jul 16, 2001
by
Andreas Gustafsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding style
parent
3bd4083e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
lib/isc/include/isc/file.h
lib/isc/include/isc/file.h
+6
-6
lib/isc/win32/file.c
lib/isc/win32/file.c
+4
-4
lib/isc/win32/ntfile.c
lib/isc/win32/ntfile.c
+2
-1
No files found.
lib/isc/include/isc/file.h
View file @
91153302
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: file.h,v 1.2
1
2001/07/16 0
3:52:08 mayer
Exp $ */
/* $Id: file.h,v 1.2
2
2001/07/16 0
4:09:42 gson
Exp $ */
#ifndef ISC_FILE_H
#define ISC_FILE_H 1
...
...
@@ -216,17 +216,17 @@ isc_file_template(const char *path, const char *templet, char *buf,
* such that path can be renamed to buf atomically.
*/
/*
* Rename 'file' using 'templet' as a template for the new file name.
*/
isc_result_t
isc_file_renameunique
(
const
char
*
file
,
char
*
templet
);
/*
* Given a file name, return the fully qualified path to the file
*
* Rename 'file' using 'templet' as a template for the new file name.
*/
isc_result_t
isc_file_getabsolutepath
(
const
char
*
filename
,
char
*
path
,
size_t
pathlen
);
/*
* Given a file name, return the fully qualified path to the file.
*/
/*
* XXX We should also have a isc_file_writeeopen() function
...
...
lib/isc/win32/file.c
View file @
91153302
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: file.c,v 1.1
6
2001/07/16 0
3:52:09 mayer
Exp $ */
/* $Id: file.c,v 1.1
7
2001/07/16 0
4:09:44 gson
Exp $ */
#include <config.h>
...
...
@@ -389,9 +389,9 @@ isc_file_isabsolute(const char *filename) {
*/
if
((
filename
[
0
]
==
'\\'
)
&&
(
filename
[
1
]
==
'\\'
))
return
(
ISC_TRUE
);
if
(
isalpha
(
filename
[
0
])
!=
0
&&
filename
[
1
]
==
':'
&&
filename
[
2
]
==
'\\'
)
if
(
isalpha
(
filename
[
0
])
&&
filename
[
1
]
==
':'
&&
filename
[
2
]
==
'\\'
)
return
(
ISC_TRUE
);
if
(
isalpha
(
filename
[
0
])
!=
0
&&
filename
[
1
]
==
':'
&&
filename
[
2
]
==
'/'
)
if
(
isalpha
(
filename
[
0
])
&&
filename
[
1
]
==
':'
&&
filename
[
2
]
==
'/'
)
return
(
ISC_TRUE
);
return
(
ISC_FALSE
);
}
...
...
@@ -471,5 +471,5 @@ isc_file_getabsolutepath(const char *filename, char *path, size_t pathlen) {
/* Caller needs to provide a larger buffer to contain the string */
if
(
retval
>=
pathlen
)
return
(
ISC_R_NOSPACE
);
return
(
ISC_R_SUCCESS
);
return
(
ISC_R_SUCCESS
);
}
lib/isc/win32/ntfile.c
View file @
91153302
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ntfile.c,v 1.
4
2001/07/16 0
3:52:12 mayer
Exp $ */
/* $Id: ntfile.c,v 1.
5
2001/07/16 0
4:09:45 gson
Exp $ */
/*
* This file has been necessitated by the fact that the iov array is local
...
...
@@ -29,6 +29,7 @@
#include <config.h>
#include <io.h>
#include <isc/ntfile.h>
FILE
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment