The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/videomode/test.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* $FreeBSD$ */
    2 #include <stdio.h>
    3 #include <stdlib.h>
    4 #include <string.h>
    5 #include "videomode.h"
    6 
    7 int
    8 main(int argc, char **argv)
    9 {
   10         int     i, j;
   11 
   12         for (i = 1; i < argc ; i++) {
   13                 for (j = 0; j < videomode_count; j++) {
   14                         if (strcmp(videomode_list[j].name, argv[i]) == 0) {
   15                                 printf("dotclock for mode %s = %d, flags %x\n",
   16                                     argv[i],
   17                                     videomode_list[j].dot_clock,
   18                                     videomode_list[j].flags);
   19                                 break;
   20                         }
   21                 }
   22                 if (j == videomode_count) {
   23                         printf("dotclock for mode %s not found\n", argv[i]);
   24                 }
   25         }
   26 }

Cache object: ddc57b011a06f0b53e2469e40ebe94b6


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.