Lines Matching defs:fp
83 #define cantwrite(fp) \
84 ((((fp)->f_flags & SMWR) == 0 || (fp)->f_bf.smb_base == NULL) && \
85 sm_wsetup(fp))
92 #define HASUB(fp) ((fp)->f_ub.smb_base != NULL)
93 #define FREEUB(fp) \
95 if ((fp)->f_ub.smb_base != (fp)->f_ubuf) \
96 sm_free((char *)(fp)->f_ub.smb_base); \
97 (fp)->f_ub.smb_base = NULL; \
104 #define sm_io_flockfile(fp) ((void) 0)
105 #define sm_io_funlockfile(fp) ((void) 0)
116 ** This takes a 'fp' (a file type pointer) and obtains the "raw"
132 ** fp -- the file pointer the timeout is for
133 ** fd -- to become the file descriptor value from 'fp'
147 # define SM_CONVERT_TIME(fp, fd, val, time) { \
148 if (((fd) = sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL)) == -1) \
150 /* can't get an fd, likely internal 'fake' fp */ \
154 (val) = (fp)->f_timeout; \
167 if ((fp)->f_timeoutstate == SM_TIME_NONBLOCK && (fd) != -1) \
177 (fp)->f_timeoutstate = SM_TIME_BLOCK; \
178 if ((fp)->f_modefp != NULL) \
179 (fp)->f_modefp->f_timeoutstate = SM_TIME_BLOCK; \
183 if ((fp)->f_timeoutstate == SM_TIME_BLOCK && (fd) != -1) \
193 (fp)->f_timeoutstate = SM_TIME_NONBLOCK; \
194 if ((fp)->f_modefp != NULL) \
195 (fp)->f_modefp->f_timeoutstate = SM_TIME_NONBLOCK; \
226 #define SM_IO_WR_TIMEOUT(fp, fd, to) { \
233 (to) = (fp)->f_timeout; \