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
3cf595e
arpa
assert
bare
conf
csu
ctype
dirent
elf
gnu
gnulib
grp
hurd
inet
io
locale
mach
manual
math
misc
netinet
posix
protocols
pwd
resolv
resource
rpc
setjmp
signal
socket
stdio
stdlib
string
sunrpc
sys
sysdeps
alpha
am29k
generic
i386
i860
i960
ieee754
m68k
m88k
mach
alpha
hppa
hurd
alpha
hppa
i386
exc2signal.c
init-fault.c
init-first.c
intr-msg.h
longjmp-ctx.c
longjmp-ts.c
sigcontext.h
sigreturn.c
trampoline.c
mips
sys
.cvsignore
Dist
Implies
Makefile
Subdirs
_exit.c
accept.c
access.c
adjtime.c
bind.c
brk.c
chdir.c
chflags.c
chmod.c
chown.c
chroot.c
close.c
closedir.c
configure
configure.in
connect.c
defs.c
dirfd.c
dirstream.h
dl-sysdep.c
dup2.c
err_hurd.sub
errlist.awk
errlist.c
errnos.awk
errnos.h
euidaccess.c
execve.c
fchdir.c
fchflags.c
fchmod.c
fchown.c
fcntl.c
fcntlbits.h
fdopen.c
fexecve.c
flock.c
fork.c
fpathconf.c
fstat.c
fsync.c
ftruncate.c
getcwd.c
getdents.c
getdtsz.c
getegid.c
geteuid.c
getgid.c
getgroups.c
gethostid.c
gethostname.c
getitimer.c
getlogin.c
getpeername.c
getpgid.c
getpid.c
getppid.c
getpriority.c
getrlimit.c
getsockname.c
getsockopt.c
getuid.c
ioctl.c
ioctls.h
isatty.c
jmp-unwind.c
kill.c
libc-ldscript
link.c
listen.c
local_lim.h
lseek.c
lstat.c
mig-reply.c
mkdir.c
mknod.c
mmap.c
open.c
opendir.c
pathconf.c
pipe.c
ptrace.c
read.c
readdir.c
readlink.c
reboot.c
recv.c
recvfrom.c
rename.c
rewinddir.c
rmdir.c
sbrk.c
seekdir.c
select.c
send.c
sendto.c
setegid.c
seteuid.c
setgid.c
setgroups.c
sethostid.c
sethostname.c
setitimer.c
setlogin.c
setpgid.c
setpriority.c
setregid.c
setreuid.c
setrlimit.c
setsid.c
setsockopt.c
settimeofday.c
setuid.c
shutdown.c
sigaction.c
sigaltstack.c
sigpending.c
sigprocmask.c
sigstack.c
sigsuspend.c
socket.c
socketpair.c
stat.c
statbuf.h
stdio_init.c
symlink.c
sync.c
sysd-stdio.c
telldir.c
truncate.c
ttyname.c
umask.c
uname.c
unlink.c
utimes.c
wait4.c
write.c
i386
mips
sys
Makefile
Subdirs
_strerror.c
adjtime.c
configure
configure.in
getpagesize.c
gettimeofday.c
mprotect.c
munmap.c
pagecopy.h
sleep.c
start.c
syscall.h
sysdep.h
thread_state.h
usleep.c
mips
posix
rs6000
sparc
standalone
stub
tahoe
unix
vax
z8000
termios
time
.cvsignore
=__ify
ChangeLog
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
INSTALL
Make-dist
MakeTAGS
Makeconfig
Makefile
Makefile.in
Makerules
NEWS
NOTES
README
README.template
Rules
a.out.h
aclocal.m4
alloca.h
ansidecl.h
assert.h
config-name.in
config.guess
config.h.in
config.make.in
config.sub
configure
configure.in
crypt-README
ctype.h
dirent.h
elf.h
endian.h
errno.h
extra-lib.mk
fcntl.h
features.h
fnmatch.h
ftw.h
getopt.h
glob.h
gnu-stabs.h
gnu-versions.h
grp.h
install-sh
langinfo.h
libc-symbols.h
libintl.h
limits.h
locale.h
malloc.h
math.h
memory.h
mkinstalldirs
move-if-change
munch-tmpl.c
munch.awk
netdb.h
nlist.h
o-iterator.mk
obstack.h
paths.h
poll.h
posix1_lim.h
posix2_lim.h
printf.h
printsources
pwd.h
regex.h
resolv.h
set-hooks.h
set-init.c
setjmp.h
sgtty.h
signal.h
stdio.h
stdlib.h
string.h
strings.h
syslog.h
tar.h
termios.h
time.h
ttyent.h
unistd.h
utime.h
values.h
version.c
wordexp.h
Breadcrumbs
glibc
/
sysdeps
/
mach
/
hurd
/
i386
/
intr-msg.h
Blame
Blame
Latest commit
History
History
47 lines (40 loc) · 1.89 KB
Breadcrumbs
glibc
/
sysdeps
/
mach
/
hurd
/
i386
/
intr-msg.h
Top
File metadata and controls
Code
Blame
47 lines (40 loc) · 1.89 KB
Raw
/* Machine-dependent details of interruptible RPC messaging. i386 version. Copyright (C) 1995 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define INTR_MSG_TRAP(msg, option, send_size, rcv_size, rcv_name, timeout, notify) \ ({ \ error_t err; \ asm (".globl _hurd_intr_rpc_msg_do_trap\n" \ ".globl _hurd_intr_rpc_msg_in_trap\n" \ ".globl _hurd_intr_rpc_msg_cx_sp\n" \ ".globl _hurd_intr_rpc_msg_sp_restored\n" \ " movl %%esp, %%ecx\n" \ " leal %1, %%esp\n" \ "_hurd_intr_rpc_msg_cx_sp: movl $-25, %%eax\n" \ "_hurd_intr_rpc_msg_do_trap: lcall $7, $0 # status in %0\n" \ "_hurd_intr_rpc_msg_in_trap: movl %%ecx, %%esp\n" \ "_hurd_intr_rpc_msg_sp_restored:" \ : "=a" (err) : "m" ((&msg)[-1]) : "%ecx"); \ err; \ }) static void inline INTR_MSG_BACK_OUT (struct i386_thread_state *state) { extern const void _hurd_intr_rpc_msg_cx_sp; if (state->eip >= (natural_t) &_hurd_intr_rpc_msg_cx_sp) state->uesp = state->ecx; else state->ecx = state->uesp; }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
You can’t perform that action at this time.