home *** CD-ROM | disk | FTP | other *** search
/ Chip 1995 March / CHIP3.mdf / slackwar / a / util / util-lin.2 / util-lin / util-linux-2.2 / sys-utils / sync.S < prev    next >
Encoding:
Text File  |  1995-02-22  |  466 b   |  22 lines

  1. /* File:
  2.  *    sync.S
  3.  * Compile:
  4.  *    /lib/cpp sync.S > sync.s
  5.  *    as -o sync.o sync.s
  6.  *    ld -s -N -e _main sync.o -o sync
  7.  * Author:
  8.  *    Nick Holloway, with thanks to James Bonfield
  9.  * Last Changed:
  10.  *    September 1993.
  11.  */
  12. # include <sys/syscall.h>
  13.  
  14.         .text
  15.         .globl  _main
  16. _main:
  17.         movl    $(SYS_sync),%eax        /* sync () */
  18.         int     $0x80
  19.         movl    $(SYS_exit),%eax        /* exit ( 0 ) */
  20.         movl    $0,%ebx
  21.         int     $0x80
  22.