home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ixemul-45.0-src.tgz / tar.out / contrib / ixemul / library / unp.h < prev    next >
C/C++ Source or Header  |  1996-10-01  |  1KB  |  30 lines

  1. #ifndef _UNP_H_
  2. #define _UNP_H_
  3.  
  4. int unp_read   (struct file *fp, char *buf, int len);
  5. int unp_write  (struct file *fp, const char *buf, int len);
  6. int unp_ioctl  (struct file *fp, int cmd, int inout, int arglen, caddr_t data);
  7. int unp_select (struct file *fp, int select_cmd, int io_mode, fd_set *ignored, u_long *also_ignored);
  8. int unp_close  (struct file *fp);
  9. int unp_socket (int domain, int type, int protocol, struct unix_socket *sock);
  10. int unp_bind   (int s, const struct sockaddr *name, int namelen);
  11. int unp_listen (int s, int backlog);
  12. int unp_accept (int s, struct sockaddr *name, int *namelen);
  13. int unp_connect(int s, const struct sockaddr *name, int namelen);
  14. int unp_send   (int s, const void *buf, int len, int flags);
  15. int unp_recv   (int s, void *buf, int len, int flags);
  16. int unp_shutdown(int s, int how);
  17. int unp_setsockopt(int s, int level, int name, const void *val, int valsize);
  18. int unp_getsockopt(int s, int level, int name, void *val, int *valsize);
  19. int unp_getsockname(int fdes, struct sockaddr *asa, int *alen);
  20. int unp_getpeername(int fdes, struct sockaddr *asa, int *alen);
  21. struct ix_unix_name *find_unix_name(const char *path);
  22. struct sock_stream *init_stream(void);
  23. struct sock_stream *find_stream(struct file *f, int read_stream);
  24. struct sock_stream *get_stream(struct file *f, int read_stream);
  25. void release_stream(struct sock_stream *ss);
  26. int stream_read(struct file *f, char *buf, int len);
  27. int stream_write(struct file *f, const char *buf, int len);
  28.  
  29. #endif
  30.