Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
53b2f284
Commit
53b2f284
authored
22 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o hostset_t is now a wrapper around hostlist_t
o various small bugfixes.
parent
f1fb8f7e
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/hostlist.c
+591
-699
591 additions, 699 deletions
src/common/hostlist.c
src/common/hostlist.h
+9
-2
9 additions, 2 deletions
src/common/hostlist.h
with
600 additions
and
701 deletions
src/common/hostlist.c
+
591
−
699
View file @
53b2f284
This diff is collapsed.
Click to expand it.
src/common/hostlist.h
+
9
−
2
View file @
53b2f284
...
...
@@ -41,7 +41,7 @@ typedef struct hostlist * hostlist_t;
* (Note: sort occurs first on alphanumeric prefix -- where prefix
* matches, numeric suffixes will be sorted *by value*)
*/
typedef
struct
host
li
st
*
hostset_t
;
typedef
struct
hosts
e
t
*
hostset_t
;
/* The hostlist iterator type (may be used with a hostset as well)
* used for non-destructive access to hostlist members.
...
...
@@ -251,7 +251,8 @@ void hostlist_uniq(hostlist_t hl);
*
* Write the string representation of the hostlist hl into buf,
* writing at most n chars. Returns the number of bytes that would have
* been written (including the terminating '\0').
* been written (including the terminating '\0') had there been enough
* space.
*
* The result will be NULL terminated.
*
...
...
@@ -291,6 +292,12 @@ int hostlist_nranges(hostlist_t hl);
*/
hostlist_iterator_t
hostlist_iterator_create
(
hostlist_t
hl
);
/* hostset_iterator_create():
*
* Same as hostlist_iterator_create(), but creates a hostlist_iterator
* from a hostset.
*/
hostlist_iterator_t
hostset_iterator_create
(
hostset_t
set
);
/* hostlist_iterator_destroy():
*
...
...
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