summaryrefslogtreecommitdiff
path: root/libnetfs/iostubs.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-30 21:15:47 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-30 21:22:53 +0100
commit267995f0c2aea8030c6126f62dc41ff63d80caa7 (patch)
treee418ba1443f3cbc2f5ccf1849f0249c680a21ecf /libnetfs/iostubs.c
parent81fb68fee81769d81c373e3af5a508d706b7e3d6 (diff)
Mark library stubs as weak
So that static linking of e.g. console.static can work. * libdiskfs/io-stubs.c (diskfs_S_io_readsleep, diskfs_S_io_eofnotify, diskfs_S_io_postnotify, diskfs_S_io_readnotify): Mark weak. * libnetfs/fsstubs.c (netfs_S_file_notice_changes, netfs_S_file_getfh, netfs_S_ifsock_getsockaddr): Likewise. * libnetfs/fsysstubs.c (netfs_S_fsys_getfile: netfs_S_fsys_getpriv, netfs_S_fsys_init, netfs_S_fsys_forward, netfs_S_fsys_startup): Likewise. * libpager/stubs.c (_pager_S_memory_object_copy, _pager_S_memory_object_data_write, _pager_S_memory_object_supply_completed): Likewise. * libtrivfs/fsys-stubs.c (trivfs_S_fsys_startup, trivfs_S_fsys_getpriv, trivfs_S_fsys_init, trivfs_S_fsys_getfile): Likewise. * libtrivfs/io-stubs.c (trivfs_S_io_map_cntl, trivfs_S_io_get_conch, trivfs_S_io_release_conch, trivfs_S_io_eofnotify, trivfs_S_io_prenotify, trivfs_S_io_postnotify, trivfs_S_io_readsleep, trivfs_S_io_sigio, trivfs_S_io_readnotify): Likewise.
Diffstat (limited to 'libnetfs/iostubs.c')
-rw-r--r--libnetfs/iostubs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libnetfs/iostubs.c b/libnetfs/iostubs.c
index 1465b43a..a5ff4504 100644
--- a/libnetfs/iostubs.c
+++ b/libnetfs/iostubs.c
@@ -22,7 +22,7 @@
#include "netfs.h"
#include "io_S.h"
-error_t
+error_t __attribute__((weak))
netfs_S_io_map (struct protid *user,
mach_port_t *rdobj, mach_msg_type_name_t *rdobjtype,
mach_port_t *wrobj, mach_msg_type_name_t *wrobjtype)
@@ -30,7 +30,7 @@ netfs_S_io_map (struct protid *user,
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_map_cntl (struct protid *user,
mach_port_t *obj,
mach_msg_type_name_t *objtype)
@@ -38,51 +38,51 @@ netfs_S_io_map_cntl (struct protid *user,
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_get_conch (struct protid *user)
{
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_release_conch (struct protid *user)
{
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_eofnotify (struct protid *user)
{
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_prenotify (struct protid *user,
vm_offset_t start, vm_offset_t stop)
{
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_postnotify (struct protid *user,
vm_offset_t start, vm_offset_t stop)
{
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_readnotify (struct protid *user)
{
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_readsleep (struct protid *user)
{
return EOPNOTSUPP;
}
-error_t
+error_t __attribute__((weak))
netfs_S_io_sigio (struct protid *user)
{
return EOPNOTSUPP;