Lines Matching refs:ux
207 * ux!=0 set to 1 if path is unix executable
208 * ux!=0 also retains errno for -1 return
212 magic(const char* path, int* ux)
229 if (ux)
234 r = (m = sysread(fd, buf, n)) >= 2 && (buf[1] == 0x5a && (buf[0] == 0x4c || buf[0] == 0x4d) || ux && buf[0] == '#' && buf[1] == '!' && (*ux = 1) && !(ux = 0)) ? 0 : -1;
236 if (ux)
241 *ux = (buf[n] | (buf[n+1]<<8)) == 3;
243 *ux = 0;
246 else if (!ux)
256 *ux = 0;
444 int ux;
499 if (magic(path, &ux))
505 ux = 1;
577 if (!ux && (d = getenv(convertvars[0])))