ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.xs
(Generate patch)

Comparing IO-AIO/AIO.xs (file contents):
Revision 1.180 by root, Fri Feb 11 00:05:17 2011 UTC vs.
Revision 1.182 by root, Thu May 19 22:57:04 2011 UTC

121#define EIO_NO_WRAPPERS 1 121#define EIO_NO_WRAPPERS 1
122 122
123#include "libeio/config.h" 123#include "libeio/config.h"
124#include "libeio/eio.h" 124#include "libeio/eio.h"
125 125
126/* Linux/others */
127#ifndef O_ASYNC
128# define O_ASYNC 0
129#endif
130#ifndef O_DIRECT
131# define O_DIRECT 0
132#endif
133#ifndef O_NOATIME
134# define O_NOATIME 0
135#endif
136
137/* POSIX */
138#ifndef O_CLOEXEC
139# define O_CLOEXEC 0
140#endif
141#ifndef O_NOFOLLOW
142# define O_NOFOLLOW 0
143#endif
144#ifndef O_NOCTTY
145# define O_NOCTTY 0
146#endif
147#ifndef O_NONBLOCK
148# define O_NONBLOCK 0
149#endif
150#ifndef O_EXEC
151# define O_EXEC 0
152#endif
153#ifndef O_SEARCH
154# define O_SEARCH 0
155#endif
156#ifndef O_DIRECTORY
157# define O_DIRECTORY 0
158#endif
159#ifndef O_DSYNC
160# define O_DSYNC 0
161#endif
162#ifndef O_RSYNC
163# define O_RSYNC 0
164#endif
165#ifndef O_SYNC
166# define O_SYNC 0
167#endif
168#ifndef O_TTY_INIT
169# define O_TTY_INIT 0
170#endif
171
126#ifndef POSIX_FADV_NORMAL 172#ifndef POSIX_FADV_NORMAL
127# define POSIX_FADV_NORMAL 0 173# define POSIX_FADV_NORMAL 0
128#endif 174#endif
129#ifndef POSIX_FADV_SEQUENTIAL 175#ifndef POSIX_FADV_SEQUENTIAL
130# define POSIX_FADV_SEQUENTIAL 0 176# define POSIX_FADV_SEQUENTIAL 0
765 const_iv (O_CREAT) 811 const_iv (O_CREAT)
766 const_iv (O_TRUNC) 812 const_iv (O_TRUNC)
767 const_iv (O_EXCL) 813 const_iv (O_EXCL)
768 const_iv (O_APPEND) 814 const_iv (O_APPEND)
769 815
816 const_iv (O_ASYNC)
817 const_iv (O_DIRECT)
818 const_iv (O_NOATIME)
819
820 const_iv (O_CLOEXEC)
821 const_iv (O_NOCTTY)
822 const_iv (O_NOFOLLOW)
823 const_iv (O_NONBLOCK)
824 const_iv (O_EXEC)
825 const_iv (O_SEARCH)
826 const_iv (O_DIRECTORY)
827 const_iv (O_DSYNC)
828 const_iv (O_RSYNC)
829 const_iv (O_SYNC)
830 const_iv (O_TTY_INIT)
831
770 const_iv (S_IFIFO) 832 const_iv (S_IFIFO)
771 const_iv (S_IFCHR) 833 const_iv (S_IFCHR)
772 const_iv (S_IFBLK) 834 const_iv (S_IFBLK)
773 const_iv (S_IFLNK) 835 const_iv (S_IFLNK)
774 const_iv (S_IFREG) 836 const_iv (S_IFREG)
866 /* atfork child called in fifo order, so before eio's handler */ 928 /* atfork child called in fifo order, so before eio's handler */
867 X_THREAD_ATFORK (0, 0, atfork_child); 929 X_THREAD_ATFORK (0, 0, atfork_child);
868} 930}
869 931
870void 932void
871max_poll_reqs (int nreqs) 933max_poll_reqs (unsigned int nreqs)
872 PROTOTYPE: $ 934 PROTOTYPE: $
873 CODE: 935 CODE:
874 eio_set_max_poll_reqs (nreqs); 936 eio_set_max_poll_reqs (nreqs);
875 937
876void 938void
878 PROTOTYPE: $ 940 PROTOTYPE: $
879 CODE: 941 CODE:
880 eio_set_max_poll_time (nseconds); 942 eio_set_max_poll_time (nseconds);
881 943
882void 944void
883min_parallel (int nthreads) 945min_parallel (unsigned int nthreads)
884 PROTOTYPE: $ 946 PROTOTYPE: $
885 CODE: 947 CODE:
886 eio_set_min_parallel (nthreads); 948 eio_set_min_parallel (nthreads);
887 949
888void 950void
889max_parallel (int nthreads) 951max_parallel (unsigned int nthreads)
890 PROTOTYPE: $ 952 PROTOTYPE: $
891 CODE: 953 CODE:
892 eio_set_max_parallel (nthreads); 954 eio_set_max_parallel (nthreads);
893 955
894void 956void
895max_idle (int nthreads) 957max_idle (unsigned int nthreads)
896 PROTOTYPE: $ 958 PROTOTYPE: $
897 CODE: 959 CODE:
898 eio_set_max_idle (nthreads); 960 eio_set_max_idle (nthreads);
899 961
900void 962void
963idle_timeout (unsigned int seconds)
964 PROTOTYPE: $
965 CODE:
966 eio_set_idle_timeout (seconds);
967
968void
901max_outstanding (int maxreqs) 969max_outstanding (unsigned int maxreqs)
902 PROTOTYPE: $ 970 PROTOTYPE: $
903 CODE: 971 CODE:
904 max_outstanding = maxreqs; 972 max_outstanding = maxreqs;
905 973
906void 974void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines