Lines Matching refs:cpy
55 unsigned int cpy, set; in copy_fd_bitmaps() local
57 cpy = count / BITS_PER_BYTE; in copy_fd_bitmaps()
59 memcpy(nfdt->open_fds, ofdt->open_fds, cpy); in copy_fd_bitmaps()
60 memset((char *)nfdt->open_fds + cpy, 0, set); in copy_fd_bitmaps()
61 memcpy(nfdt->close_on_exec, ofdt->close_on_exec, cpy); in copy_fd_bitmaps()
62 memset((char *)nfdt->close_on_exec + cpy, 0, set); in copy_fd_bitmaps()
64 cpy = BITBIT_SIZE(count); in copy_fd_bitmaps()
65 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
66 memcpy(nfdt->full_fds_bits, ofdt->full_fds_bits, cpy); in copy_fd_bitmaps()
67 memset((char *)nfdt->full_fds_bits + cpy, 0, set); in copy_fd_bitmaps()
76 size_t cpy, set; in copy_fdtable() local
80 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
82 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable()
83 memset((char *)nfdt->fd + cpy, 0, set); in copy_fdtable()