HelenOS sources

day_of_year       249 uspace/lib/c/generic/time.c 	    day_of_year(year, mon, mday);
day_of_year       353 uspace/lib/c/generic/time.c 	tm->tm_yday = day_of_year(year, mon, day + 1);
HelenOS homepage, sources at GitHub