~xnox/upstart/async-asserts

« back to all changes in this revision

Viewing changes to init/state.c

  • Committer: Dimitri John Ledkov
  • Date: 2014-06-02 17:02:02 UTC
  • mfrom: (1620.2.35 trunk)
  • Revision ID: dimitri.ledkov@canonical.com-20140602170202-rmcues8k9ya1b64t
Merge async.

Show diffs side-by-side

added added

removed removed

Lines of Context:
532
532
 
533
533
 
534
534
/**
535
 
 * state_toggle_cloexec:
 
535
 * state_modify_cloexec:
536
536
 *
537
537
 * @fd: file descriptor,
538
538
 * @set: set close-on-exec flag if TRUE, clear if FALSE.
542
542
 * Returns: 0 on success, -1 on error.
543
543
 **/
544
544
int
545
 
state_toggle_cloexec (int fd, int set)
 
545
state_modify_cloexec (int fd, int set)
546
546
{
547
547
        long   flags;
548
548
        int    ret;