mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
Remove functions and macros unused on MS-Windows.
src/w32.c (sys_chown): Remove unused function. nt/inc/ms-w32.h (chown, logb): Remove, unused.
This commit is contained in:
parent
cd91fb4b0a
commit
c793958519
@ -2,6 +2,7 @@
|
||||
|
||||
* inc/ms-w32.h (__STDC__): Fiddle with value only for MSVC.
|
||||
(Bug#9066)
|
||||
(chown, logb): Remove, unused.
|
||||
|
||||
2013-02-13 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
|
@ -149,7 +149,6 @@ extern char *getenv ();
|
||||
#define chdir sys_chdir
|
||||
#undef chmod
|
||||
#define chmod sys_chmod
|
||||
#define chown sys_chown
|
||||
#undef close
|
||||
#define close sys_close
|
||||
#undef creat
|
||||
@ -222,7 +221,6 @@ typedef int pid_t;
|
||||
#define strtoll _strtoi64
|
||||
#endif
|
||||
#define isatty _isatty
|
||||
#define logb _logb
|
||||
#define _longjmp longjmp
|
||||
#define lseek _lseek
|
||||
#define popen _popen
|
||||
|
@ -1,5 +1,7 @@
|
||||
2013-02-16 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* w32.c (sys_chown): Remove unused function.
|
||||
|
||||
* w32term.c <input_signal_count>: Declare 'volatile'
|
||||
unconditionally. (Bug#9066)
|
||||
|
||||
|
@ -3219,14 +3219,6 @@ sys_chmod (const char * path, int mode)
|
||||
return _chmod (path, mode);
|
||||
}
|
||||
|
||||
int
|
||||
sys_chown (const char *path, uid_t owner, gid_t group)
|
||||
{
|
||||
if (sys_chmod (path, S_IREAD) == -1) /* check if file exists */
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
sys_creat (const char * path, int mode)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user