Displaying 20 results from an estimated 56 matches for "getchar".
2011 May 13
3
[LLVMdev] IO intrinsics?
I found these lines in the BrainF example:
//declare i32 @getchar()
getchar_func = cast<Function>(module->
getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL));
//declare i32 @putchar(i32)
putchar_func = cast<Function>(module->
getOrInsertFunction("putchar", IntegerType::getInt32Ty(C),...
2007 Apr 18
0
[Bridge] BCP code ported to pppd 2.4.2
...same order that we sent...
+ * Check packet length and CI length at each step.
+ * If we find any deviations, then this packet is bad.
+ */
+#define ACKCIBRIDGELINEID(opt, neg, lan_bridge_segno) \
+ if (neg) { \
+ if ((len -= CILEN_BRIDGELINEID) < 0) \
+ goto bad; \
+ GETCHAR(citype, p); \
+ GETCHAR(cilen, p); \
+ if (cilen != CILEN_BRIDGELINEID || citype != opt) \
+ goto bad; \
+ GETSHORT(cishort, p); \
+ if (lan_bridge_segno != cishort) \
+ goto bad; \
+ }
+
+#define ACKCIMACSUPPORT(opt, neg, macsupport) \
+ if (neg && macsuppor...
2005 Mar 14
4
[SMB 3.0.10] File Locking Mechanism Windows <-> Unix
Hello,
Iam facing a problem in locking of files across samba shares. We have samba
3.0.10 running on Solaris 9 with the smb.conf as follows.
# Global parameters
[global]
workgroup = NMUINT
netbios name = NMUINTFS
interfaces = <IP>
bind interfaces only = Yes
security = DOMAIN
password server = XXX.XXX.XXX.XXX
log level = 1
ldap
2007 Apr 18
7
[Bridge] (no subject)
Dear Sir,
I was trying to install bridge as we are installing
scps gateway in our testbed.This requires us to
install the bridge.
Our Linux version is 2.4.18 ~3 and we are using redhat
7.2
Please let me know which is the bridge I should
install and how to configure it.
Before configuring the bridge what I should check in
my configuration.
Thanks for your time,
Sincerely
Rama
=====
I hear
2006 Oct 31
0
6266832 UNIX98/UNIX03: getc(), getchar(), putc(), putchar() did not set stream to byte orientation
Author: muffin
Repository: /hg/zfs-crypto/gate
Revision: fecd74c42540dbb707f29987c4b4e10ecff69818
Log message:
6266832 UNIX98/UNIX03: getc(), getchar(), putc(), putchar() did not set stream to byte orientation
Files:
update: usr/src/head/iso/stdio_iso.h
2004 May 11
2
[LLVMdev] Problems accessing structs
Hello!
I get some odd behaviour using my structs:
"myKernelMap" = type {int (sbyte*)*, int ()*}
"Kernel" = type {"myKernelMap"*}
The second member ( int()* ) is a pointer to the %getchar() function.
I want to call getchar using this function:
int "callmyKernelgetchar_kernel"("Kernel"* "myKernel")
{
"PTRMAP" = getelementptr "Kernel"* "myKernel", long 0, ubyte 0
"MAP" = load "myKernelMap"** &quo...
2011 Apr 20
3
[LLVMdev] Is this a bug in clang?
...sequent evaluations
} shall have taken place.
The side effect is made available _no_later_ than the sequence point.
There is no guarantee that it would not be made available earlier.
An example from the standard:
#include <stdio.h>
int sum;
char *p;
/* ... */
sum = sum * 10 - ’0’ + (*p++ = getchar());
the expression statement is grouped as if it were written as
sum = (((sum * 10) - ’0’) + ((*(p++)) = (getchar())));
but the actual increment of p can occur at any time between the
previous sequence point and the next
sequence point (the ;), and the call to getchar can occur at any point
prio...
2004 May 11
0
[LLVMdev] Problems accessing structs
Anders Alexandersson wrote:
> Hello!
>
> I get some odd behaviour using my structs:
>
> "myKernelMap" = type {int (sbyte*)*, int ()*}
> "Kernel" = type {"myKernelMap"*}
>
> The second member ( int()* ) is a pointer to the %getchar() function.
>
> I want to call getchar using this function:
>
> int "callmyKernelgetchar_kernel"("Kernel"* "myKernel")
> {
> "PTRMAP" = getelementptr "Kernel"* "myKernel", long 0, ubyte 0
> "MAP" =...
2011 May 13
0
[LLVMdev] IO intrinsics?
Hi, Hans
> Since getchar and putchar are never defined, I'm assuming they are
> intrinsics, but they are not documented with the rest of the intrinsics. So
> are they intrinsics or something else?
I _guess_ standard functions like getchar/putchar are linked by
default.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)...
2009 Aug 10
2
PROMPT=0/ESCAPE key SERIAL fun
...y the boot prompt.
;
+check_for_key_serial:
+ mov dx,[SerialPort] ; No serial port -> no input
+ and dx,dx
+ jz check_for_key
+; call pollchar
+; jz check_for_key
+ call reset_idle
+ call getchar
+ cmp al,1Bh ; <ESC>
+ je enter_command
check_for_key:
test byte [KbdFlags],5Bh ; Shift Alt Caps Scroll
jnz enter_command
----
Now, if I hold the escape[1] key down on boot from the serial port it
works...
2011 Apr 20
0
[LLVMdev] Is this a bug in clang?
...gt; The side effect is made available _no_later_ than the sequence point.
> There is no guarantee that it would not be made available earlier.
>
> An example from the standard:
>
> #include <stdio.h>
> int sum;
> char *p;
> /* ... */
> sum = sum * 10 - ’0’ + (*p++ = getchar());
>
> the expression statement is grouped as if it were written as
>
> sum = (((sum * 10) - ’0’) + ((*(p++)) = (getchar())));
>
> but the actual increment of p can occur at any time between the
> previous sequence point and the next
> sequence point (the ;), and the call t...
2011 May 13
1
[LLVMdev] IO intrinsics?
On 05/12/2011 11:08 PM, 陳韋任 wrote:
> Hi, Hans
>
>> Since getchar and putchar are never defined, I'm assuming they are
>> intrinsics, but they are not documented with the rest of the intrinsics. So
>> are they intrinsics or something else?
>
> I _guess_ standard functions like getchar/putchar are linked by
> default.
Indeed, they'...
2002 Apr 23
1
SYSLINUX 1.73-pre1
I have released SYSLINUX 1.73-pre1. This isn't a bug fix release (thank
God), but given the rather painful quality of the last couple of
releases I wanted to get another prerelease out as I'm working on the
new core code.
I'm trying to eliminate differences between the various syslinux
components whereever possible; there has been some unnecessary
differences in the past which
2009 May 03
3
Domain-specific HLT when idle
...for everyone else.
You replied to the work-around discussed in the earlier thread at
http://syslinux.zytor.com/archives/2005-June/005291.html
> Breaks serial console.
> -hpa
In our case, the serial console is not an issue. We would like to
submit a patch to isolinux which HLTs on getchar if isolinux is not
running with the serial console option. Do you think this is the right
solution to this problem? Can we work with you to resolve this?
Thanks,
-Peter Iannucci
MIT Student Information Processing Board
-------------- next part --------------
A non-text attachment was scrubbed....
2011 Apr 19
2
[LLVMdev] Is this a bug in clang?
Hello,
Is this a bug in clang, or a bug in my thinking?
/Joe Armstrong
/*
When I compile the following program I get different answers in clang and gcc.
$ gcc bug2.c
$ ./a.out
j = 40
$ clang bug2.c
$ ./a.out
j = 41
I think the correct answer is 41. If my understanding of C is correct
(which, or course, it might not be) the incremented value of i++ is
first made available
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...ring IdentifierStr; // Filled in if tok_identifier
static double NumVal; // Filled in if tok_number
/// gettok - Return the next token from standard input.
static int gettok() {
static int LastChar = ' ';
// Skip any whitespace.
while (isspace(LastChar))
LastChar = getchar();
if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]*
IdentifierStr = LastChar;
while (isalnum((LastChar = getchar())))
IdentifierStr += LastChar;
if (IdentifierStr == "def") return tok_def;
if (IdentifierStr == "extern") return tok_extern;...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...k_identifier
> static double NumVal; // Filled in if tok_number
>
> /// gettok - Return the next token from standard input.
> static int gettok() {
> static int LastChar = ' ';
>
> // Skip any whitespace.
> while (isspace(LastChar))
> LastChar = getchar();
>
> if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]*
> IdentifierStr = LastChar;
> while (isalnum((LastChar = getchar())))
> IdentifierStr += LastChar;
>
> if (IdentifierStr == "def") return tok_def;
> if (IdentifierStr == "ext...
2019 Jul 28
2
Efficient way to identify an instruction
...ibed considering I to be a
reference to the icmp instruction ( %13 = icmp eq i32 %12, 66 ). From what
I understood i should do something like:
Instruction* source;
if(source = dyn_cast<AllocaInst>(I.getOperand(0))) {
cout << "Alloca Inst" << endl;
I.dump();
getchar();
}
I thought I.getOperand(0) was a reference to the instruction that have
created %12. What am I missing?
> Cheers.
>
> Tim.
>
Thanks again
Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachme...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...NumVal; // Filled in if tok_number
>>
>> /// gettok - Return the next token from standard input.
>> static int gettok() {
>> static int LastChar = ' ';
>>
>> // Skip any whitespace.
>> while (isspace(LastChar))
>> LastChar = getchar();
>>
>> if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]*
>> IdentifierStr = LastChar;
>> while (isalnum((LastChar = getchar())))
>> IdentifierStr += LastChar;
>>
>> if (IdentifierStr == "def") return tok_def;
>> ...
2008 Jul 29
2
[LLVMdev] llvm-gcc linking errors
...ast.o
trirast.o(.text+0x0): In function `strtod':
: multiple definition of `strtod'
main.o(.text+0x0): first defined here
trirast.o(.text+0x10d0): In function `putchar':
: multiple definition of `putchar'
main.o(.text+0x1310): first defined here
trirast.o(.text+0x10f0): In function `getchar':
: multiple definition of `getchar'
main.o(.text+0x1330): first defined here
trirast.o(.text+0x1110): In function `vprintf':
: multiple definition of `vprintf'
main.o(.text+0x1350): first defined here
trirast.o(.text+0x1140): In function `strtoull':
: multiple definition of `st...