package stdio

Import Path
	modernc.org/libc/stdio (on go.dev)

Dependency Relation
	imports 4 packages, and imported by one package


Package-Level Type Names (total 100, all are exported)
/* sort exporteds by: | */
stdio state variables. The following always hold: if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), _lbfsize is -_bf._size, else _lbfsize is 0 if _flags&__SRD, _w is 0 if _flags&__SWR, _r is 0 This ensures that the getc and putc macros (or inline functions) never try to write or read from a file that is in `read' or `write' mode. (Moreover, they can, and do, automatically switch from read mode to write mode, and back, on "r+" and "w+" files.) _lbfsize is used only to make the inline line-buffered output stream code as compact as possible. _ub, _up, and _ur are used when ungetc() pushes back more characters than fit in the current _bf, or when ungetc() pushes back a character that does not match the previous one in _bf. When this happens, _ub._base becomes non-nil (i.e., a stream has ungetc() data iff _ub._base!=NULL) and _up and _ur save the current values of _p and _r. NB: see WARNING above before changing the layout of this structure! F_bf struct{F_base uintptr; F_size int32; _ [4]byte} F_blksize int32 F_close uintptr F_cookie uintptr F_extra uintptr F_file int16 F_flags int16 F_lb struct{F_base uintptr; F_size int32; _ [4]byte} F_lbfsize int32 F_nbuf [1]uint8 F_offset Fpos_t F_p uintptr F_r int32 F_read uintptr F_seek uintptr F_ub struct{F_base uintptr; F_size int32; _ [4]byte} F_ubuf [3]uint8 F_ur int32 F_w int32 F_write uintptr
type Fpos_t = X__darwin_off_t (basic type)
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Basic integral types. Omit the typedef if not possible for a machine/compiler combination. Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
type Intptr_t = X__darwin_intptr_t (basic type)
type Off_t = X__darwin_off_t (basic type)
type Ptrdiff_t = int64 (basic type)
type Register_t = Int64_t (basic type)
type Size_t = uint64 (basic type)
Copyright (c) 2003-2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@ Copyright (c) 2000-2007 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@ Copyright 1995 NeXT Computer, Inc. All rights reserved.
This defines the size of syscall arguments after copying into the kernel:
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2016 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2003-2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
These types are used for reserving the largest possible size.
type User_long_t = Int64_t (basic type)
type User_off_t = Int64_t (basic type)
type User_size_t = U_int64_t (basic type)
type User_ssize_t = Int64_t (basic type)
type User_time_t = Int64_t (basic type)
type User_ulong_t = U_int64_t (basic type)
type Va_list = X__darwin_va_list (basic type)
type Wchar_t = int32 (basic type)
type X__builtin_va_list = uintptr (basic type)
type X__darwin_blkcnt_t = X__int64_t (basic type)
type X__darwin_blksize_t = X__int32_t (basic type)
type X__darwin_clock_t = uint64 (basic type)
type X__darwin_ct_rune_t = int32 (basic type)
type X__darwin_dev_t = X__int32_t (basic type)
type X__darwin_fsblkcnt_t = uint32 (basic type)
type X__darwin_fsfilcnt_t = uint32 (basic type)
type X__darwin_gid_t = X__uint32_t (basic type)
type X__darwin_id_t = X__uint32_t (basic type)
type X__darwin_ino64_t = X__uint64_t (basic type)
type X__darwin_ino_t = X__darwin_ino64_t (basic type)
type X__darwin_intptr_t = int64 (basic type)
F__mbstate8 [128]int8
type X__darwin_mode_t = X__uint16_t (basic type)
type X__darwin_natural_t = uint32 (basic type)
type X__darwin_nl_item = int32 (basic type)
type X__darwin_off_t = X__int64_t (basic type)
type X__darwin_pid_t = X__int32_t (basic type)
F__opaque [56]int8 F__sig int64
F__opaque [40]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__arg uintptr F__next uintptr F__routine uintptr
type X__darwin_pthread_key_t = uint64 (basic type)
F__opaque [56]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [192]int8 F__sig int64
F__opaque [16]int8 F__sig int64
type X__darwin_pthread_t = uintptr (basic type)
type X__darwin_ptrdiff_t = int64 (basic type)
type X__darwin_rune_t = X__darwin_wchar_t (basic type)
type X__darwin_sigset_t = X__uint32_t (basic type)
type X__darwin_size_t = uint64 (basic type)
type X__darwin_socklen_t = X__uint32_t (basic type)
type X__darwin_ssize_t = int64 (basic type)
type X__darwin_suseconds_t = X__int32_t (basic type)
type X__darwin_time_t = int64 (basic type)
type X__darwin_uid_t = X__uint32_t (basic type)
type X__darwin_useconds_t = X__uint32_t (basic type)
type X__darwin_uuid_string_t = ([...]T)
type X__darwin_uuid_t = ([...]T)
type X__darwin_wchar_t = int32 (basic type)
type X__darwin_wctrans_t = int32 (basic type)
type X__darwin_wctype_t = X__uint32_t (basic type)
type X__darwin_wint_t = int32 (basic type)
type X__float128 = float64 (basic type)
type X__gnuc_va_list = X__builtin_va_list (basic type)
Fhi int64 Flo int64
type X__int16_t = int16 (basic type)
type X__int32_t = int32 (basic type)
type X__int64_t = int64 (basic type)
type X__int8_t = int8 (basic type)
mbstate_t is an opaque object to keep conversion state, during multibyte stream conversions. The content must not be referenced by user programs. F__mbstate8 [128]int8
stdio buffers F_base uintptr F_size int32
stdio state variables. The following always hold: if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), _lbfsize is -_bf._size, else _lbfsize is 0 if _flags&__SRD, _w is 0 if _flags&__SWR, _r is 0 This ensures that the getc and putc macros (or inline functions) never try to write or read from a file that is in `read' or `write' mode. (Moreover, they can, and do, automatically switch from read mode to write mode, and back, on "r+" and "w+" files.) _lbfsize is used only to make the inline line-buffered output stream code as compact as possible. _ub, _up, and _ur are used when ungetc() pushes back more characters than fit in the current _bf, or when ungetc() pushes back a character that does not match the previous one in _bf. When this happens, _ub._base becomes non-nil (i.e., a stream has ungetc() data iff _ub._base!=NULL) and _up and _ur save the current values of _p and _r. NB: see WARNING above before changing the layout of this structure! F_bf struct{F_base uintptr; F_size int32; _ [4]byte} F_blksize int32 F_close uintptr F_cookie uintptr F_extra uintptr F_file int16 F_flags int16 F_lb struct{F_base uintptr; F_size int32; _ [4]byte} F_lbfsize int32 F_nbuf [1]uint8 F_offset Fpos_t F_p uintptr F_r int32 F_read uintptr F_seek uintptr F_ub struct{F_base uintptr; F_size int32; _ [4]byte} F_ubuf [3]uint8 F_ur int32 F_w int32 F_write uintptr
Fhi uint64 Flo uint64
type X__uint16_t = uint16 (basic type)
type X__uint32_t = uint32 (basic type)
type X__uint64_t = uint64 (basic type)
type X__uint8_t = uint8 (basic type)
F__opaque [56]int8 F__sig int64
F__opaque [40]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [56]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [192]int8 F__sig int64
F__opaque [16]int8 F__sig int64
F__cleanup_stack uintptr F__opaque [8176]int8 F__sig int64
Package-Level Variables (only one, which is exported)
var CAPI map[string]struct{}
Package-Level Constants (total 55, all are exported)
const BUFSIZ = 1024
const EOF = -1
const FILENAME_MAX = 1024
const FOPEN_MAX = 20
const L_ctermid = 1024
const L_tmpnam = 1024
const P_tmpdir = "/var/tmp/"
const RENAME_EXCL = 4
const RENAME_SECLUDE = 1
const RENAME_SWAP = 2
const SEEK_CUR = 1
const SEEK_END = 2
const SEEK_SET = 0
const TMP_MAX = 308915776
const X_CDEFS_H_ = 0
const X_CTERMID_H_ = 0
const X_FILE_OFFSET_BITS = 64
const X_FORTIFY_SOURCE = 2
const X_FSTDIO = 0
const X_INT16_T = 0
const X_INT32_T = 0
const X_INT64_T = 0
const X_INT8_T = 0
const X_INTPTR_T = 0
const X_IOFBF = 0
const X_IOLBF = 1
const X_IONBF = 2
const X_LP64 = 1
const X_MACHTYPES_H_ = 0
const X_Nonnull = 0
const X_Nullable = 0
const X_OFF_T = 0
const X_SIZE_T = 0
const X_SSIZE_T = 0
const X_STDIO_H_ = 0
const X_SYS__TYPES_H_ = 0
const X_SYS_STDIO_H_ = 0
const X_U_INT16_T = 0
const X_U_INT32_T = 0
const X_U_INT64_T = 0
const X_U_INT8_T = 0
const X_UINTPTR_T = 0
const X_VA_LIST_T = 0