Lines Matching refs:which
159 __user_local_dirname(uid_t uid, dirhelper_which_t which, char *path, size_t pathlen)
169 if((int)which < 0 || which > DIRHELPER_USER_LOCAL_LAST) {
170 setcrashlogmessage("Out of range: which=%d", (int)which);
182 if(which == DIRHELPER_USER_LOCAL_TEMP) {
191 setcrashlogmessage("Only DIRHELPER_USER_LOCAL_TEMP is supported: which=%d", (int)which);
212 VAR_FOLDERS_PATH, BUCKETLEN, str, str + BUCKETLEN, subdirs[which]);
258 __private_extern__ char *_dirhelper(dirhelper_which_t which, char *path, size_t pathlen);
260 _dirhelper(dirhelper_which_t which, char *path, size_t pathlen)
265 if((int)which < 0 || which > DIRHELPER_USER_LOCAL_LAST) {
266 setcrashlogmessage("Out of range: which=%d", (int)which);
349 if(pathlen < strlen(userdir) + strlen(subdirs[which]) + 1) {
350 setcrashlogmessage("buffer too small: pathlen=%zu userdir=%s subdirs[%d]=%s", pathlen, userdir, which, subdirs[which]);
355 strcat(path, subdirs[which]);
365 if(mkdir(path, modes[which]) != 0 && errno != EEXIST) {
366 setcrashlogmessage("mkdir: path=%s modes[%d]=0%o: %s", path, which, modes[which], strerror(errno));
432 if (mkdir(path, modes[which]) != 0 && errno != EEXIST) {
433 setcrashlogmessage("mkdir: path=%s modes[%d]=0%o: %s", path, which, modes[which], strerror(errno));
440 if (which == DIRHELPER_USER_LOCAL_TEMP) {