1 /* Beginning of modification history */
2 /* Written 02-01-02 by Nick Ing-Simmons (nick@ing-simmons.net) */
3 /* Modified 02-03-27 by Paul Green (Paul.Green@stratus.com) to
4 add socketpair() dummy. */
5 /* End of modification history */
12 /* VOS doesn't supply a truncate function, so we build one up
13 from the available POSIX functions. */
16 truncate(const char *path, off_t len)
18 int fd = open(path,O_WRONLY);
21 code = ftruncate(fd,len);
27 /* VOS doesn't implement AF_UNIX (AF_LOCAL) style sockets, and
28 the perl emulation of them hangs on VOS (due to stcp-1257),
29 so we supply this version that always fails. */
32 socketpair (int family, int type, int protocol, int fd[2]) {