mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Remove bcopy(), bzero(), bcmp()
bcopy() has a confusing argument order and is actually a move, not a copy; they're all deprecated since POSIX.1-2001 and removed in -2008, and we shim them out to mem*() on Linux anyway Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12996
This commit is contained in:
+5
-5
@@ -2037,7 +2037,7 @@ zfs_do_get(int argc, char **argv)
|
||||
* Process the set of columns to display. We zero out
|
||||
* the structure to give us a blank slate.
|
||||
*/
|
||||
bzero(&cb.cb_columns, sizeof (cb.cb_columns));
|
||||
memset(&cb.cb_columns, 0, sizeof (cb.cb_columns));
|
||||
i = 0;
|
||||
while (*optarg != '\0') {
|
||||
static char *col_subopts[] =
|
||||
@@ -5104,7 +5104,7 @@ deleg_perm_compare(const void *larg, const void *rarg, void *unused)
|
||||
static inline void
|
||||
fs_perm_set_init(fs_perm_set_t *fspset)
|
||||
{
|
||||
bzero(fspset, sizeof (fs_perm_set_t));
|
||||
memset(fspset, 0, sizeof (fs_perm_set_t));
|
||||
|
||||
if ((fspset->fsps_list_pool = uu_list_pool_create("fsps_list_pool",
|
||||
sizeof (fs_perm_node_t), offsetof(fs_perm_node_t, fspn_list_node),
|
||||
@@ -5171,7 +5171,7 @@ who_perm_init(who_perm_t *who_perm, fs_perm_t *fsperm,
|
||||
uu_avl_pool_t *pool;
|
||||
pool = fsperm->fsp_set->fsps_deleg_perm_avl_pool;
|
||||
|
||||
bzero(who_perm, sizeof (who_perm_t));
|
||||
memset(who_perm, 0, sizeof (who_perm_t));
|
||||
|
||||
if ((who_perm->who_deleg_perm_avl = uu_avl_create(pool, NULL,
|
||||
UU_DEFAULT)) == NULL)
|
||||
@@ -5205,7 +5205,7 @@ fs_perm_init(fs_perm_t *fsperm, fs_perm_set_t *fspset, const char *fsname)
|
||||
uu_avl_pool_t *nset_pool = fspset->fsps_named_set_avl_pool;
|
||||
uu_avl_pool_t *who_pool = fspset->fsps_who_perm_avl_pool;
|
||||
|
||||
bzero(fsperm, sizeof (fs_perm_t));
|
||||
memset(fsperm, 0, sizeof (fs_perm_t));
|
||||
|
||||
if ((fsperm->fsp_sc_avl = uu_avl_create(nset_pool, NULL, UU_DEFAULT))
|
||||
== NULL)
|
||||
@@ -8508,7 +8508,7 @@ zfs_do_wait(int argc, char **argv)
|
||||
char *value;
|
||||
|
||||
/* Reset activities array */
|
||||
bzero(&enabled, sizeof (enabled));
|
||||
memset(&enabled, 0, sizeof (enabled));
|
||||
while (*optarg != '\0') {
|
||||
int activity = getsubopt(&optarg, col_subopts,
|
||||
&value);
|
||||
|
||||
Reference in New Issue
Block a user