Lines Matching defs:path
84 ** Override path to mail store at run time (using -p).
333 mailerr(NULL, "-p: missing spool path");
339 mailerr(NULL, "-p: invalid spool path");
977 char path[MAXPATHLEN];
1049 if (sm_strlcpyn(path, sizeof(path),
1059 name) >= sizeof(path))
1062 mailerr("550 5.1.1", "%s: Invalid mailbox path", name);
1072 else if (sm_snprintf(path, sizeof(path), "%s/%s",
1073 user.mbdb_homedir, HomeMailFile) >= sizeof(path))
1076 mailerr("550 5.1.1", "%s: Invalid mailbox path", name);
1107 p = path;
1124 if (lstat(path, &sb) < 0)
1136 mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY,
1140 if (lstat(path, &sb) < 0)
1144 "%s: lstat: file changed after open", path);
1153 mailerr("450 4.2.0", "%s: %s", path,
1179 mailerr("550 5.2.0", "%s: too many links", path);
1184 mailerr("550 5.2.0", "%s: irregular file", path);
1191 path, (int) sb.st_uid);
1206 mbfd = open(path, O_APPEND|O_WRONLY, 0);
1209 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno));
1225 path);
1270 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno));
1325 path, sm_errstring(errno));
1340 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno));
1377 mailerr(errcode, "%s: %s", path, sm_errstring(errno));
1378 mbfd = open(path, O_WRONLY, 0);
1476 lockmbox(path)
1477 char *path;
1484 if (strlen(path) + 6 > sizeof LockName)
1486 (void) sm_snprintf(LockName, sizeof LockName, "%s.lock", path);
1585 mailerr(NULL, "usage: mail.local [-7] [-b] [-d] [-l] [-f from|-r from] [-h filename] [-p path] user ...");
1862 mkstemp(path)
1863 char *path;
1867 return (_gettemp(path, &fd) ? fd : -1);
1871 _gettemp(path, doopen)
1872 char *path;
1881 for (trv = path; *trv; ++trv); /* extra X's get set to 0's */
1894 if (trv <= path)
1899 if (stat(path, &sbuf) < 0)
1915 if ((*doopen = open(path, O_CREAT|O_EXCL|O_RDWR,
1921 else if (stat(path, &sbuf) < 0)