Lines Matching defs:path
86 ** Override path to mail store at run time (using -p).
344 mailerr(NULL, "-p: missing spool path");
350 mailerr(NULL, "-p: invalid spool path");
989 char path[MAXPATHLEN];
1061 if (sm_strlcpyn(path, sizeof(path),
1071 name) >= sizeof(path))
1074 mailerr("550 5.1.1", "%s: Invalid mailbox path", name);
1084 else if (sm_snprintf(path, sizeof(path), "%s/%s",
1085 user.mbdb_homedir, HomeMailFile) >= sizeof(path))
1088 mailerr("550 5.1.1", "%s: Invalid mailbox path", name);
1119 p = path;
1136 if (lstat(path, &sb) < 0)
1148 mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY,
1152 if (lstat(path, &sb) < 0)
1156 "%s: lstat: file changed after open", path);
1165 mailerr("450 4.2.0", "%s: %s", path,
1191 mailerr("550 5.2.0", "%s: too many links", path);
1196 mailerr("550 5.2.0", "%s: irregular file", path);
1203 path, (int) sb.st_uid);
1218 mbfd = open(path, O_APPEND|O_WRONLY, 0);
1221 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno));
1237 path);
1282 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno));
1341 path, sm_errstring(errno));
1356 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno));
1393 mailerr(errcode, "%s: %s", path, sm_errstring(errno));
1394 mbfd = open(path, O_WRONLY, 0);
1492 lockmbox(path)
1493 char *path;
1500 if (strlen(path) + 6 > sizeof LockName)
1502 (void) sm_snprintf(LockName, sizeof LockName, "%s.lock", path);
1601 mailerr(NULL, "usage: mail.local [-7] [-B] [-b] [-d] [-l] [-s] [-f from|-r from] [-h filename] [-p path] user ...");
1878 mkstemp(path)
1879 char *path;
1883 return (_gettemp(path, &fd) ? fd : -1);
1887 _gettemp(path, doopen)
1888 char *path;
1897 for (trv = path; *trv; ++trv); /* extra X's get set to 0's */
1910 if (trv <= path)
1915 if (stat(path, &sbuf) < 0)
1931 if ((*doopen = open(path, O_CREAT|O_EXCL|O_RDWR,
1937 else if (stat(path, &sbuf) < 0)