Lines Matching refs:c_int

8 pub type c_int = i32;
41 pub type nl_item = c_int;
81 pub tm_sec: c_int,
82 pub tm_min: c_int,
83 pub tm_hour: c_int,
84 pub tm_mday: c_int,
85 pub tm_mon: c_int,
86 pub tm_year: c_int,
87 pub tm_wday: c_int,
88 pub tm_yday: c_int,
89 pub tm_isdst: c_int,
90 pub __tm_gmtoff: c_int,
92 pub __tm_nsec: c_int,
150 pub fd: c_int,
193 pub const EXIT_SUCCESS: c_int = 0;
194 pub const EXIT_FAILURE: c_int = 1;
195 pub const STDIN_FILENO: c_int = 0;
196 pub const STDOUT_FILENO: c_int = 1;
197 pub const STDERR_FILENO: c_int = 2;
198 pub const SEEK_SET: c_int = 0;
199 pub const SEEK_CUR: c_int = 1;
200 pub const SEEK_END: c_int = 2;
201 pub const _IOFBF: c_int = 0;
202 pub const _IONBF: c_int = 2;
203 pub const _IOLBF: c_int = 1;
204 pub const F_GETFD: c_int = 1;
205 pub const F_SETFD: c_int = 2;
206 pub const F_GETFL: c_int = 3;
207 pub const F_SETFL: c_int = 4;
208 pub const FD_CLOEXEC: c_int = 1;
210 pub const O_APPEND: c_int = 0x0001;
211 pub const O_DSYNC: c_int = 0x0002;
212 pub const O_NONBLOCK: c_int = 0x0004;
213 pub const O_RSYNC: c_int = 0x0008;
214 pub const O_SYNC: c_int = 0x0010;
215 pub const O_CREAT: c_int = 0x0001 << 12;
216 pub const O_DIRECTORY: c_int = 0x0002 << 12;
217 pub const O_EXCL: c_int = 0x0004 << 12;
218 pub const O_TRUNC: c_int = 0x0008 << 12;
219 pub const O_NOFOLLOW: c_int = 0x01000000;
220 pub const O_EXEC: c_int = 0x02000000;
221 pub const O_RDONLY: c_int = 0x04000000;
222 pub const O_SEARCH: c_int = 0x08000000;
223 pub const O_WRONLY: c_int = 0x10000000;
224 pub const O_CLOEXEC: c_int = 0x0;
225 pub const O_RDWR: c_int = O_WRONLY | O_RDONLY;
226 pub const O_ACCMODE: c_int = O_EXEC | O_RDWR | O_SEARCH;
227 pub const O_NOCTTY: c_int = 0x0;
228 pub const POSIX_FADV_DONTNEED: c_int = 4;
229 pub const POSIX_FADV_NOREUSE: c_int = 5;
230 pub const POSIX_FADV_NORMAL: c_int = 0;
231 pub const POSIX_FADV_RANDOM: c_int = 2;
232 pub const POSIX_FADV_SEQUENTIAL: c_int = 1;
233 pub const POSIX_FADV_WILLNEED: c_int = 3;
234 pub const AT_FDCWD: ::c_int = -2;
235 pub const AT_EACCESS: c_int = 0x0;
236 pub const AT_SYMLINK_NOFOLLOW: c_int = 0x1;
237 pub const AT_SYMLINK_FOLLOW: c_int = 0x2;
238 pub const AT_REMOVEDIR: c_int = 0x4;
267 pub const FIONREAD: c_int = 1;
268 pub const FIONBIO: c_int = 2;
269 pub const F_OK: ::c_int = 0;
270 pub const R_OK: ::c_int = 4;
271 pub const W_OK: ::c_int = 2;
272 pub const X_OK: ::c_int = 1;
281 pub const E2BIG: c_int = 1;
282 pub const EACCES: c_int = 2;
283 pub const EADDRINUSE: c_int = 3;
284 pub const EADDRNOTAVAIL: c_int = 4;
285 pub const EAFNOSUPPORT: c_int = 5;
286 pub const EAGAIN: c_int = 6;
287 pub const EALREADY: c_int = 7;
288 pub const EBADF: c_int = 8;
289 pub const EBADMSG: c_int = 9;
290 pub const EBUSY: c_int = 10;
291 pub const ECANCELED: c_int = 11;
292 pub const ECHILD: c_int = 12;
293 pub const ECONNABORTED: c_int = 13;
294 pub const ECONNREFUSED: c_int = 14;
295 pub const ECONNRESET: c_int = 15;
296 pub const EDEADLK: c_int = 16;
297 pub const EDESTADDRREQ: c_int = 17;
298 pub const EDOM: c_int = 18;
299 pub const EDQUOT: c_int = 19;
300 pub const EEXIST: c_int = 20;
301 pub const EFAULT: c_int = 21;
302 pub const EFBIG: c_int = 22;
303 pub const EHOSTUNREACH: c_int = 23;
304 pub const EIDRM: c_int = 24;
305 pub const EILSEQ: c_int = 25;
306 pub const EINPROGRESS: c_int = 26;
307 pub const EINTR: c_int = 27;
308 pub const EINVAL: c_int = 28;
309 pub const EIO: c_int = 29;
310 pub const EISCONN: c_int = 30;
311 pub const EISDIR: c_int = 31;
312 pub const ELOOP: c_int = 32;
313 pub const EMFILE: c_int = 33;
314 pub const EMLINK: c_int = 34;
315 pub const EMSGSIZE: c_int = 35;
316 pub const EMULTIHOP: c_int = 36;
317 pub const ENAMETOOLONG: c_int = 37;
318 pub const ENETDOWN: c_int = 38;
319 pub const ENETRESET: c_int = 39;
320 pub const ENETUNREACH: c_int = 40;
321 pub const ENFILE: c_int = 41;
322 pub const ENOBUFS: c_int = 42;
323 pub const ENODEV: c_int = 43;
324 pub const ENOENT: c_int = 44;
325 pub const ENOEXEC: c_int = 45;
326 pub const ENOLCK: c_int = 46;
327 pub const ENOLINK: c_int = 47;
328 pub const ENOMEM: c_int = 48;
329 pub const ENOMSG: c_int = 49;
330 pub const ENOPROTOOPT: c_int = 50;
331 pub const ENOSPC: c_int = 51;
332 pub const ENOSYS: c_int = 52;
333 pub const ENOTCONN: c_int = 53;
334 pub const ENOTDIR: c_int = 54;
335 pub const ENOTEMPTY: c_int = 55;
336 pub const ENOTRECOVERABLE: c_int = 56;
337 pub const ENOTSOCK: c_int = 57;
338 pub const ENOTSUP: c_int = 58;
339 pub const ENOTTY: c_int = 59;
340 pub const ENXIO: c_int = 60;
341 pub const EOVERFLOW: c_int = 61;
342 pub const EOWNERDEAD: c_int = 62;
343 pub const EPERM: c_int = 63;
344 pub const EPIPE: c_int = 64;
345 pub const EPROTO: c_int = 65;
346 pub const EPROTONOSUPPORT: c_int = 66;
347 pub const EPROTOTYPE: c_int = 67;
348 pub const ERANGE: c_int = 68;
349 pub const EROFS: c_int = 69;
350 pub const ESPIPE: c_int = 70;
351 pub const ESRCH: c_int = 71;
352 pub const ESTALE: c_int = 72;
353 pub const ETIMEDOUT: c_int = 73;
354 pub const ETXTBSY: c_int = 74;
355 pub const EXDEV: c_int = 75;
356 pub const ENOTCAPABLE: c_int = 76;
357 pub const EOPNOTSUPP: c_int = ENOTSUP;
358 pub const EWOULDBLOCK: c_int = EAGAIN;
360 pub const _SC_PAGESIZE: c_int = 30;
361 pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
362 pub const _SC_IOV_MAX: c_int = 60;
363 pub const _SC_SYMLOOP_MAX: c_int = 173;
451 pub fn _Exit(code: c_int) -> !;
452 pub fn _exit(code: c_int) -> !;
456 pub fn exit(code: c_int) -> !;
462 pub fn rand() -> c_int;
463 pub fn read(fd: c_int, ptr: *mut c_void, size: size_t) -> ssize_t;
465 pub fn setenv(k: *const c_char, v: *const c_char, a: c_int) -> c_int;
466 pub fn unsetenv(k: *const c_char) -> c_int;
467 pub fn clearenv() -> ::c_int;
468 pub fn write(fd: c_int, ptr: *const c_void, size: size_t) -> ssize_t;
472 pub fn fclose(f: *mut FILE) -> c_int;
473 pub fn remove(a: *const c_char) -> c_int;
474 pub fn rename(a: *const c_char, b: *const c_char) -> c_int;
475 pub fn feof(f: *mut FILE) -> c_int;
476 pub fn ferror(f: *mut FILE) -> c_int;
477 pub fn fflush(f: *mut FILE) -> c_int;
479 pub fn fseek(f: *mut FILE, b: c_long, c: c_int) -> c_int;
482 pub fn fgetpos(f: *mut FILE, pos: *mut fpos_t) -> c_int;
483 pub fn fsetpos(f: *mut FILE, pos: *const fpos_t) -> c_int;
486 pub fn fgetc(f: *mut FILE) -> c_int;
487 pub fn getc(f: *mut FILE) -> c_int;
488 pub fn getchar() -> c_int;
489 pub fn ungetc(a: c_int, f: *mut FILE) -> c_int;
490 pub fn fputc(a: c_int, f: *mut FILE) -> c_int;
491 pub fn putc(a: c_int, f: *mut FILE) -> c_int;
492 pub fn putchar(a: c_int) -> c_int;
493 pub fn fputs(a: *const c_char, f: *mut FILE) -> c_int;
494 pub fn puts(a: *const c_char) -> c_int;
497 pub fn atexit(a: extern "C" fn()) -> c_int;
498 pub fn at_quick_exit(a: extern "C" fn()) -> c_int;
499 pub fn quick_exit(a: c_int) -> !;
500 pub fn posix_memalign(a: *mut *mut c_void, b: size_t, c: size_t) -> c_int;
501 pub fn rand_r(a: *mut c_uint) -> c_int;
504 pub fn putenv(a: *mut c_char) -> c_int;
521 pub fn nanosleep(a: *const timespec, b: *mut timespec) -> c_int;
522 pub fn clock_getres(a: clockid_t, b: *mut timespec) -> c_int;
523 pub fn clock_gettime(a: clockid_t, b: *mut timespec) -> c_int;
524 pub fn clock_nanosleep(a: clockid_t, a2: c_int, b: *const timespec, c: *mut timespec) -> c_int;
526 pub fn isalnum(c: c_int) -> c_int;
527 pub fn isalpha(c: c_int) -> c_int;
528 pub fn iscntrl(c: c_int) -> c_int;
529 pub fn isdigit(c: c_int) -> c_int;
530 pub fn isgraph(c: c_int) -> c_int;
531 pub fn islower(c: c_int) -> c_int;
532 pub fn isprint(c: c_int) -> c_int;
533 pub fn ispunct(c: c_int) -> c_int;
534 pub fn isspace(c: c_int) -> c_int;
535 pub fn isupper(c: c_int) -> c_int;
536 pub fn isxdigit(c: c_int) -> c_int;
537 pub fn isblank(c: c_int) -> c_int;
538 pub fn tolower(c: c_int) -> c_int;
539 pub fn toupper(c: c_int) -> c_int;
540 pub fn setvbuf(stream: *mut FILE, buffer: *mut c_char, mode: c_int, size: size_t) -> c_int;
542 pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char;
544 pub fn atoi(s: *const c_char) -> c_int;
549 pub fn strtol(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_long;
550 pub fn strtoll(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_longlong;
551 pub fn strtoul(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulong;
552 pub fn strtoull(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulonglong;
558 pub fn strcmp(cs: *const c_char, ct: *const c_char) -> c_int;
559 pub fn strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int;
560 pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int;
561 pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char;
562 pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char;
569 pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
570 pub fn strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int;
573 pub fn strerror(n: c_int) -> *mut c_char;
577 pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
578 pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
581 pub fn memset(dest: *mut c_void, c: c_int, n: size_t) -> *mut c_void;
583 pub fn fprintf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int;
584 pub fn printf(format: *const ::c_char, ...) -> ::c_int;
585 pub fn snprintf(s: *mut ::c_char, n: ::size_t, format: *const ::c_char, ...) -> ::c_int;
586 pub fn sprintf(s: *mut ::c_char, format: *const ::c_char, ...) -> ::c_int;
587 pub fn fscanf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int;
588 pub fn scanf(format: *const ::c_char, ...) -> ::c_int;
589 pub fn sscanf(s: *const ::c_char, format: *const ::c_char, ...) -> ::c_int;
590 pub fn getchar_unlocked() -> ::c_int;
591 pub fn putchar_unlocked(c: ::c_int) -> ::c_int;
593 pub fn shutdown(socket: ::c_int, how: ::c_int) -> ::c_int;
594 pub fn fstat(fildes: ::c_int, buf: *mut stat) -> ::c_int;
595 pub fn mkdir(path: *const c_char, mode: mode_t) -> ::c_int;
596 pub fn stat(path: *const c_char, buf: *mut stat) -> ::c_int;
597 pub fn fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE;
598 pub fn fileno(stream: *mut ::FILE) -> ::c_int;
599 pub fn open(path: *const c_char, oflag: ::c_int, ...) -> ::c_int;
600 pub fn creat(path: *const c_char, mode: mode_t) -> ::c_int;
601 pub fn fcntl(fd: ::c_int, cmd: ::c_int, ...) -> ::c_int;
603 pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
605 pub fn closedir(dirp: *mut ::DIR) -> ::c_int;
607 pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
611 pub fn openat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int, ...) -> ::c_int;
613 dirfd: ::c_int,
616 flags: ::c_int,
617 ) -> ::c_int;
619 olddirfd: ::c_int,
621 newdirfd: ::c_int,
623 flags: ::c_int,
624 ) -> ::c_int;
625 pub fn mkdirat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int;
627 dirfd: ::c_int,
633 olddirfd: ::c_int,
635 newdirfd: ::c_int,
637 ) -> ::c_int;
640 newdirfd: ::c_int,
642 ) -> ::c_int;
643 pub fn unlinkat(dirfd: ::c_int, pathname: *const ::c_char, flags: ::c_int) -> ::c_int;
645 pub fn access(path: *const c_char, amode: ::c_int) -> ::c_int;
646 pub fn close(fd: ::c_int) -> ::c_int;
647 pub fn fpathconf(filedes: ::c_int, name: ::c_int) -> c_long;
648 pub fn getopt(argc: ::c_int, argv: *const *mut c_char, optstr: *const c_char) -> ::c_int;
649 pub fn isatty(fd: ::c_int) -> ::c_int;
650 pub fn link(src: *const c_char, dst: *const c_char) -> ::c_int;
651 pub fn lseek(fd: ::c_int, offset: off_t, whence: ::c_int) -> off_t;
652 pub fn pathconf(path: *const c_char, name: ::c_int) -> c_long;
653 pub fn rmdir(path: *const c_char) -> ::c_int;
655 pub fn unlink(c: *const c_char) -> ::c_int;
656 pub fn pread(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t;
657 pub fn pwrite(fd: ::c_int, buf: *const ::c_void, count: ::size_t, offset: off_t) -> ::ssize_t;
659 pub fn lstat(path: *const c_char, buf: *mut stat) -> ::c_int;
661 pub fn fsync(fd: ::c_int) -> ::c_int;
662 pub fn fdatasync(fd: ::c_int) -> ::c_int;
664 pub fn symlink(path1: *const c_char, path2: *const c_char) -> ::c_int;
666 pub fn truncate(path: *const c_char, length: off_t) -> ::c_int;
667 pub fn ftruncate(fd: ::c_int, length: off_t) -> ::c_int;
669 pub fn getrusage(resource: ::c_int, usage: *mut rusage) -> ::c_int;
671 pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int;
674 pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int;
676 pub fn usleep(secs: ::c_uint) -> ::c_int;
677 pub fn send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t;
678 pub fn recv(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t;
679 pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int;
680 pub fn setlocale(category: ::c_int, locale: *const ::c_char) -> *mut ::c_char;
687 pub fn sysconf(name: ::c_int) -> ::c_long;
689 pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
691 pub fn fseeko(stream: *mut ::FILE, offset: ::off_t, whence: ::c_int) -> ::c_int;
693 pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int;
699 dirfd: ::c_int,
701 mode: ::c_int,
702 flags: ::c_int,
703 ) -> ::c_int;
704 pub fn writev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t;
705 pub fn readv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t;
706 pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t)
708 pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t;
709 pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int;
710 pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
712 dirfd: ::c_int,
715 flag: ::c_int,
716 ) -> ::c_int;
717 pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
718 pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void;
719 pub fn abs(i: c_int) -> c_int;
723 pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t;
725 pub fn sched_yield() -> ::c_int;
727 pub fn chdir(dir: *const c_char) -> ::c_int;
732 pub fn __wasilibc_register_preopened_fd(fd: c_int, path: *const c_char) -> c_int;
733 pub fn __wasilibc_fd_renumber(fd: c_int, newfd: c_int) -> c_int;
734 pub fn __wasilibc_unlinkat(fd: c_int, path: *const c_char) -> c_int;
735 pub fn __wasilibc_rmdirat(fd: c_int, path: *const c_char) -> c_int;
741 ) -> c_int;
742 pub fn __wasilibc_tell(fd: c_int) -> ::off_t;
743 pub fn __wasilibc_nocwd___wasilibc_unlinkat(dirfd: c_int, path: *const c_char) -> c_int;
744 pub fn __wasilibc_nocwd___wasilibc_rmdirat(dirfd: c_int, path: *const c_char) -> c_int;
746 olddirfd: c_int,
748 newdirfd: c_int,
750 flags: c_int,
751 ) -> c_int;
754 dirfd: c_int,
756 ) -> c_int;
758 dirfd: c_int,
764 dirfd: c_int,
766 mode: c_int,
767 flags: c_int,
768 ) -> c_int;
770 olddirfd: c_int,
772 newdirfd: c_int,
774 ) -> c_int;
775 pub fn __wasilibc_nocwd_openat_nomode(dirfd: c_int, path: *const c_char, flags: c_int)
776 -> c_int;
778 dirfd: c_int,
781 flags: c_int,
782 ) -> c_int;
783 pub fn __wasilibc_nocwd_mkdirat_nomode(dirfd: c_int, path: *const c_char) -> c_int;
785 dirfd: c_int,
788 flags: c_int,
789 ) -> c_int;
790 pub fn __wasilibc_nocwd_opendirat(dirfd: c_int, path: *const c_char) -> *mut ::DIR;
791 pub fn __wasilibc_access(pathname: *const c_char, mode: c_int, flags: c_int) -> c_int;
792 pub fn __wasilibc_stat(pathname: *const c_char, buf: *mut stat, flags: c_int) -> c_int;
796 flags: c_int,
797 ) -> c_int;
798 pub fn __wasilibc_link(oldpath: *const c_char, newpath: *const c_char, flags: c_int) -> c_int;
800 olddirfd: c_int,
803 flags: c_int,
804 ) -> c_int;
807 newdirfd: c_int,
809 flags: c_int,
810 ) -> c_int;
812 olddirfd: c_int,
815 ) -> c_int;
818 newdirfd: c_int,
820 ) -> c_int;