summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCUDACompiler.cmake.in
Commit message (Expand)AuthorAgeFilesLines
* CUDA: Add support for CUDA_ARCHITECTURES=nativeBrad King2022-03-101-0/+1
* CUDA: Generic all and all-major supportRaul Tambre2022-02-011-0/+4
* CompilerID: Compiler extensions default detectionRaul Tambre2021-09-281-0/+1
* CUDA, CXX, OBJCXX: C++23 support with Clang 12Raul Tambre2020-12-081-0/+1
* CMakeDetermineCompilerABI: Detect byte order as part of checkBrad King2020-11-041-0/+1
* CUDA: Clang separable compilationRaul Tambre2020-09-241-0/+3
* CUDA: Determine CUDA toolkit location for NVCCRaul Tambre2020-06-121-0/+3
* Merge branch 'backport-cuda-default-runtime' into cuda-default-runtimeBrad King2020-05-221-0/+2
|\
| * CUDA: Compute CMAKE_CUDA_RUNTIME_LIBRARY default from toolchainRobert Maynard2020-05-211-0/+2
* | Compilers: Add paths from -print-sysroot to system prefix pathRobert Maynard2020-04-141-0/+1
* | MSVC: Use 'lib' instead of 'link /lib' to create static librariesFrancisco Facioni2020-03-031-0/+1
|/
* CUDA: Persist SIZEOF_VOID_P and PLATFORM_ABIRobert Maynard2019-12-161-0/+13
* CUDA: Add cuda meta-features (e.g. ``cuda_std_11``) supportRobert Maynard2019-12-101-0/+7
* CUDA: persist CMAKE_LIBRARY_ARCHITECTURE and CUDA versionRobert Maynard2019-11-261-0/+5
* Compute implicit include directories from compiler outputChuck Cranor2019-01-211-0/+1
* MSVC: Respect CMAKE_RC_COMPILER and CMAKE_MT in vs_link_{dll,exe}Mateusz Zych2018-10-291-0/+1
* CUDA: Find CMAKE_LINKER on WindowsBrad King2018-10-291-0/+2
* CUDA: Set CMAKE_CUDA_COMPILER_LOADED variable when language is enabledHenry Schreiner2018-04-131-0/+1
* CUDA: Detect the toolkit include directoriesRobert Maynard2017-02-101-0/+2
* CUDA: set linker preference between C and C++Robert Maynard2017-01-241-1/+1
* CUDA: Now pass correct FLAGS when device link cuda executables.Robert Maynard2017-01-121-0/+2
* CUDA: Detect MSVC architecture idBrad King2017-01-121-0/+1
* CUDA: Detect use of MSVC host compilerBrad King2017-01-121-0/+2
* CUDA: Prefer environment variables CUDACXX and CUDAHOSTCXX.Robert Maynard2016-11-141-0/+1
* CUDA: Use the host compiler for linking CUDA executables and shared libs.Robert Maynard2016-11-141-0/+6
* CUDA: We now properly perform CUDA compiler identification.Robert Maynard2016-11-141-0/+5
* CUDA: Add support language levels (98/11)Robert Maynard2016-11-141-0/+1
* CUDA: Add basic CUDA language support for *NIX systems.Robert Maynard2016-11-141-0/+7
h_fork Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/doc/GetOpnFl.3
blob: 976f6f11e538f59801d4b2aec60b1ffac8cf7ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'\"
'\" Copyright (c) 1996-1997 Sun Microsystems, Inc.
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" 
'\" RCS: @(#) $Id: GetOpnFl.3,v 1.13 2007/10/29 17:17:54 dgp Exp $
.so man.macros
.TH Tcl_GetOpenFile 3 8.0 Tcl "Tcl Library Procedures"
.BS
.SH NAME
Tcl_GetOpenFile \- Return a FILE* for a channel registered in the given interpreter (Unix only)
.SH SYNOPSIS
.nf
\fB#include <tcl.h>\fR
.sp
int
\fBTcl_GetOpenFile\fR(\fIinterp, chanID, write, checkUsage, filePtr\fR)
.sp
.SH ARGUMENTS
.AS Tcl_Interp checkUsage out
.AP Tcl_Interp *interp in
Tcl interpreter from which file handle is to be obtained.
.AP "const char" *chanID in
String identifying channel, such as \fBstdin\fR or \fBfile4\fR.
.AP int write in
Non-zero means the file will be used for writing, zero means it will
be used for reading.
.AP int checkUsage in
If non-zero, then an error will be generated if the file was not opened
for the access indicated by \fIwrite\fR.
.AP ClientData *filePtr out
Points to word in which to store pointer to FILE structure for
the file given by \fIchanID\fR.
.BE

.SH DESCRIPTION
.PP
\fBTcl_GetOpenFile\fR takes as argument a file identifier of the form
returned by the \fBopen\fR command and
returns at \fI*filePtr\fR a pointer to the FILE structure for
the file.
The \fIwrite\fR argument indicates whether the FILE pointer will
be used for reading or writing.
In some cases, such as a channel that connects to a pipeline of
subprocesses, different FILE pointers will be returned for reading
and writing.
\fBTcl_GetOpenFile\fR normally returns \fBTCL_OK\fR.
If an error occurs in \fBTcl_GetOpenFile\fR (e.g. \fIchanID\fR did not
make any sense or \fIcheckUsage\fR was set and the file was not opened
for the access specified by \fIwrite\fR) then \fBTCL_ERROR\fR is returned
and the interpreter's result will contain an error message.
In the current implementation \fIcheckUsage\fR is ignored and consistency
checks are always performed.
.PP
Note that this interface is only supported on the Unix platform.

.SH KEYWORDS
channel, file handle, permissions, pipeline, read, write