projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c79234
)
Add hidden prototypes for fsync, fdatasync
author
Florian Weimer
<fweimer@redhat.com>
Tue, 22 Jun 2021 07:50:27 +0000
(09:50 +0200)
committer
Florian Weimer
<fweimer@redhat.com>
Tue, 22 Jun 2021 07:51:14 +0000
(09:51 +0200)
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/unistd.h
patch
|
blob
|
history
misc/fdatasync.c
patch
|
blob
|
history
misc/fsync.c
patch
|
blob
|
history
sysdeps/mach/hurd/fdatasync.c
patch
|
blob
|
history
sysdeps/mach/hurd/fsync.c
patch
|
blob
|
history
sysdeps/unix/sysv/linux/fdatasync.c
patch
|
blob
|
history
sysdeps/unix/sysv/linux/fsync.c
patch
|
blob
|
history
diff --git
a/include/unistd.h
b/include/unistd.h
index
8ed8b1e
..
34872d8
100644
(file)
--- a/
include/unistd.h
+++ b/
include/unistd.h
@@
-25,6
+25,8
@@
libc_hidden_proto (seteuid)
libc_hidden_proto (setegid)
libc_hidden_proto (tcgetpgrp)
libc_hidden_proto (readlinkat)
+libc_hidden_proto (fsync)
+libc_hidden_proto (fdatasync)
/* Now define the internal interfaces. */
extern int __access (const char *__name, int __type);
diff --git
a/misc/fdatasync.c
b/misc/fdatasync.c
index
2847481
..
c776978
100644
(file)
--- a/
misc/fdatasync.c
+++ b/
misc/fdatasync.c
@@
-25,3
+25,4
@@
fdatasync (int fildes)
{
return fsync (fildes);
}
+libc_hidden_def (fdatasync)
diff --git
a/misc/fsync.c
b/misc/fsync.c
index
e1c37c6
..
1961dd0
100644
(file)
--- a/
misc/fsync.c
+++ b/
misc/fsync.c
@@
-25,6
+25,6
@@
fsync (int fd)
__set_errno (ENOSYS);
return -1;
}
-
+libc_hidden_def (fsync)
stub_warning (fsync)
diff --git
a/sysdeps/mach/hurd/fdatasync.c
b/sysdeps/mach/hurd/fdatasync.c
index
0be8072
..
68df551
100644
(file)
--- a/
sysdeps/mach/hurd/fdatasync.c
+++ b/
sysdeps/mach/hurd/fdatasync.c
@@
-41,3
+41,4
@@
fdatasync (int fd)
}
return 0;
}
+libc_hidden_def (fdatasync)
diff --git
a/sysdeps/mach/hurd/fsync.c
b/sysdeps/mach/hurd/fsync.c
index
ef04ee9
..
c1d560f
100644
(file)
--- a/
sysdeps/mach/hurd/fsync.c
+++ b/
sysdeps/mach/hurd/fsync.c
@@
-41,3
+41,4
@@
fsync (int fd)
}
return 0;
}
+libc_hidden_def (fsync)
diff --git
a/sysdeps/unix/sysv/linux/fdatasync.c
b/sysdeps/unix/sysv/linux/fdatasync.c
index
84c07f2
..
12fb3c1
100644
(file)
--- a/
sysdeps/unix/sysv/linux/fdatasync.c
+++ b/
sysdeps/unix/sysv/linux/fdatasync.c
@@
-27,3
+27,4
@@
fdatasync (int fd)
{
return SYSCALL_CANCEL (fdatasync, fd);
}
+libc_hidden_def (fdatasync)
diff --git
a/sysdeps/unix/sysv/linux/fsync.c
b/sysdeps/unix/sysv/linux/fsync.c
index
234bb00
..
e4b5c8c
100644
(file)
--- a/
sysdeps/unix/sysv/linux/fsync.c
+++ b/
sysdeps/unix/sysv/linux/fsync.c
@@
-26,3
+26,4
@@
fsync (int fd)
{
return SYSCALL_CANCEL (fsync, fd);
}
+libc_hidden_def (fsync)