Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
git-mirror
/
glibc
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security
Insights
Files
glibc-2.15
abilist
aout
argp
assert
bits
catgets
conf
conform
crypt
csu
ctype
debug
dirent
dlfcn
elf
gmon
gnulib
grp
gshadow
hesiod
hurd
iconv
iconvdata
include
inet
intl
io
libidn
libio
locale
localedata
login
mach
malloc
manual
math
misc
nis
nptl
nptl_db
nscd
nss
po
posix
pwd
resolv
resource
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
streams
string
sunrpc
sysdeps
generic
gnu
i386
ia64
ieee754
mach
posix
powerpc
pthread
s390
sh
sparc
unix
bsd
common
i386
inet
mman
powerpc
sh
sparc
sysv
bits
i386
linux
bits
i386
ia64
net
netash
netatalk
netax25
neteconet
netinet
netipx
netiucv
netpacket
netrom
netrose
nfs
powerpc
s390
scsi
sh
sparc
sys
wordsize-64
x86_64
bits
sys
Implies
Makefile
Versions
____longjmp_chk.S
__start_context.S
brk.c
clock_gettime.c
clone.S
dl-cache.h
dl-procinfo.c
dl-procinfo.h
get_clockfreq.c
getcontext.S
gettimeofday.c
init-first.c
kernel_stat.h
ldconfig.h
ldd-rewrite.sed
makecontext.c
profil-counter.h
readelflib.c
recv.c
register-dump.h
sched_getcpu.S
sched_setaffinity.c
send.c
setcontext.S
sigaction.c
sigcontextinfo.h
sigpending.c
sigprocmask.c
swapcontext.S
syscall.S
syscalls.list
sysconf.c
sysdep.S
sysdep.h
time.c
ucontext_i.sym
umount.c
vfork.S
Implies
Makefile
Versions
_exit.c
a.out.h
accept.S
accept4.c
adjtime.c
aio_sigqueue.c
bind.S
check_native.c
check_pf.c
clock.c
clock_getcpuclockid.c
clock_getres.c
clock_gettime.c
clock_nanosleep.c
clock_settime.c
cmsg_nxthdr.c
configure
configure.in
connect.S
device-nrs.h
dl-brk.c
dl-execstack.c
dl-fxstatat64.c
dl-getcwd.c
dl-librecon.h
dl-openat64.c
dl-opendir.c
dl-origin.c
dl-osinfo.h
dl-sbrk.c
dl-sysdep.c
dl-sysdep.h
dl-vdso.c
dl-vdso.h
epoll_pwait.c
errqueue.h
eventfd.c
eventfd_read.c
eventfd_write.c
execve.c
exit-thread.S
faccessat.c
fallocate.c
fallocate64.c
fatal-prepare.h
fchmodat.c
fchownat.c
fcntl.c
fd_to_filename.h
fexecve.c
fpathconf.c
fstatfs64.c
fstatvfs.c
fstatvfs64.c
ftime.c
ftruncate64.c
futimens.c
futimes.c
futimesat.c
fxstat.c
fxstat64.c
fxstatat.c
fxstatat64.c
gai_sigqueue.c
getclktck.c
getcwd.c
getdents.c
getdents64.c
getdirentries.c
getdirentries64.c
getdtsz.c
gethostid.c
getipv4sourcefilter.c
getloadavg.c
getlogin.c
getlogin_r.c
getpagesize.c
getpeername.S
getpriority.c
getpt.c
getrlimit64.c
getsockname.S
getsockopt.S
getsourcefilter.c
getsysstats.c
grantpt.c
if_index.c
ifaddrs.c
ifreq.c
init-first.c
internal_accept4.S
internal_recvmmsg.S
internal_sendmmsg.S
internal_statvfs.c
internal_statvfs64.c
ipc_priv.h
kernel-features.h
kernel-posix-cpu-timers.h
kernel_sigaction.h
kernel_stat.h
kernel_termios.h
ldd-rewrite.sed
lddlibc4.c
ldsodefs.h
libc_fatal.c
linkat.c
linux_fsinfo.h
listen.S
llseek.c
local-setxid.h
lseek64.c
lutimes.c
lxstat.c
lxstat64.c
makedev.c
mkdirat.c
mmap64.c
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_unlink.c
msgctl.c
msgget.c
msgrcv.c
msgsnd.c
netlinkaccess.h
nice.c
not-cancel.h
nscd_setup_thread.c
ntp_gettime.c
ntp_gettimex.c
open64.c
open64_2.c
open_2.c
openat.c
openat64.c
opendir.c
opensock.c
pathconf.c
pathconf.h
paths.h
poll.c
posix_fadvise.c
posix_fadvise64.c
posix_fallocate.c
posix_fallocate64.c
posix_madvise.c
ppoll.c
pread.c
pread64.c
preadv.c
preadv64.c
prlimit.c
prof-freq.c
profil.c
pselect.c
ptrace.c
ptsname.c
pwrite.c
pwrite64.c
pwritev.c
pwritev64.c
readahead.c
readdir64.c
readdir64_r.c
readlinkat.c
readonly-area.c
readv.c
reboot.c
recv.S
recvfrom.S
recvmmsg.c
recvmsg.S
remove.c
renameat.c
sa_len.c
sched_getaffinity.c
sched_getcpu.c
sched_setaffinity.c
segfault.c
semctl.c
semget.c
semop.c
semtimedop.c
send.S
sendmmsg.c
sendmsg.S
sendto.S
setegid.c
seteuid.c
setgid.c
setgroups.c
sethostid.c
setipv4sourcefilter.c
setregid.c
setresgid.c
setresuid.c
setreuid.c
setrlimit64.c
setsockopt.S
setsourcefilter.c
setuid.c
shm_open.c
shm_unlink.c
shmat.c
shmctl.c
shmdt.c
shmget.c
shutdown.S
sigaction.c
siglist.h
signal.c
signalfd.c
sigpending.c
sigprocmask.c
sigqueue.c
sigreturn.c
sigset-cvt-mask.h
sigstack.c
sigsuspend.c
sigtimedwait.c
sigwait.c
sigwaitinfo.c
sizes.h
sleep.c
socketcall.h
socketpair.S
speed.c
statfs64.c
statvfs.c
statvfs64.c
symlinkat.c
sync_file_range.c
syscalls.list
sysconf.c
sysctl.c
syslog.c
system.c
tcdrain.c
tcflow.c
tcflush.c
tcgetattr.c
tcgetpgrp.c
tcsetattr.c
tcsetpgrp.c
termio.h
testrtsig.h
time.c
times.c
truncate64.c
tst-clone.c
tst-getcpu.c
ttyname.c
ttyname_r.c
ualarm.c
ulimit.c
umount.S
umount2.S
unlinkat.c
unlockpt.c
updwtmp.c
usleep.c
ustat.c
utimensat.c
utimes.c
utmp_file.c
vfork.c
wait.c
wait3.c
waitid.c
waitpid.c
writev.c
xmknod.c
xmknodat.c
xstat.c
xstat64.c
xstatconv.c
xstatconv.h
Makefile
Versions
direct.h
getdents.c
gethostname.c
setrlimit.c
settimeofday.c
sigaction.c
syscalls.list
sysv_termio.h
tcdrain.c
tcflow.c
tcflush.c
tcgetattr.c
tcgetpgrp.c
tcsendbrk.c
tcsetattr.c
tcsetpgrp.c
x86_64
Implies
Makefile
Subdirs
_exit.S
alarm.c
clock_gettime.c
clock_nanosleep.c
clock_settime.c
closedir.c
confstr.h
dirfd.c
dirstream.h
errnos-tmpl.c
errnos.awk
execve.S
fdopendir.c
fork.S
fxstat.c
get_child_max.c
getdents.c
getegid.S
geteuid.S
getlogin.c
getlogin_r.c
getpagesize.c
getppid.S
grantpt.c
ioctls-tmpl.c
ioctls.awk
make-syscalls.sh
mk-local_lim.c
mkdir.c
mkfifo.c
mkfifoat.c
nice.c
opendir.c
readdir.c
readdir_r.c
rewinddir.c
rmdir.c
s-proto-bp.S
s-proto-cancel.S
s-proto.S
seekdir.c
setxid.h
siglist.c
snarf-ioctls
sockatmark.c
start.c
stime.c
syscall-template.S
syscall.S
syscalls.list
sysdep.h
system.c
telldir.c
time.c
utime.c
xmknod.c
xstat.c
wordsize-32
wordsize-64
x86_64
sysvipc
termios
time
timezone
wcsmbs
wctype
.gitattributes
.gitignore
BUGS
CANCEL-FCT-WAIVE
CANCEL-FILE-WAIVE
CONFORMANCE
COPYING
COPYING.LIB
ChangeLog
ChangeLog.1
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16
ChangeLog.17
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
FAQ
FAQ.in
INSTALL
LICENSES
Makeconfig
Makefile
Makefile.in
Makerules
NAMESPACE
NEWS
NOTES
PROJECTS
README
README.libm
Rules
Versions.def
WUR-REPORT
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.in
cppflags-iterator.mk
extra-lib.mk
extra-modules.mk
libc-abis
o-iterator.mk
shlib-versions
test-skeleton.c
version.h
Breadcrumbs
glibc
/
sysdeps
/
unix
/
sysv
/
linux
/
x86_64
/
clock_gettime.c
Blame
Blame
Latest commit
History
History
20 lines (18 loc) · 605 Bytes
Breadcrumbs
glibc
/
sysdeps
/
unix
/
sysv
/
linux
/
x86_64
/
clock_gettime.c
Top
File metadata and controls
Code
Blame
20 lines (18 loc) · 605 Bytes
Raw
#include "bits/libc-vdso.h" #ifdef SHARED # define SYSCALL_GETTIME(id, tp) \ ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \ long int v_ret; \ PTR_DEMANGLE (f); \ v_ret = f (id, tp); \ if (INTERNAL_SYSCALL_ERROR_P (v_ret, )) { \ __set_errno (INTERNAL_SYSCALL_ERRNO (v_ret, )); \ v_ret = -1; \ } \ v_ret; }) # define INTERNAL_GETTIME(id, tp) \ ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \ PTR_DEMANGLE (f); \ f (id, tp); }) #endif #include "../clock_gettime.c"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
You can’t perform that action at this time.