PATH: //proc/self/root/usr/include
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 FlexLexer.h
↓
X
📁 GL/
X
📁 X11/
X
📄 a.out.h
↓
X
📄 aio.h
↓
X
📄 aliases.h
↓
X
📄 alloca.h
↓
X
📄 ar.h
↓
X
📄 argp.h
↓
X
📄 argz.h
↓
X
📁 arpa/
X
📁 asm/
X
📁 asm-generic/
X
📄 assert.h
↓
X
📄 autosprintf.h
↓
X
📁 bind9/
X
📁 bits/
X
📁 blkid/
X
📁 brotli/
X
📁 bsock/
X
📄 byteswap.h
↓
X
📄 bzlib.h
↓
X
📁 c++/
X
📄 com_err.h
↓
X
📄 complex.h
↓
X
📄 cpio.h
↓
X
📄 cpuidle.h
↓
X
📄 crypt.h
↓
X
📄 ctype.h
↓
X
📄 curses.h
↓
X
📄 cursesapp.h
↓
X
📄 cursesf.h
↓
X
📄 cursesm.h
↓
X
📄 cursesp.h
↓
X
📄 cursesw.h
↓
X
📄 cursslk.h
↓
X
📄 dbm.h
↓
X
📄 dirent.h
↓
X
📄 dlfcn.h
↓
X
📁 drm/
X
📁 e2p/
X
📄 elf.h
↓
X
📄 endian.h
↓
X
📄 entities.h
↓
X
📄 envz.h
↓
X
📄 err.h
↓
X
📄 errno.h
↓
X
📄 error.h
↓
X
📁 et/
X
📄 eti.h
↓
X
📄 etip.h
↓
X
📄 evdns.h
↓
X
📄 event.h
↓
X
📁 event2/
X
📄 evhttp.h
↓
X
📄 evrpc.h
↓
X
📄 evutil.h
↓
X
📄 execinfo.h
↓
X
📄 expat.h
↓
X
📄 expat_config.h
↓
X
📄 expat_external.h
↓
X
📁 ext2fs/
X
📄 fcntl.h
↓
X
📄 features-time64.h
↓
X
📄 features.h
↓
X
📄 fenv.h
↓
X
📄 ffi-x86_64.h
↓
X
📄 ffi.h
↓
X
📄 ffitarget-x86_64.h
↓
X
📄 ffitarget.h
↓
X
📁 finclude/
X
📄 fmtmsg.h
↓
X
📄 fnmatch.h
↓
X
📁 fontconfig/
X
📄 form.h
↓
X
📄 fpu_control.h
↓
X
📁 freetype2/
X
📄 fstab.h
↓
X
📁 fstrm/
X
📄 fstrm.h
↓
X
📄 fts.h
↓
X
📄 ftw.h
↓
X
📁 fwctl/
X
📄 gconv.h
↓
X
📄 gd.h
↓
X
📄 gd_color_map.h
↓
X
📄 gd_errors.h
↓
X
📄 gd_io.h
↓
X
📁 gdbm/
X
📄 gdbm.h
↓
X
📄 gdcache.h
↓
X
📄 gdfontg.h
↓
X
📄 gdfontl.h
↓
X
📄 gdfontmb.h
↓
X
📄 gdfonts.h
↓
X
📄 gdfontt.h
↓
X
📄 gdfx.h
↓
X
📄 gdpp.h
↓
X
📄 getopt.h
↓
X
📄 gettext-po.h
↓
X
📁 gio-unix-2.0/
X
📁 glib-2.0/
X
📄 glob.h
↓
X
📁 gnu/
X
📄 gnu-versions.h
↓
X
📄 gnumake.h
↓
X
📁 google/
X
📄 gpg-error.h
↓
X
📄 gpgrt.h
↓
X
📁 graphite2/
X
📄 grp.h
↓
X
📄 gshadow.h
↓
X
📁 gssapi/
X
📄 gssapi.h
↓
X
📁 gssrpc/
X
📁 harfbuzz/
X
📄 iconv.h
↓
X
📄 idn-free.h
↓
X
📄 idn-int.h
↓
X
📄 idna.h
↓
X
📄 ieee754.h
↓
X
📄 ifaddrs.h
↓
X
📄 inttypes.h
↓
X
📄 jconfig-64.h
↓
X
📄 jconfig.h
↓
X
📄 jerror.h
↓
X
📄 jmorecfg.h
↓
X
📄 jpegint.h
↓
X
📄 jpeglib.h
↓
X
📁 json-c/
X
📁 kadm5/
X
📄 kdb.h
↓
X
📄 keyutils.h
↓
X
📄 krad.h
↓
X
📁 krb5/
X
📄 krb5.h
↓
X
📄 langinfo.h
↓
X
📄 lastlog.h
↓
X
📄 libaio.h
↓
X
📁 libexslt/
X
📄 libgen.h
↓
X
📄 libintl.h
↓
X
📄 liblsapi-sha1.h
↓
X
📁 libltdl/
X
📁 libmount/
X
📁 libpng16/
X
📁 libpq/
X
📄 libpq-events.h
↓
X
📄 libpq-fe.h
↓
X
📁 libxml2/
X
📁 libxslt/
X
📄 limits.h
↓
X
📄 link.h
↓
X
📁 linux/
X
📄 lmdb.h
↓
X
📄 locale.h
↓
X
📄 lsapidef.h
↓
X
📄 lscapi.h
↓
X
📄 lscapi_config.h
↓
X
📄 ltdl.h
↓
X
📁 lve/
X
📁 lzma/
X
📄 lzma.h
↓
X
📄 malloc.h
↓
X
📄 math.h
↓
X
📄 maxminddb.h
↓
X
📄 maxminddb_config-64.h
↓
X
📄 maxminddb_config.h
↓
X
📄 mcheck.h
↓
X
📄 memory.h
↓
X
📄 menu.h
↓
X
📁 misc/
X
📄 mntent.h
↓
X
📄 monetary.h
↓
X
📄 mqueue.h
↓
X
📁 mtd/
X
📁 mysql/
X
📄 nc_tparm.h
↓
X
📁 ncurses/
X
📄 ncurses.h
↓
X
📄 ncurses_dll.h
↓
X
📁 ncursesw/
X
📄 ndbm.h
↓
X
📁 net/
X
📁 netash/
X
📁 netatalk/
X
📁 netax25/
X
📄 netdb.h
↓
X
📁 neteconet/
X
📁 netinet/
X
📁 netipx/
X
📁 netiucv/
X
📁 netpacket/
X
📁 netrom/
X
📁 netrose/
X
📁 nfs/
X
📄 nl_types.h
↓
X
📄 nss.h
↓
X
📄 obstack.h
↓
X
📁 openssl/
X
📄 panel.h
↓
X
📄 paths.h
↓
X
📁 pcp/
X
📄 pcre.h
↓
X
📄 pcre2.h
↓
X
📄 pcre2posix.h
↓
X
📄 pcre_scanner.h
↓
X
📄 pcre_stringpiece.h
↓
X
📄 pcrecpp.h
↓
X
📄 pcrecpparg.h
↓
X
📄 pcreposix.h
↓
X
📄 pg_config-x86_64.h
↓
X
📄 pg_config.h
↓
X
📄 pg_config_ext-x86_64.h
↓
X
📄 pg_config_ext.h
↓
X
📄 pg_config_manual.h
↓
X
📄 pg_config_os.h
↓
X
📁 pgsql/
X
📄 png.h
↓
X
📄 pngconf.h
↓
X
📄 pnglibconf.h
↓
X
📄 poll.h
↓
X
📄 postgres_ext.h
↓
X
📄 powercap.h
↓
X
📄 pr29.h
↓
X
📄 printf.h
↓
X
📄 proc_service.h
↓
X
📄 profile.h
↓
X
📁 proftpd/
X
📁 protobuf-c/
X
📁 protocols/
X
📄 pthread.h
↓
X
📄 pty.h
↓
X
📄 punycode.h
↓
X
📄 pwd.h
↓
X
📁 python3.9/
X
📁 rdma/
X
📄 re_comp.h
↓
X
📄 regex.h
↓
X
📄 regexp.h
↓
X
📄 resolv.h
↓
X
📁 rpc/
X
📄 sched.h
↓
X
📁 scsi/
X
📄 search.h
↓
X
📁 security/
X
📁 selinux/
X
📄 semaphore.h
↓
X
📁 sepol/
X
📄 setjmp.h
↓
X
📄 sgtty.h
↓
X
📄 shadow.h
↓
X
📄 signal.h
↓
X
📁 sound/
X
📄 spawn.h
↓
X
📄 stab.h
↓
X
📄 stdc-predef.h
↓
X
📄 stdint.h
↓
X
📄 stdio.h
↓
X
📄 stdio_ext.h
↓
X
📄 stdlib.h
↓
X
📄 string.h
↓
X
📄 stringprep.h
↓
X
📄 strings.h
↓
X
📁 sys/
X
📄 syscall.h
↓
X
📄 sysexits.h
↓
X
📄 syslog.h
↓
X
📁 sysprof-4/
X
📄 tar.h
↓
X
📄 term.h
↓
X
📄 term_entry.h
↓
X
📄 termcap.h
↓
X
📄 termio.h
↓
X
📄 termios.h
↓
X
📄 tgmath.h
↓
X
📄 thread_db.h
↓
X
📄 threads.h
↓
X
📄 tic.h
↓
X
📄 tiff.h
↓
X
📄 tiffconf-64.h
↓
X
📄 tiffconf.h
↓
X
📄 tiffio.h
↓
X
📄 tiffio.hxx
↓
X
📄 tiffvers.h
↓
X
📄 time.h
↓
X
📄 tld.h
↓
X
📄 ttyent.h
↓
X
📄 uchar.h
↓
X
📄 ucontext.h
↓
X
📄 ulimit.h
↓
X
📄 unctrl.h
↓
X
📁 unicode/
X
📄 unistd.h
↓
X
📄 utime.h
↓
X
📄 utmp.h
↓
X
📄 utmpx.h
↓
X
📄 values.h
↓
X
📄 verto-module.h
↓
X
📄 verto.h
↓
X
📁 video/
X
📄 wait.h
↓
X
📄 wchar.h
↓
X
📄 wctype.h
↓
X
📁 webp/
X
📄 wordexp.h
↓
X
📁 xcb/
X
📁 xen/
X
📄 zconf.h
↓
X
📄 zlib.h
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: libaio.h
/* /usr/include/libaio.h * * Copyright 2000,2001,2002 Red Hat, Inc. * * Written by Benjamin LaHaise <bcrl@redhat.com> * * libaio Linux async I/O interface * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __LIBAIO_H #define __LIBAIO_H #ifdef __cplusplus extern "C" { #endif #include <sys/types.h> #include <string.h> struct timespec; struct sockaddr; struct iovec; typedef struct io_context *io_context_t; typedef enum io_iocb_cmd { IO_CMD_PREAD = 0, IO_CMD_PWRITE = 1, IO_CMD_FSYNC = 2, IO_CMD_FDSYNC = 3, IO_CMD_POLL = 5, /* Never implemented in mainline, see io_prep_poll */ IO_CMD_NOOP = 6, IO_CMD_PREADV = 7, IO_CMD_PWRITEV = 8, } io_iocb_cmd_t; /* little endian, 32 bits */ #if defined(__i386__) || (defined(__arm__) && !defined(__ARMEB__)) || \ defined(__sh__) || defined(__bfin__) || defined(__MIPSEL__) || \ defined(__cris__) || (defined(__riscv) && __riscv_xlen == 32) || \ (defined(__GNUC__) && defined(__BYTE_ORDER__) && \ __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG__ == 4) #define PADDED(x, y) x; unsigned y #define PADDEDptr(x, y) x; unsigned y #define PADDEDul(x, y) unsigned long x; unsigned y /* little endian, 64 bits */ #elif defined(__ia64__) || defined(__x86_64__) || defined(__alpha__) || \ (defined(__aarch64__) && defined(__AARCH64EL__)) || \ (defined(__riscv) && __riscv_xlen == 64) || \ (defined(__GNUC__) && defined(__BYTE_ORDER__) && \ __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG__ == 8) #define PADDED(x, y) x, y #define PADDEDptr(x, y) x #define PADDEDul(x, y) unsigned long x /* big endian, 64 bits */ #elif defined(__powerpc64__) || defined(__s390x__) || \ (defined(__sparc__) && defined(__arch64__)) || \ (defined(__aarch64__) && defined(__AARCH64EB__)) || \ (defined(__GNUC__) && defined(__BYTE_ORDER__) && \ __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __SIZEOF_LONG__ == 8) #define PADDED(x, y) unsigned y; x #define PADDEDptr(x,y) x #define PADDEDul(x, y) unsigned long x /* big endian, 32 bits */ #elif defined(__PPC__) || defined(__s390__) || \ (defined(__arm__) && defined(__ARMEB__)) || \ defined(__sparc__) || defined(__MIPSEB__) || defined(__m68k__) || \ defined(__hppa__) || defined(__frv__) || defined(__avr32__) || \ (defined(__GNUC__) && defined(__BYTE_ORDER__) && \ __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __SIZEOF_LONG__ == 4) #define PADDED(x, y) unsigned y; x #define PADDEDptr(x, y) unsigned y; x #define PADDEDul(x, y) unsigned y; unsigned long x #else #error endian? #endif struct io_iocb_poll { PADDED(int events, __pad1); }; /* result code is the set of result flags or -'ve errno */ struct io_iocb_sockaddr { struct sockaddr *addr; int len; }; /* result code is the length of the sockaddr, or -'ve errno */ struct io_iocb_common { PADDEDptr(void *buf, __pad1); PADDEDul(nbytes, __pad2); long long offset; long long __pad3; unsigned flags; unsigned resfd; }; /* result code is the amount read or -'ve errno */ struct io_iocb_vector { const struct iovec *vec; int nr; long long offset; }; /* result code is the amount read or -'ve errno */ struct iocb { PADDEDptr(void *data, __pad1); /* Return in the io completion event */ /* key: For use in identifying io requests */ /* aio_rw_flags: RWF_* flags (such as RWF_NOWAIT) */ PADDED(unsigned key, aio_rw_flags); short aio_lio_opcode; short aio_reqprio; int aio_fildes; union { struct io_iocb_common c; struct io_iocb_vector v; struct io_iocb_poll poll; struct io_iocb_sockaddr saddr; } u; }; struct io_event { PADDEDptr(void *data, __pad1); PADDEDptr(struct iocb *obj, __pad2); PADDEDul(res, __pad3); PADDEDul(res2, __pad4); }; #undef PADDED #undef PADDEDptr #undef PADDEDul typedef void (*io_callback_t)(io_context_t ctx, struct iocb *iocb, long res, long res2); /* library wrappers */ extern int io_queue_init(int maxevents, io_context_t *ctxp); /*extern int io_queue_grow(io_context_t ctx, int new_maxevents);*/ extern int io_queue_release(io_context_t ctx); /*extern int io_queue_wait(io_context_t ctx, struct timespec *timeout);*/ extern int io_queue_run(io_context_t ctx); /* Actual syscalls */ extern int io_setup(int maxevents, io_context_t *ctxp); extern int io_destroy(io_context_t ctx); extern int io_submit(io_context_t ctx, long nr, struct iocb *ios[]); extern int io_cancel(io_context_t ctx, struct iocb *iocb, struct io_event *evt); extern int io_getevents(io_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout); static inline void io_set_callback(struct iocb *iocb, io_callback_t cb) { iocb->data = (void *)cb; } static inline void io_prep_pread(struct iocb *iocb, int fd, void *buf, size_t count, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PREAD; iocb->aio_reqprio = 0; iocb->u.c.buf = buf; iocb->u.c.nbytes = count; iocb->u.c.offset = offset; } static inline void io_prep_pwrite(struct iocb *iocb, int fd, void *buf, size_t count, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PWRITE; iocb->aio_reqprio = 0; iocb->u.c.buf = buf; iocb->u.c.nbytes = count; iocb->u.c.offset = offset; } static inline void io_prep_preadv(struct iocb *iocb, int fd, const struct iovec *iov, int iovcnt, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PREADV; iocb->aio_reqprio = 0; iocb->u.c.buf = (void *)iov; iocb->u.c.nbytes = iovcnt; iocb->u.c.offset = offset; } static inline void io_prep_pwritev(struct iocb *iocb, int fd, const struct iovec *iov, int iovcnt, long long offset) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PWRITEV; iocb->aio_reqprio = 0; iocb->u.c.buf = (void *)iov; iocb->u.c.nbytes = iovcnt; iocb->u.c.offset = offset; } static inline void io_prep_preadv2(struct iocb *iocb, int fd, const struct iovec *iov, int iovcnt, long long offset, int flags) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PREADV; iocb->aio_reqprio = 0; iocb->aio_rw_flags = flags; iocb->u.c.buf = (void *)iov; iocb->u.c.nbytes = iovcnt; iocb->u.c.offset = offset; } static inline void io_prep_pwritev2(struct iocb *iocb, int fd, const struct iovec *iov, int iovcnt, long long offset, int flags) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_PWRITEV; iocb->aio_reqprio = 0; iocb->aio_rw_flags = flags; iocb->u.c.buf = (void *)iov; iocb->u.c.nbytes = iovcnt; iocb->u.c.offset = offset; } /* Jeff Moyer says this was implemented in Red Hat AS2.1 and RHEL3. * AFAICT, it was never in mainline, and should not be used. --RR */ static inline void io_prep_poll(struct iocb *iocb, int fd, int events) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_POLL; iocb->aio_reqprio = 0; iocb->u.poll.events = events; } static inline int io_poll(io_context_t ctx, struct iocb *iocb, io_callback_t cb, int fd, int events) { io_prep_poll(iocb, fd, events); io_set_callback(iocb, cb); return io_submit(ctx, 1, &iocb); } static inline void io_prep_fsync(struct iocb *iocb, int fd) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_FSYNC; iocb->aio_reqprio = 0; } static inline int io_fsync(io_context_t ctx, struct iocb *iocb, io_callback_t cb, int fd) { io_prep_fsync(iocb, fd); io_set_callback(iocb, cb); return io_submit(ctx, 1, &iocb); } static inline void io_prep_fdsync(struct iocb *iocb, int fd) { memset(iocb, 0, sizeof(*iocb)); iocb->aio_fildes = fd; iocb->aio_lio_opcode = IO_CMD_FDSYNC; iocb->aio_reqprio = 0; } static inline int io_fdsync(io_context_t ctx, struct iocb *iocb, io_callback_t cb, int fd) { io_prep_fdsync(iocb, fd); io_set_callback(iocb, cb); return io_submit(ctx, 1, &iocb); } static inline void io_set_eventfd(struct iocb *iocb, int eventfd) { iocb->u.c.flags |= (1 << 0) /* IOCB_FLAG_RESFD */; iocb->u.c.resfd = eventfd; } #ifdef __cplusplus } #endif #endif /* __LIBAIO_H */
SIMPAN PERUBAHAN