Lines Matching refs:msg
43 file_lock_error(char *msg, char *file, int err, const char *str, in file_lock_error() argument
49 (void) snprintf(msg, mlen, "Could not lock file `%s'; ", file); in file_lock_error()
50 len = strlen(msg); in file_lock_error()
51 (void) snprintf(&msg[len], (mlen - len), str, arg1, arg2); in file_lock_error()
52 (void) strcat(msg, " failed - "); in file_lock_error()
54 (void) strlcat(msg, errstr, mlen); in file_lock_error()
56 len = strlen(msg); in file_lock_error()
57 (void) sprintf(&msg[len], "errno %d", err); in file_lock_error()
96 static char msg[MAXPATHLEN]; in file_lock() local
107 file_lock_error(msg, name, errno, in file_lock()
109 sizeof (msg)); in file_lock()
110 return (msg); in file_lock()
138 file_lock_error(msg, name, errno, in file_lock()
140 sizeof (msg)); in file_lock()
141 return (msg); in file_lock()
144 file_lock_error(msg, name, errno, in file_lock()
146 sizeof (msg)); in file_lock()
147 return (msg); in file_lock()