Lines Matching defs:a_mode
68 static int write_file(char **r_linknam, int a_ctrl, mode_t a_mode,
78 * |= MODE_SET - mode is a_mode (no mask SET?ID bits)
83 * - a_mode - mode to set a_dstpath to (mode controlled by a_ctrl)
90 cppath(int a_ctrl, char *a_srcPath, char *a_dstPath, mode_t a_mode)
102 echoDebug(DBG_CPPATH_ENTRY, a_ctrl, a_mode, a_srcPath, a_dstPath);
124 * --> use a_mode (do not mask off any portion)
125 * --> If a_mode is unknown (? in the pkgmap), then the file gets
137 usemode = (a_mode ^ BADMODE) ? a_mode : 0644;
138 if (a_mode != usemode && usemode == 0644) {
140 a_mode = usemode;
143 a_mode = (srcStatbuf.st_mode & S_IAMB);
145 a_mode = 0666;
153 dstFd = write_file(&linknam, a_ctrl, a_mode, a_dstPath);
288 * a_mode - permissions mode to set a_file to
296 write_file(char **r_linknam, int a_ctrl, mode_t a_mode, char *a_file)
304 echoDebug(DBG_WRITEFILE_ENTRY, a_ctrl, a_mode, a_file);
352 if (fchmod(fd, a_mode) < 0) {
353 progerr(ERR_FCHMOD, loc_link, a_mode, errno,
364 fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode);
367 fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode);