Update ports_operations.c