HelenOS sources

TYPE_DIR           89 uspace/app/bdsh/cmds/modules/cp/cp.c 		return TYPE_DIR;
TYPE_DIR          208 uspace/app/bdsh/cmds/modules/cp/cp.c 		if (dest_type == TYPE_DIR) {
TYPE_DIR          229 uspace/app/bdsh/cmds/modules/cp/cp.c 		if (dest_type == TYPE_DIR) {
TYPE_DIR          277 uspace/app/bdsh/cmds/modules/cp/cp.c 	} else if (src_type == TYPE_DIR) {
TYPE_DIR          302 uspace/app/bdsh/cmds/modules/cp/cp.c 		case TYPE_DIR:
HelenOS homepage, sources at GitHub