8238602: remove obsolete functions from libinstrument/FileSystemSupport_md.c
Reviewed-by: clanger, sspitsyn
This commit is contained in:
parent
c103a1bb69
commit
1e0167ef92
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,17 +25,6 @@
|
|||||||
|
|
||||||
#include "FileSystemSupport_md.h"
|
#include "FileSystemSupport_md.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the local filesystem's path-separator character.
|
|
||||||
*/
|
|
||||||
char pathSeparator();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Compare two filenames represent and tell if they represent the same file
|
|
||||||
* or not.
|
|
||||||
*/
|
|
||||||
int filenameStrcmp(const char* s1, const char* s2);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post-process the given URI path string if necessary. This is used on
|
* Post-process the given URI path string if necessary. This is used on
|
||||||
* win32, e.g., to transform "/c:/foo" into "c:/foo". The path string
|
* win32, e.g., to transform "/c:/foo" into "c:/foo". The path string
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -35,15 +35,6 @@
|
|||||||
|
|
||||||
#define slash '/'
|
#define slash '/'
|
||||||
|
|
||||||
char pathSeparator() {
|
|
||||||
return ':';
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Filenames are case senstitive */
|
|
||||||
int filenameStrcmp(const char* s1, const char* s2) {
|
|
||||||
return strcmp(s1, s2);
|
|
||||||
}
|
|
||||||
|
|
||||||
char* basePath(const char* path) {
|
char* basePath(const char* path) {
|
||||||
char* last = strrchr(path, slash);
|
char* last = strrchr(path, slash);
|
||||||
if (last == NULL) {
|
if (last == NULL) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -45,15 +45,6 @@ static int isLetter(char c) {
|
|||||||
return ((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z'));
|
return ((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z'));
|
||||||
}
|
}
|
||||||
|
|
||||||
char pathSeparator() {
|
|
||||||
return ';';
|
|
||||||
}
|
|
||||||
|
|
||||||
/* filename are case insensitive on windows */
|
|
||||||
int filenameStrcmp(const char* s1, const char* s2) {
|
|
||||||
return strcasecmp(s1, s2);
|
|
||||||
}
|
|
||||||
|
|
||||||
char* basePath(const char* path) {
|
char* basePath(const char* path) {
|
||||||
char* pos = strchr(path, slash);
|
char* pos = strchr(path, slash);
|
||||||
char* last = NULL;
|
char* last = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user