Lines Matching refs:msg
44 file_lock_error(char *msg, char *file, int err, const char *str, in file_lock_error() argument
50 (void) snprintf(msg, mlen, "Could not lock file `%s'; ", file); in file_lock_error()
51 len = strlen(msg); in file_lock_error()
52 (void) snprintf(&msg[len], (mlen - len), str, arg1, arg2); in file_lock_error()
53 (void) strcat(msg, " failed - "); in file_lock_error()
55 (void) strlcat(msg, errstr, mlen); in file_lock_error()
57 len = strlen(msg); in file_lock_error()
58 (void) sprintf(&msg[len], "errno %d", err); in file_lock_error()
97 static char msg[MAXPATHLEN]; in file_lock() local
108 file_lock_error(msg, name, errno, in file_lock()
110 sizeof (msg)); in file_lock()
111 return (msg); in file_lock()
139 file_lock_error(msg, name, errno, in file_lock()
141 sizeof (msg)); in file_lock()
142 return (msg); in file_lock()
145 file_lock_error(msg, name, errno, in file_lock()
147 sizeof (msg)); in file_lock()
148 return (msg); in file_lock()