summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-08-01 16:55:54 (GMT)
committerGitHub <noreply@github.com>2022-08-01 16:55:54 (GMT)
commitecab3d9c2afbf1b838634317b45876802182983c (patch)
tree677ccd29cc405d39b5f6865d0d4d137852cd9aad /src
parent47fee5bfd711dd73b15c25abd962ab539e731ebe (diff)
downloadhdf5-ecab3d9c2afbf1b838634317b45876802182983c.zip
hdf5-ecab3d9c2afbf1b838634317b45876802182983c.tar.gz
hdf5-ecab3d9c2afbf1b838634317b45876802182983c.tar.bz2
Removes Windows getlogin() equivalents (#1958)
This function is no longer used in the library
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h3
-rw-r--r--src/H5system.c16
-rw-r--r--src/H5win32defs.h2
3 files changed, 0 insertions, 21 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 87345ab..b3b8e97 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -948,9 +948,6 @@ H5_DLL H5_ATTR_CONST int Nflock(int fd, int operation);
#ifndef HDgethostname
#define HDgethostname(N, L) gethostname(N, L)
#endif
-#ifndef HDgetlogin
-#define HDgetlogin() getlogin()
-#endif
#ifndef HDgetpgrp
#define HDgetpgrp() getpgrp()
#endif
diff --git a/src/H5system.c b/src/H5system.c
index 22c9578..677452d 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -443,22 +443,6 @@ H5_get_win32_times(H5_timevals_t *tvs /*in,out*/)
} /* end H5_get_win32_times() */
#endif
-#define WloginBuffer_count 256
-static char Wlogin_buffer[WloginBuffer_count];
-
-char *
-Wgetlogin(void)
-{
-
-#ifdef H5_HAVE_WIN32_API
- DWORD bufferCount = WloginBuffer_count;
- if (GetUserName(Wlogin_buffer, &bufferCount) != 0)
- return (Wlogin_buffer);
- else
-#endif
- return NULL;
-}
-
/*-------------------------------------------------------------------------
* Function: Wflock
*
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index df4b0ee..9e8945f 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -53,7 +53,6 @@ struct timezone {
#define HDgetcwd(S, Z) _getcwd(S, Z)
#define HDgetdcwd(D, S, Z) _getdcwd(D, S, Z)
#define HDgetdrive() _getdrive()
-#define HDgetlogin() Wgetlogin()
#define HDgettimeofday(V, Z) Wgettimeofday(V, Z)
#define HDisatty(F) _isatty(F)
#define HDlseek(F, O, W) _lseeki64(F, O, W)
@@ -101,7 +100,6 @@ extern "C" {
H5_DLL int Wgettimeofday(struct timeval *tv, struct timezone *tz);
H5_DLL int Wsetenv(const char *name, const char *value, int overwrite);
H5_DLL int Wflock(int fd, int operation);
-H5_DLL char *Wgetlogin(void);
H5_DLL herr_t H5_expand_windows_env_vars(char **env_var);
H5_DLL wchar_t *H5_get_utf16_str(const char *s);
H5_DLL int Wopen_utf8(const char *path, int oflag, ...);