• Home
  • Raw
  • Download

Lines Matching refs:rsrc

131 	if (psf->rsrc.filedes > 0)  in psf_open_rsrc()
135 …count = snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s/..namedfork/rsrc", psf->file.pa… in psf_open_rsrc()
137 if (count < sizeof (psf->rsrc.path.c)) in psf_open_rsrc()
138 { if ((psf->rsrc.filedes = psf_open_fd (&psf->rsrc)) >= 0) in psf_open_rsrc()
139 { psf->rsrclength = psf_get_filelen_fd (psf->rsrc.filedes) ; in psf_open_rsrc()
140 if (psf->rsrclength > 0 || (psf->rsrc.mode & SFM_WRITE)) in psf_open_rsrc()
142 psf_close_fd (psf->rsrc.filedes) ; in psf_open_rsrc()
143 psf->rsrc.filedes = -1 ; in psf_open_rsrc()
146 if (psf->rsrc.filedes == - SFE_BAD_OPEN_MODE) in psf_open_rsrc()
156 …count = snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s._%s", psf->file.dir.c, psf->fil… in psf_open_rsrc()
158 if (count < sizeof (psf->rsrc.path.c) && (psf->rsrc.filedes = psf_open_fd (&psf->rsrc)) >= 0) in psf_open_rsrc()
159 { psf->rsrclength = psf_get_filelen_fd (psf->rsrc.filedes) ; in psf_open_rsrc()
167 …count = snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s.AppleDouble/%s", psf->file.dir.… in psf_open_rsrc()
169 if (count < sizeof (psf->rsrc.path.c)) in psf_open_rsrc()
170 { if ((psf->rsrc.filedes = psf_open_fd (&psf->rsrc)) >= 0) in psf_open_rsrc()
171 { psf->rsrclength = psf_get_filelen_fd (psf->rsrc.filedes) ; in psf_open_rsrc()
176 if (psf->rsrc.filedes == -1) in psf_open_rsrc()
183 psf->rsrc.filedes = -1 ; in psf_open_rsrc()
235 { psf_close_fd (psf->rsrc.filedes) ; in psf_close_rsrc()
236 psf->rsrc.filedes = -1 ; in psf_close_rsrc()
519 psf->rsrc.filedes = -1 ; in psf_init_files()
527 { if (psf->file.filedes != psf->rsrc.filedes) in psf_use_rsrc()
529 psf->file.filedes = psf->rsrc.filedes ; in psf_use_rsrc()
532 else if (psf->file.filedes == psf->rsrc.filedes) in psf_use_rsrc()
652 if (psf->rsrc.handle != NULL) in psf_open_rsrc()
656 snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s/rsrc", psf->file.path.c) ; in psf_open_rsrc()
658 if ((psf->rsrc.handle = psf_open_handle (&psf->rsrc)) != NULL) in psf_open_rsrc()
659 { psf->rsrclength = psf_get_filelen_handle (psf->rsrc.handle) ; in psf_open_rsrc()
667 …snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s._%s", psf->file.dir.c, psf->file.name.c… in psf_open_rsrc()
669 if ((psf->rsrc.handle = psf_open_handle (&psf->rsrc)) != NULL) in psf_open_rsrc()
670 { psf->rsrclength = psf_get_filelen_handle (psf->rsrc.handle) ; in psf_open_rsrc()
678 …snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s.AppleDouble/%s", psf->file.dir.c, psf->… in psf_open_rsrc()
680 if ((psf->rsrc.handle = psf_open_handle (&psf->rsrc)) != NULL) in psf_open_rsrc()
681 { psf->rsrclength = psf_get_filelen_handle (psf->rsrc.handle) ; in psf_open_rsrc()
686 if (psf->rsrc.handle == NULL) in psf_open_rsrc()
689 psf->rsrc.handle = NULL ; in psf_open_rsrc()
742 psf->rsrc.handle = NULL ; in psf_init_files()
750 { if (psf->file.handle != psf->rsrc.handle) in psf_use_rsrc()
752 psf->file.handle = psf->rsrc.handle ; in psf_use_rsrc()
755 else if (psf->file.handle == psf->rsrc.handle) in psf_use_rsrc()
862 { psf_close_handle (psf->rsrc.handle) ; in psf_close_rsrc()
863 psf->rsrc.handle = NULL ; in psf_close_rsrc()