Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
f1da9e50
Commit
f1da9e50
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
indented and formatted the VMS-specific code more in the same style as
other curl code
parent
9e80356d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/getpass.c
+19
-16
19 additions, 16 deletions
src/getpass.c
with
19 additions
and
16 deletions
src/getpass.c
+
19
−
16
View file @
f1da9e50
/* ============================================================================
* Copyright (C) 1998 - 2002, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* Redistribution and use are freely permitted provided that:
*
...
...
@@ -30,8 +29,6 @@
*
* Author(s):
* Angus Mackay <amackay@gus.ml.org>
*
* Contributor(s):
* Daniel Stenberg <daniel@haxx.se>
*/
...
...
@@ -49,19 +46,25 @@
#include iosbdef
char
*
getpass_r
(
const
char
*
prompt
,
char
*
buffer
,
size_t
buflen
)
{
long
sts
;
short
chan
;
struct
_iosb
iosb
;
$
DESCRIPTOR
(
ttdesc
,
"TT"
);
buffer
[
0
]
=
'\0'
;
if
((
sts
=
sys
$
assign
(
&
ttdesc
,
&
chan
,
0
,
0
))
&
1
)
{
if
(((
sts
=
sys
$
qiow
(
0
,
chan
,
IO
$
_READPROMPT
|
IO
$
M_NOECHO
,
&
iosb
,
0
,
0
,
buffer
,
buflen
,
0
,
0
,
prompt
,
strlen
(
prompt
)))
&
1
)
&&
(
iosb
.
iosb
$
w_status
&
1
))
{
buffer
[
iosb
.
iosb
$
w_bcnt
]
=
'\0'
;
}
sts
=
sys
$
dassgn
(
chan
);
}
return
buffer
;
/* we always return success */
long
sts
;
short
chan
;
struct
_iosb
iosb
;
$
DESCRIPTOR
(
ttdesc
,
"TT"
);
buffer
[
0
]
=
'\0'
;
sts
=
sys
$
assign
(
&
ttdesc
,
&
chan
,
0
,
0
);
if
(
sts
&
1
)
{
sts
=
sys
$
qiow
(
0
,
chan
,
IO
$
_READPROMPT
|
IO
$
M_NOECHO
,
&
iosb
,
0
,
0
,
buffer
,
buflen
,
0
,
0
,
prompt
,
strlen
(
prompt
));
if
((
sts
&
1
)
&&
(
iosb
.
iosb
$
w_status
&
1
))
buffer
[
iosb
.
iosb
$
w_bcnt
]
=
'\0'
;
sts
=
sys
$
dassgn
(
chan
);
}
return
buffer
;
/* we always return success */
}
#else
/* VMS */
#ifdef HAVE_TERMIOS_H
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment