Lines Matching defs:template
50 mkstemp(char *template)
55 start = strlen(template) - 1;
56 while(template[start] == 'X') {
57 template[start] = '0' + val % 10;
64 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600);
69 if(template[i] == 0)
71 template[i]++;
72 if(template[i] == '9' + 1)
73 template[i] = 'a';
74 if(template[i] <= 'z')
76 template[i] = 'a';