08-02-2013
Windows Standards? Unix Standards? Coding Standards? Scheduler Standards? We've got loads of each. Take your pick.
New project? New Standards. It's called strategy apparently. More like flavour of the month and depending who is on the team.
Anyway, surely to count to five you would:-
...or am I just really sad?
Robin
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I am lil confused with the following issue.
I have a File, which has the following header: IMSHRATE_043008_101016
a sample detailed record is :9820101 A982005000CAVG030108000000000000010169000MAR 2008
9820102 MAR 2008 D030108
... (1 Reply)
Discussion started by: cmaroju
1 Replies
2. What is on Your Mind?
I'm currently a Windows admin and have wanted to jump ship to the *nix side for a while now. I've been studying both through an lpic level 1 manual as I have time (focusing on debian), and a solaris 10 cert book. The problem is I only have a handful of hours a week to study, and my current job... (3 Replies)
Discussion started by: bobwilson
3 Replies
3. War Stories
Was wondering if anyone has come across any situation where you do your best to help users and in return you get a nice escalation from top level management!
Here's my story:
One fine morning, I was sitting idle, doing next to nothing, I got an alert from helpdesk people about a problem with... (30 Replies)
Discussion started by: admin_xor
30 Replies
4. Shell Programming and Scripting
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies
5. What is on Your Mind?
I am planning to choose my career as Unix/Linux Admin or a DBA. But I have come to know from forums and few admins like the job will be 24/7. I have few questions on that.
Can we get "DAY" shifts in any one of the admin Job ?
Can't we have shift timings in any company ?
Eventhough the... (7 Replies)
Discussion started by: Jacktts
7 Replies
6. UNIX for Beginners Questions & Answers
Hi All,
We've a VDI infrastructure in AWS (AWS workspaces) and we're planning to automate the process of provisioning workspaces. Instead of going to GUI console, and launching workspaces by selecting individual users is little time consuming. Thus, I want to create them in bunches from AWS CLI... (6 Replies)
Discussion started by: arun_adm
6 Replies
LEARN ABOUT DEBIAN
gd_discard
gd_close(3) GETDATA gd_close(3)
NAME
gd_close, gd_discard -- close a dirfile and free associated memory.
SYNOPSIS
#include <getdata.h>
int gd_close(DIRFILE *dirfile);
int gd_discard(DIRFILE *dirfile);
DESCRIPTION
The gd_close() function first calls gd_flush(3) (with field_code set to NULL) to flush all metadata changes to disk and to close all file
handles associated with dirfile. It then frees memory associated with the DIRFILE object. If dirfile is NULL, nothing happens, and the
call succeeds.
The gd_discard() function behaves similarly, except modified metadata is not written to disk, but simply discarded. In order to ensure
that modified data files associated with RAW fields are properly terminated, changes to RAW data files are still flushed to disk by this
function. If dirfile was opened in read-only mode, gd_discard() and gd_close() behave identically.
One of these functions should be called on all pointers returned by gd_cbopen(3), gd_open(3), and gd_invalid_dirfile(3), even if the call
to those function failed. After gd_close() or gd_discard() returns successfully, the pointer dirfile should be considered invalid.
Metadata is written to disk using the current Standards Version as stored in the dirfile object. See gd_dirfile_standards(3) to change or
report the current Standards Version. If the dirfile metadata conforms to no known Standards Version, Standards non-compliant metadata
will be written.
RETURN VALUE
gd_close() and gd_discard() return zero on success. On error, they do not de-allocate dirfile and set the dirfile error to a non-zero er-
ror value. Possible error values are:
GD_E_FLUSH
A temporary file could not be opened into which to write the modified metadata, or renaming the temporary file over the original
fragment failed.
GD_E_RAW_IO
An error occurred while trying to flush or close one or more open raw files. In this case, another call to gd_close() or gd_dis-
card() may be attempted.
The dirfile error may be retrieved by calling gd_error(3). A descriptive error string for the last error encountered can be obtained from
a call to gd_error_string(3).
SEE ALSO
gd_cbopen(3), gd_dirfile_standards(3), gd_error(3), gd_error_string(3), gd_flush(3), gd_invalid_dirfile(3), gd_open(3)
Version 0.7.0 20 October 2010 gd_close(3)