Lines Matching defs:mode

95     char mode[8];		/* stdio file mode ("r\0", "rb\0", "r+b\0" etc.) */
98 Zero(mode,sizeof(mode),char);
148 /* sysopen style args, i.e. integer mode and permissions */
188 mode[ix++] = IoTYPE_NUMERIC; /* Marker to openn to use numeric "sysopen" */
194 IoTYPE(io) = PerlIO_intmode2str(rawmode, &mode[ix], &writing);
200 fp = PerlIO_openn(aTHX_ type, mode, -1, rawmode, rawperm, NULL, num_svs, svp);
221 /* New style explicit name, type is just mode and layer info */
246 mode[1] = *type++;
254 Perl_croak(aTHX_ "Unknown open() mode '%.*s'", (int)olen, oname);
279 mode[0] = 'w';
282 strcat(mode, "b");
284 strcat(mode, "t");
286 fp = PerlProc_popen_list(mode, num_svs, svp);
289 fp = PerlProc_popen(name,mode);
293 if (PerlIO_apply_layers(aTHX_ fp, mode, type) != 0) {
304 mode[0] = IoTYPE(io) = IoTYPE_APPEND;
308 mode[0] = 'w';
313 strcat(mode, "b");
315 strcat(mode, "t");
378 * explicitly set appropriate access mode */
402 if (!(fp = PerlIO_openn(aTHX_ type,mode,fd,0,0,NULL,num_svs,svp))) {
428 fp = PerlIO_openn(aTHX_ type,mode,-1,0,0,NULL,num_svs,svp);
437 mode[0] = 'r';
439 strcat(mode, "b");
441 strcat(mode, "t");
462 fp = PerlIO_openn(aTHX_ type,mode,-1,0,0,NULL,num_svs,svp);
492 mode[0] = 'r';
494 strcat(mode, "b");
496 strcat(mode, "t");
498 fp = PerlProc_popen_list(mode,num_svs,svp);
501 fp = PerlProc_popen(name,mode);
507 if (PerlIO_apply_layers(aTHX_ fp, mode, type) != 0) {
520 mode[0] = 'r';
522 strcat(mode, "b");
524 strcat(mode, "t");
536 fp = PerlIO_openn(aTHX_ type,mode,-1,0,0,NULL,num_svs,svp);
687 char *s = mode;
1139 int mode = O_BINARY;
1150 mode = O_BINARY;
1160 mode = O_TEXT;
1188 return mode;
1192 Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode)
1199 if (!(mode & O_BINARY))
1202 return PerlIO_binmode(aTHX_ fp, iotype, mode, name);
1699 * deleted; supervisor-mode images don't pay attention to
1824 Perl_cando(pTHX_ Mode_t mode, Uid_t effective, register Stat_t *statbufp)
1850 return (mode & statbufp->st_mode) ? TRUE : FALSE;
1854 if (mode == S_IXUSR) {
1863 if (statbufp->st_mode & mode)
1867 if (statbufp->st_mode & mode >> 3)
1870 else if (statbufp->st_mode & mode >> 6)