diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-30 21:15:47 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-30 21:22:53 +0100 |
commit | 267995f0c2aea8030c6126f62dc41ff63d80caa7 (patch) | |
tree | e418ba1443f3cbc2f5ccf1849f0249c680a21ecf /libdiskfs/io-stubs.c | |
parent | 81fb68fee81769d81c373e3af5a508d706b7e3d6 (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 'libdiskfs/io-stubs.c')
-rw-r--r-- | libdiskfs/io-stubs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdiskfs/io-stubs.c b/libdiskfs/io-stubs.c index 592b3d8b..103591f0 100644 --- a/libdiskfs/io-stubs.c +++ b/libdiskfs/io-stubs.c @@ -23,7 +23,7 @@ /* Implement io_readsleep as described in <hurd/io.defs> Semantics of ordinary files say this shouldn't happen, because we never set use_read_size in the shared data. */ -kern_return_t +kern_return_t __attribute__((weak)) diskfs_S_io_readsleep (struct protid *cred) { if (!cred) @@ -34,7 +34,7 @@ diskfs_S_io_readsleep (struct protid *cred) /* Implement io_eofnotify as described in <hurd/io.defs>. We don't use this feature. */ -kern_return_t +kern_return_t __attribute__((weak)) diskfs_S_io_eofnotify (struct protid *cred) { if (!cred) @@ -45,7 +45,7 @@ diskfs_S_io_eofnotify (struct protid *cred) /* Implement io_postnotify as described in <hurd/io.defs>. We don't use this feature. */ -kern_return_t +kern_return_t __attribute__((weak)) diskfs_S_io_postnotify (struct protid *cred, vm_offset_t start __attribute__ ((unused)), vm_offset_t end __attribute__ ((unused))) @@ -55,7 +55,7 @@ diskfs_S_io_postnotify (struct protid *cred, /* Implement io_readnotify as described in <hurd/io.defs>. We don't use this feature. */ -kern_return_t +kern_return_t __attribute__((weak)) diskfs_S_io_readnotify (struct protid *cred) { return cred ? 0 : EOPNOTSUPP; |