Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f6688e02
Commit
f6688e02
authored
Dec 26, 2002
by
Jeff Dike
Browse files
Options
Browse Files
Download
Plain Diff
Merge uml.karaya.com:/home/jdike/linux/2.5/linus-2.5
into uml.karaya.com:/home/jdike/linux/2.5/fixes-2.5
parents
5e32ae7e
91e0c6b0
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
45 additions
and
89 deletions
+45
-89
arch/um/Makefile
arch/um/Makefile
+0
-4
arch/um/boot/Makefile
arch/um/boot/Makefile
+0
-3
arch/um/drivers/fd.c
arch/um/drivers/fd.c
+1
-1
arch/um/drivers/mcast_kern.c
arch/um/drivers/mcast_kern.c
+2
-2
arch/um/drivers/port_kern.c
arch/um/drivers/port_kern.c
+11
-11
arch/um/drivers/port_user.c
arch/um/drivers/port_user.c
+1
-37
arch/um/drivers/ubd_kern.c
arch/um/drivers/ubd_kern.c
+6
-3
arch/um/drivers/ubd_user.c
arch/um/drivers/ubd_user.c
+2
-0
arch/um/drivers/xterm.c
arch/um/drivers/xterm.c
+3
-0
arch/um/drivers/xterm_kern.c
arch/um/drivers/xterm_kern.c
+4
-2
arch/um/kernel/exitcode.c
arch/um/kernel/exitcode.c
+1
-1
arch/um/kernel/helper.c
arch/um/kernel/helper.c
+4
-1
arch/um/kernel/irq_user.c
arch/um/kernel/irq_user.c
+3
-1
arch/um/kernel/setup.c
arch/um/kernel/setup.c
+0
-20
arch/um/kernel/tempfile.c
arch/um/kernel/tempfile.c
+2
-1
arch/um/kernel/tty_log.c
arch/um/kernel/tty_log.c
+1
-1
arch/um/os-Linux/file.c
arch/um/os-Linux/file.c
+3
-1
include/asm-um/system-generic.h
include/asm-um/system-generic.h
+1
-0
No files found.
arch/um/Makefile
View file @
f6688e02
...
@@ -11,8 +11,6 @@ include/linux/version.h: arch/$(ARCH)/Makefile
...
@@ -11,8 +11,6 @@ include/linux/version.h: arch/$(ARCH)/Makefile
# EXTRAVERSION...
# EXTRAVERSION...
MODLIB
:=
$(INSTALL_MOD_PATH)
/lib/modules/
$(KERNELRELEASE)
MODLIB
:=
$(INSTALL_MOD_PATH)
/lib/modules/
$(KERNELRELEASE)
MAKEBOOT
=
$(MAKE)
-C
$(ARCH_DIR)
/boot
ifeq
($(CONFIG_DEBUGSYM),y)
ifeq
($(CONFIG_DEBUGSYM),y)
DEBUG
=
-g
DEBUG
=
-g
CFLAGS
:=
$(
subst
-fomit-frame-pointer
,,
$(CFLAGS)
)
CFLAGS
:=
$(
subst
-fomit-frame-pointer
,,
$(CFLAGS)
)
...
@@ -106,11 +104,9 @@ archclean: sysclean
...
@@ -106,11 +104,9 @@ archclean: sysclean
find
.
\(
-name
'*.bb'
-o
-name
'*.bbg'
-o
-name
'*.da'
\
find
.
\(
-name
'*.bb'
-o
-name
'*.bbg'
-o
-name
'*.da'
\
-o
-name
'*.gcov'
\)
-type
f
-print
| xargs
rm
-f
-o
-name
'*.gcov'
\)
-type
f
-print
| xargs
rm
-f
rm
-f
linux x.i gmon.out
$(ARCH_DIR)
/link.ld
$(GEN_HEADERS)
rm
-f
linux x.i gmon.out
$(ARCH_DIR)
/link.ld
$(GEN_HEADERS)
@
$(MAKEBOOT)
clean
archdep
:
archdep
:
for
d
in
$(ARCH_SUBDIRS)
;
do
$(MAKE)
-C
$$
d fastdep
;
done
for
d
in
$(ARCH_SUBDIRS)
;
do
$(MAKE)
-C
$$
d fastdep
;
done
@
$(MAKEBOOT)
dep
$(SYMLINK_HEADERS)
:
$(SYMLINK_HEADERS)
:
cd
$(TOPDIR)
/
$(
dir
$@
)
;
\
cd
$(TOPDIR)
/
$(
dir
$@
)
;
\
...
...
arch/um/boot/Makefile
deleted
100644 → 0
View file @
5e32ae7e
dep
:
clean
:
arch/um/drivers/fd.c
View file @
f6688e02
...
@@ -30,7 +30,7 @@ void *fd_init(char *str, int device, struct chan_opts *opts)
...
@@ -30,7 +30,7 @@ void *fd_init(char *str, int device, struct chan_opts *opts)
}
}
str
++
;
str
++
;
n
=
strtoul
(
str
,
&
end
,
0
);
n
=
strtoul
(
str
,
&
end
,
0
);
if
(
*
end
!=
'\0'
){
if
(
(
*
end
!=
'\0'
)
||
(
end
==
str
)
){
printk
(
"fd_init : couldn't parse file descriptor '%s'
\n
"
,
str
);
printk
(
"fd_init : couldn't parse file descriptor '%s'
\n
"
,
str
);
return
(
NULL
);
return
(
NULL
);
}
}
...
...
arch/um/drivers/mcast_kern.c
View file @
f6688e02
...
@@ -92,7 +92,7 @@ int mcast_setup(char *str, char **mac_out, void *data)
...
@@ -92,7 +92,7 @@ int mcast_setup(char *str, char **mac_out, void *data)
if
(
port_str
!=
NULL
){
if
(
port_str
!=
NULL
){
n
=
simple_strtoul
(
port_str
,
&
last
,
10
);
n
=
simple_strtoul
(
port_str
,
&
last
,
10
);
if
(
*
last
!=
'\0'
){
if
(
(
*
last
!=
'\0'
)
||
(
last
==
port_str
)
){
printk
(
KERN_ERR
"mcast_setup - Bad port : '%s'
\n
"
,
printk
(
KERN_ERR
"mcast_setup - Bad port : '%s'
\n
"
,
port_str
);
port_str
);
return
(
0
);
return
(
0
);
...
@@ -102,7 +102,7 @@ int mcast_setup(char *str, char **mac_out, void *data)
...
@@ -102,7 +102,7 @@ int mcast_setup(char *str, char **mac_out, void *data)
if
(
ttl_str
!=
NULL
){
if
(
ttl_str
!=
NULL
){
init
->
ttl
=
simple_strtoul
(
ttl_str
,
&
last
,
10
);
init
->
ttl
=
simple_strtoul
(
ttl_str
,
&
last
,
10
);
if
(
*
last
!=
'\0'
){
if
(
(
*
last
!=
'\0'
)
||
(
last
==
ttl_str
)
){
printk
(
KERN_ERR
"mcast_setup - Bad ttl : '%s'
\n
"
,
printk
(
KERN_ERR
"mcast_setup - Bad ttl : '%s'
\n
"
,
ttl_str
);
ttl_str
);
return
(
0
);
return
(
0
);
...
...
arch/um/drivers/port_kern.c
View file @
f6688e02
...
@@ -32,8 +32,8 @@ struct port_list {
...
@@ -32,8 +32,8 @@ struct port_list {
struct
port_dev
{
struct
port_dev
{
struct
port_list
*
port
;
struct
port_list
*
port
;
int
fd
;
int
fd
;
int
helper_pid
;
int
helper_pid
;
int
telnetd_pid
;
int
telnetd_pid
;
};
};
struct
connection
{
struct
connection
{
...
@@ -50,7 +50,7 @@ static void pipe_interrupt(int irq, void *data, struct pt_regs *regs)
...
@@ -50,7 +50,7 @@ static void pipe_interrupt(int irq, void *data, struct pt_regs *regs)
struct
connection
*
conn
=
data
;
struct
connection
*
conn
=
data
;
int
fd
;
int
fd
;
fd
=
os_rcv_fd
(
conn
->
socket
[
0
],
&
conn
->
helper_pid
);
fd
=
os_rcv_fd
(
conn
->
socket
[
0
],
&
conn
->
helper_pid
);
if
(
fd
<
0
){
if
(
fd
<
0
){
if
(
fd
==
-
EAGAIN
)
if
(
fd
==
-
EAGAIN
)
return
;
return
;
...
@@ -106,7 +106,7 @@ static int port_accept(struct port_list *port)
...
@@ -106,7 +106,7 @@ static int port_accept(struct port_list *port)
kfree
(
conn
);
kfree
(
conn
);
out_close:
out_close:
os_close_file
(
fd
);
os_close_file
(
fd
);
if
(
pid
!=
-
1
)
os_kill_process
(
pid
);
if
(
pid
!=
-
1
)
os_kill_process
(
pid
,
0
);
out:
out:
return
(
ret
);
return
(
ret
);
}
}
...
@@ -191,9 +191,9 @@ void *port_data(int port_num)
...
@@ -191,9 +191,9 @@ void *port_data(int port_num)
goto
out
;
goto
out
;
}
}
*
dev
=
((
struct
port_dev
)
{
port
:
port
,
*
dev
=
((
struct
port_dev
)
{
port
:
port
,
fd
:
-
1
,
fd
:
-
1
,
helper_pid
:
-
1
});
helper_pid
:
-
1
});
goto
out
;
goto
out
;
out_free:
out_free:
...
@@ -210,9 +210,9 @@ void port_remove_dev(void *d)
...
@@ -210,9 +210,9 @@ void port_remove_dev(void *d)
struct
port_dev
*
dev
=
d
;
struct
port_dev
*
dev
=
d
;
if
(
dev
->
helper_pid
!=
-
1
)
if
(
dev
->
helper_pid
!=
-
1
)
os_kill_process
(
dev
->
helper_pid
);
os_kill_process
(
dev
->
helper_pid
,
0
);
if
(
dev
->
telnetd_pid
!=
-
1
)
if
(
dev
->
telnetd_pid
!=
-
1
)
os_kill_process
(
dev
->
telnetd_pid
);
os_kill_process
(
dev
->
telnetd_pid
,
0
);
dev
->
helper_pid
=
-
1
;
dev
->
helper_pid
=
-
1
;
}
}
...
@@ -275,8 +275,8 @@ void port_kern_free(void *d)
...
@@ -275,8 +275,8 @@ void port_kern_free(void *d)
{
{
struct
port_dev
*
dev
=
d
;
struct
port_dev
*
dev
=
d
;
if
(
dev
->
helper_pid
!=
-
1
)
os_kill_process
(
dev
->
telnetd_pid
);
if
(
dev
->
helper_pid
!=
-
1
)
os_kill_process
(
dev
->
telnetd_pid
,
0
);
if
(
dev
->
telnetd_pid
!=
-
1
)
os_kill_process
(
dev
->
telnetd_pid
);
if
(
dev
->
telnetd_pid
!=
-
1
)
os_kill_process
(
dev
->
telnetd_pid
,
0
);
kfree
(
dev
);
kfree
(
dev
);
}
}
...
...
arch/um/drivers/port_user.c
View file @
f6688e02
...
@@ -40,7 +40,7 @@ void *port_init(char *str, int device, struct chan_opts *opts)
...
@@ -40,7 +40,7 @@ void *port_init(char *str, int device, struct chan_opts *opts)
}
}
str
++
;
str
++
;
port
=
strtoul
(
str
,
&
end
,
0
);
port
=
strtoul
(
str
,
&
end
,
0
);
if
(
*
end
!=
'\0'
){
if
(
(
*
end
!=
'\0'
)
||
(
end
==
str
)
){
printk
(
"port_init : couldn't parse port '%s'
\n
"
,
str
);
printk
(
"port_init : couldn't parse port '%s'
\n
"
,
str
);
return
(
NULL
);
return
(
NULL
);
}
}
...
@@ -129,42 +129,6 @@ int port_listen_fd(int port)
...
@@ -129,42 +129,6 @@ int port_listen_fd(int port)
return
(
err
);
return
(
err
);
}
}
int
port_rcv_fd
(
int
fd
)
{
int
new
,
n
;
char
buf
[
CMSG_SPACE
(
sizeof
(
new
))];
struct
msghdr
msg
;
struct
cmsghdr
*
cmsg
;
msg
.
msg_name
=
NULL
;
msg
.
msg_namelen
=
0
;
msg
.
msg_iov
=
NULL
;
msg
.
msg_iovlen
=
0
;
msg
.
msg_control
=
buf
;
msg
.
msg_controllen
=
sizeof
(
buf
);
msg
.
msg_flags
=
0
;
n
=
recvmsg
(
fd
,
&
msg
,
0
);
if
(
n
<
0
){
printk
(
"rcv_fd : recvmsg failed - errno = %d
\n
"
,
errno
);
return
(
-
1
);
}
cmsg
=
CMSG_FIRSTHDR
(
&
msg
);
if
(
cmsg
==
NULL
){
printk
(
"rcv_fd didn't receive anything, error = %d
\n
"
,
errno
);
return
(
-
1
);
}
if
((
cmsg
->
cmsg_level
!=
SOL_SOCKET
)
||
(
cmsg
->
cmsg_type
!=
SCM_RIGHTS
)){
printk
(
"rcv_fd didn't receive a descriptor
\n
"
);
return
(
-
1
);
}
new
=
((
int
*
)
CMSG_DATA
(
cmsg
))[
0
];
return
(
new
);
}
struct
port_pre_exec_data
{
struct
port_pre_exec_data
{
int
sock_fd
;
int
sock_fd
;
int
pipe_fd
;
int
pipe_fd
;
...
...
arch/um/drivers/ubd_kern.c
View file @
f6688e02
...
@@ -218,7 +218,7 @@ static int ubd_setup_common(char *str, int *index_out)
...
@@ -218,7 +218,7 @@ static int ubd_setup_common(char *str, int *index_out)
return
(
0
);
return
(
0
);
}
}
major
=
simple_strtoul
(
str
,
&
end
,
0
);
major
=
simple_strtoul
(
str
,
&
end
,
0
);
if
(
*
end
!=
'\0'
){
if
(
(
*
end
!=
'\0'
)
||
(
end
==
str
)
){
printk
(
KERN_ERR
printk
(
KERN_ERR
"ubd_setup : didn't parse major number
\n
"
);
"ubd_setup : didn't parse major number
\n
"
);
return
(
1
);
return
(
1
);
...
@@ -520,7 +520,10 @@ static int ubd_add(int n)
...
@@ -520,7 +520,10 @@ static int ubd_add(int n)
struct
ubd
*
dev
=
&
ubd_dev
[
n
];
struct
ubd
*
dev
=
&
ubd_dev
[
n
];
int
err
;
int
err
;
if
(
!
dev
->
file
||
dev
->
is_dir
)
if
(
dev
->
is_dir
)
return
(
-
EISDIR
);
if
(
!
dev
->
file
)
return
(
-
ENODEV
);
return
(
-
ENODEV
);
if
(
ubd_open_dev
(
dev
))
if
(
ubd_open_dev
(
dev
))
...
@@ -583,7 +586,7 @@ static int ubd_remove(char *str)
...
@@ -583,7 +586,7 @@ static int ubd_remove(char *str)
return
(
err
);
/* it should be a number 0-7/a-h */
return
(
err
);
/* it should be a number 0-7/a-h */
n
=
*
str
-
'0'
;
n
=
*
str
-
'0'
;
if
(
n
>
MAX_DEV
)
if
(
n
>
=
MAX_DEV
)
return
(
err
);
return
(
err
);
dev
=
&
ubd_dev
[
n
];
dev
=
&
ubd_dev
[
n
];
...
...
arch/um/drivers/ubd_user.c
View file @
f6688e02
...
@@ -473,6 +473,8 @@ void do_io(struct io_thread_req *req)
...
@@ -473,6 +473,8 @@ void do_io(struct io_thread_req *req)
&
req
->
sector_mask
)
==
bit
))
&
req
->
sector_mask
)
==
bit
))
end
++
;
end
++
;
if
(
end
!=
nsectors
)
printk
(
"end != nsectors
\n
"
);
off
=
req
->
offset
+
req
->
offsets
[
bit
]
+
off
=
req
->
offset
+
req
->
offsets
[
bit
]
+
start
*
req
->
sectorsize
;
start
*
req
->
sectorsize
;
len
=
(
end
-
start
)
*
req
->
sectorsize
;
len
=
(
end
-
start
)
*
req
->
sectorsize
;
...
...
arch/um/drivers/xterm.c
View file @
f6688e02
...
@@ -93,6 +93,9 @@ int xterm_open(int input, int output, int primary, void *d)
...
@@ -93,6 +93,9 @@ int xterm_open(int input, int output, int primary, void *d)
"/usr/lib/uml/port-helper"
,
"-uml-socket"
,
"/usr/lib/uml/port-helper"
,
"-uml-socket"
,
file
,
NULL
};
file
,
NULL
};
if
(
access
(
argv
[
4
],
X_OK
))
argv
[
4
]
=
"port-helper"
;
fd
=
mkstemp
(
file
);
fd
=
mkstemp
(
file
);
if
(
fd
<
0
){
if
(
fd
<
0
){
printk
(
"xterm_open : mkstemp failed, errno = %d
\n
"
,
errno
);
printk
(
"xterm_open : mkstemp failed, errno = %d
\n
"
,
errno
);
...
...
arch/um/drivers/xterm_kern.c
View file @
f6688e02
...
@@ -22,11 +22,13 @@ struct xterm_wait {
...
@@ -22,11 +22,13 @@ struct xterm_wait {
static
void
xterm_interrupt
(
int
irq
,
void
*
data
,
struct
pt_regs
*
regs
)
static
void
xterm_interrupt
(
int
irq
,
void
*
data
,
struct
pt_regs
*
regs
)
{
{
struct
xterm_wait
*
xterm
=
data
;
struct
xterm_wait
*
xterm
=
data
;
int
fd
;
xterm
->
new_
fd
=
os_rcv_fd
(
xterm
->
fd
,
&
xterm
->
pid
);
fd
=
os_rcv_fd
(
xterm
->
fd
,
&
xterm
->
pid
);
if
(
xterm
->
new_
fd
==
-
EAGAIN
)
if
(
fd
==
-
EAGAIN
)
return
;
return
;
xterm
->
new_fd
=
fd
;
up
(
&
xterm
->
sem
);
up
(
&
xterm
->
sem
);
}
}
...
...
arch/um/kernel/exitcode.c
View file @
f6688e02
...
@@ -42,7 +42,7 @@ static int write_proc_exitcode(struct file *file, const char *buffer,
...
@@ -42,7 +42,7 @@ static int write_proc_exitcode(struct file *file, const char *buffer,
return
(
count
);
return
(
count
);
}
}
int
make_proc_exitcode
(
void
)
static
int
make_proc_exitcode
(
void
)
{
{
struct
proc_dir_entry
*
ent
;
struct
proc_dir_entry
*
ent
;
...
...
arch/um/kernel/helper.c
View file @
f6688e02
...
@@ -86,7 +86,10 @@ int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv,
...
@@ -86,7 +86,10 @@ int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv,
errno
);
errno
);
return
(
-
errno
);
return
(
-
errno
);
}
}
else
if
(
n
!=
0
)
pid
=
-
err
;
else
if
(
n
!=
0
){
waitpid
(
pid
,
NULL
,
0
);
pid
=
-
err
;
}
if
(
stack_out
==
NULL
)
free_stack
(
stack
,
0
);
if
(
stack_out
==
NULL
)
free_stack
(
stack
,
0
);
else
*
stack_out
=
stack
;
else
*
stack_out
=
stack
;
...
...
arch/um/kernel/irq_user.c
View file @
f6688e02
...
@@ -188,7 +188,8 @@ int activate_fd(int irq, int fd, int type, void *dev_id)
...
@@ -188,7 +188,8 @@ int activate_fd(int irq, int fd, int type, void *dev_id)
pollfds_size
++
;
pollfds_size
++
;
}
}
if
(
type
==
IRQ_WRITE
)
events
=
0
;
if
(
type
==
IRQ_WRITE
)
fd
=
-
1
;
pollfds
[
pollfds_num
]
=
((
struct
pollfd
)
{
fd
:
fd
,
pollfds
[
pollfds_num
]
=
((
struct
pollfd
)
{
fd
:
fd
,
events
:
events
,
events
:
events
,
...
@@ -337,6 +338,7 @@ void reactivate_fd(int fd, int irqnum)
...
@@ -337,6 +338,7 @@ void reactivate_fd(int fd, int irqnum)
irq_unlock
(
flags
);
irq_unlock
(
flags
);
return
;
return
;
}
}
pollfds
[
i
].
fd
=
irq
->
fd
;
pollfds
[
i
].
fd
=
irq
->
fd
;
irq_unlock
(
flags
);
irq_unlock
(
flags
);
...
...
arch/um/kernel/setup.c
deleted
100644 → 0
View file @
5e32ae7e
/*
* Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com)
* Licensed under the GPL
*/
#include "asm/processor.h"
struct
cpuinfo_um
boot_cpu_data
=
{
loops_per_jiffy
:
0
,
ipi_pipe
:
{
-
1
,
-
1
}
};
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
* adjust the settings for this buffer only. This must remain at the end
* of the file.
* ---------------------------------------------------------------------------
* Local variables:
* c-file-style: "linux"
* End:
*/
arch/um/kernel/tempfile.c
View file @
f6688e02
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
#include <sys/param.h>
#include <sys/param.h>
#include "init.h"
#include "init.h"
char
*
tempdir
=
NULL
;
/* Modified from create_mem_file and start_debugger */
static
char
*
tempdir
=
NULL
;
static
void
__init
find_tempdir
(
void
)
static
void
__init
find_tempdir
(
void
)
{
{
...
...
arch/um/kernel/tty_log.c
View file @
f6688e02
...
@@ -103,7 +103,7 @@ static int __init set_tty_log_fd(char *name, int *add)
...
@@ -103,7 +103,7 @@ static int __init set_tty_log_fd(char *name, int *add)
char
*
end
;
char
*
end
;
tty_log_fd
=
strtoul
(
name
,
&
end
,
0
);
tty_log_fd
=
strtoul
(
name
,
&
end
,
0
);
if
(
*
end
!=
'\0'
){
if
(
(
*
end
!=
'\0'
)
||
(
end
==
name
)
){
printk
(
"set_tty_log_fd - strtoul failed on '%s'
\n
"
,
name
);
printk
(
"set_tty_log_fd - strtoul failed on '%s'
\n
"
,
name
);
tty_log_fd
=
-
1
;
tty_log_fd
=
-
1
;
}
}
...
...
arch/um/os-Linux/file.c
View file @
f6688e02
...
@@ -171,7 +171,8 @@ int os_pipe(int *fds, int stream, int close_on_exec)
...
@@ -171,7 +171,8 @@ int os_pipe(int *fds, int stream, int close_on_exec)
int
err
,
type
=
stream
?
SOCK_STREAM
:
SOCK_DGRAM
;
int
err
,
type
=
stream
?
SOCK_STREAM
:
SOCK_DGRAM
;
err
=
socketpair
(
AF_UNIX
,
type
,
0
,
fds
);
err
=
socketpair
(
AF_UNIX
,
type
,
0
,
fds
);
if
(
err
)
return
(
-
errno
);
if
(
err
)
return
(
-
errno
);
if
(
!
close_on_exec
)
if
(
!
close_on_exec
)
return
(
0
);
return
(
0
);
...
@@ -185,6 +186,7 @@ int os_pipe(int *fds, int stream, int close_on_exec)
...
@@ -185,6 +186,7 @@ int os_pipe(int *fds, int stream, int close_on_exec)
int
os_set_fd_async
(
int
fd
,
int
owner
)
int
os_set_fd_async
(
int
fd
,
int
owner
)
{
{
/* XXX This should do F_GETFL first */
if
(
fcntl
(
fd
,
F_SETFL
,
O_ASYNC
|
O_NONBLOCK
)
<
0
){
if
(
fcntl
(
fd
,
F_SETFL
,
O_ASYNC
|
O_NONBLOCK
)
<
0
){
printk
(
"os_set_fd_async : failed to set O_ASYNC and "
printk
(
"os_set_fd_async : failed to set O_ASYNC and "
"O_NONBLOCK on fd # %d, errno = %d
\n
"
,
fd
,
errno
);
"O_NONBLOCK on fd # %d, errno = %d
\n
"
,
fd
,
errno
);
...
...
include/asm-um/system-generic.h
View file @
f6688e02
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
extern
void
*
switch_to
(
void
*
prev
,
void
*
next
,
void
*
last
);
extern
void
*
switch_to
(
void
*
prev
,
void
*
next
,
void
*
last
);
extern
int
get_signals
(
void
);
extern
int
set_signals
(
int
enable
);
extern
int
set_signals
(
int
enable
);
extern
int
get_signals
(
void
);
extern
int
get_signals
(
void
);
extern
void
block_signals
(
void
);
extern
void
block_signals
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment