~ubuntu-branches/ubuntu/utopic/acct/utopic

« back to all changes in this revision

Viewing changes to al_share.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2010-08-05 00:08:34 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100805000834-y9k7nlasjm3t5che
Tags: 6.5.4-2ubuntu1
* Merge from Debian testing, remaining changes: (LP: #609754)
  - Remove stop links from rc0 and rc6. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
          print_utmp_record(rec, stddebug);
34
34
        }
35
35
 
36
 
#ifdef HAVE_UT_TYPE
 
36
#ifdef HAVE_STRUCT_UTMP_UT_TYPE
37
37
      if (fix_ut_type_field (rec) && debugging_enabled)
38
38
        {
39
39
          (void)fprintf (stddebug, " MUNGED REC: ");
171
171
          if (expecting_clock)
172
172
            {
173
173
#ifdef BACKWARDS
174
 
#ifdef HAVE_UT_TYPE
 
174
#ifdef HAVE_STRUCT_UTMP_UT_TYPE
175
175
              if (print_which_recs >= 1)
176
176
#endif
177
177
                print_record(rec, 0, NULL, "old time", "");
204
204
                   see. */
205
205
 
206
206
#ifdef BACKWARDS
207
 
#ifdef HAVE_UT_TYPE
 
207
#ifdef HAVE_STRUCT_UTMP_UT_TYPE
208
208
          if (print_which_recs >= 1)
209
209
#endif
210
210
            print_record(rec, 0, NULL, "new time", "");
218
218
 
219
219
          if (strncmp (rec->ut_name, "shutdown", NAME_LEN) == 0)
220
220
            {
221
 
#if defined (HAVE_UT_TYPE) && (defined (RUN_LVL) || defined (BACKWARDS))
 
221
#if defined (HAVE_STRUCT_UTMP_UT_TYPE) && (defined (RUN_LVL) || defined (BACKWARDS))
222
222
do_shutdown:
223
223
#endif
224
224
 
225
225
#ifdef BACKWARDS
226
 
#ifdef HAVE_UT_TYPE
 
226
#ifdef HAVE_STRUCT_UTMP_UT_TYPE
227
227
              if (print_which_recs >= 1)
228
228
#endif
229
229
                print_record(rec, 0, NULL, "system down", "");
230
230
 
231
 
#if defined (HAVE_UT_TYPE) && defined (RUN_LVL) && defined (__linux__)
 
231
#if defined (HAVE_STRUCT_UTMP_UT_TYPE) && defined (RUN_LVL) && defined (__linux__)
232
232
do_shutdown_part_2:
233
233
#endif
234
234
              last_event = "down";
264
264
          /* Handle those types which simply print things out, rather
265
265
             than linking up logins/logouts. */
266
266
 
267
 
#ifdef HAVE_UT_TYPE             /* just in case */
 
267
#ifdef HAVE_STRUCT_UTMP_UT_TYPE         /* just in case */
268
268
 
269
269
#ifdef RUN_LVL
270
270
 
407
407
          break;
408
408
#endif
409
409
 
410
 
#endif /* HAVE_UT_TYPE */
 
410
#endif /* HAVE_STRUCT_UTMP_UT_TYPE */
411
411
 
412
412
          /* FIXME: here we assume that unknown types are things that
413
413
             are to be treated as logins/logouts in the BSD sense.  If